Hello!
A brief introduction: I've just started on some
work in conjunction with Geoscience Australia
(i.e., John Hockaday and friends) on GeoNetwork
customizations which in the first instance are
specifically for GA but which as far as possible
we intend to feed back as improvements into GN.
We plan to contribute both code and some
(much needed!) developer documentation.
My first contribution addresses what's really
only a minor niggle and is more "for the record".
Running GN on Firefox is affected by
a known problem in prototype.js (or in fact, more
likely a problem in Firefox) that is apparently
still not fixed in prototype 1.6.
The issue is documented here:
http://dev.rubyonrails.org/ticket/5393
and here's a patch containing the workaround given in that ticket
as applied to GN trunk:
Index: web/geonetwork/scripts/prototype.js
--- web/geonetwork/scripts/prototype.js (revision 1089)
+++ web/geonetwork/scripts/prototype.js (working copy)
@@ -102,7 +102,8 @@
Function.prototype.bind = function() {
var __method = this, args = $A(arguments), object = args.shift();
return function() {
- return __method.apply(object, args.concat($A(arguments)));
+ if (typeof $A === 'function')
+ return __method.apply(object, args.concat($A(arguments)));
}
}
--
Richard Walker
Software Improvements Pty Ltd
Phone: +61 2 6273 2055
Fax: +61 2 6273 2082
Thank Richard and welcome!
Happy to hear you plan to contribute more in the future!
I have applied your fix to both GeoNetwork and InterMap prototype APIs.
Ciao,
Jeroen
On Feb 15, 2008, at 3:15 AM, Software Improvements gn-devel wrote:
Hello!
A brief introduction: I've just started on some
work in conjunction with Geoscience Australia
(i.e., John Hockaday and friends) on GeoNetwork
customizations which in the first instance are
specifically for GA but which as far as possible
we intend to feed back as improvements into GN.
We plan to contribute both code and some
(much needed!) developer documentation.
My first contribution addresses what's really
only a minor niggle and is more "for the record".
Running GN on Firefox is affected by
a known problem in prototype.js (or in fact, more
likely a problem in Firefox) that is apparently
still not fixed in prototype 1.6.
The issue is documented here:
http://dev.rubyonrails.org/ticket/5393
and here's a patch containing the workaround given in that ticket
as applied to GN trunk:
Index: web/geonetwork/scripts/prototype.js
--- web/geonetwork/scripts/prototype.js (revision 1089)
+++ web/geonetwork/scripts/prototype.js (working copy)
@@ -102,7 +102,8 @@
Function.prototype.bind = function() {
var __method = this, args = $A(arguments), object = args.shift();
return function() {
- return __method.apply(object, args.concat($A(arguments)));
+ if (typeof $A === 'function')
+ return __method.apply(object, args.concat($A(arguments)));
}
}
--
Richard Walker
Software Improvements Pty Ltd
Phone: +61 2 6273 2055
Fax: +61 2 6273 2082
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork