[GeoNetwork-users] Internet Explorer not working with SVN trunk (OpenLayers problem)

Hello,

I downloaded and compiled the Geonetwork trunk
(https://geonetwork.sourceforge.net/svnroot/geonetwork/trunk).

I choosed the trunk vs. GN v2.4.2 release because it seems to me that code
in the trunk implements INSPIRE metadata validation (INSPIRE schematron
rules) and this is a must for our organization.

Using Firefox the application works fine, but with Internet Explorer I have
several problems:

- Two Internet Explorer warnings appear :
  
  Line: 2064
  Character: 909
  Error: Expected identifier, string or number
  URL: http://localhost/8081/geonetwork/srv/en/main.home

  Line: 28
  Character: 15
  Error: 'extentMap' is undefined
  URL: http://localhost/8081/geonetwork/srv/en/main.home

- When pressing the metadata "Edit" button. The OpenLayers map is not
showing in the "Geographic Bounding Box" section

- The "metadata" button that must display the metadata detail is not
working.

It seems that problems come from javascript related to OpenLayers
(javascripts placed in geo, geoext, ext directories).

I'd appreciate if somebody helps me, what can I do to solve that problem?
Thanks in advance and best regards,
MMarco

--
View this message in context: http://n2.nabble.com/Internet-Explorer-not-working-with-SVN-trunk-OpenLayers-problem-tp4571856p4571856.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

Using Firefox the application works fine, but with Internet Explorer I have
several problems:

- Two Internet Explorer warnings appear :

   Line: 2064
   Character: 909
   Error: Expected identifier, string or number
   URL: http://localhost/8081/geonetwork/srv/en/main.home

   Line: 28
   Character: 15
   Error: 'extentMap' is undefined
   URL: http://localhost/8081/geonetwork/srv/en/main.home

I've got slightly the same problems here, but using Jsl (a jslint
command-line tool), or by using jslint.com online tool, I could not
manage to find the issue. If you test your GeoNetwork instance by
using a '?debug' option onto the URL, you may use non-minified version
of Javascript files ; using this parameter, it succeeds to load the
main page of GN whithout prompting for JS errors.

So is it possible that the problem occurs after minification (using
jsbuild) ? In addition, looking at web/geonetwork/xsl/geo/utils.xsl,
it seems that the minified version of the JS file used to be called
'geo-libs.js', but with a recent svn checkout, I coult not find this
file anymore, and seem to have been renamed gn.libs.js.

I attached to this mail a patch related to my "JS debug session",
removing extra comas / semicolons, or adding where it was necessary,
hoping that would help to find the bug, even if this is not supposed
to fix the issue currently; (I did not regenerate the minified file,
by the way).

I'll let you know if I actually succeed in fixing this bug, but a
current workaround for now could be to use the "debug versions" of the
scripts.

Regards,

--
Pierre Mauduit

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 44 44 92
http://www.camptocamp.com
pierre.mauduit@anonymised.com

(attachments)

ie_js_debug.diff (3.74 KB)

Thanks for the patch Pierre. Applied in r5778.

Ciao.

Francois

2010/2/16 Pierre Mauduit <pierre.mauduit@anonymised.com>:

Hi,

Using Firefox the application works fine, but with Internet Explorer I have
several problems:

- Two Internet Explorer warnings appear :

   Line: 2064
   Character: 909
   Error: Expected identifier, string or number
   URL: http://localhost/8081/geonetwork/srv/en/main.home

   Line: 28
   Character: 15
   Error: &#39;extentMap&#39; is undefined
   URL: http://localhost/8081/geonetwork/srv/en/main.home

I've got slightly the same problems here, but using Jsl (a jslint
command-line tool), or by using jslint.com online tool, I could not
manage to find the issue. If you test your GeoNetwork instance by
using a '?debug' option onto the URL, you may use non-minified version
of Javascript files ; using this parameter, it succeeds to load the
main page of GN whithout prompting for JS errors.

So is it possible that the problem occurs after minification (using
jsbuild) ? In addition, looking at web/geonetwork/xsl/geo/utils.xsl,
it seems that the minified version of the JS file used to be called
'geo-libs.js', but with a recent svn checkout, I coult not find this
file anymore, and seem to have been renamed gn.libs.js.

I attached to this mail a patch related to my "JS debug session",
removing extra comas / semicolons, or adding where it was necessary,
hoping that would help to find the bug, even if this is not supposed
to fix the issue currently; (I did not regenerate the minified file,
by the way).

I'll let you know if I actually succeed in fixing this bug, but a
current workaround for now could be to use the "debug versions" of the
scripts.

Regards,

--
Pierre Mauduit

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 44 44 92
http://www.camptocamp.com
pierre.mauduit@anonymised.com

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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

Hello MMarco

2010/2/14 mmarco <mmarcosabate@anonymised.com>:

Hello,

I downloaded and compiled the Geonetwork trunk
(https://geonetwork.sourceforge.net/svnroot/geonetwork/trunk).

I choosed the trunk vs. GN v2.4.2 release because it seems to me that code
in the trunk implements INSPIRE metadata validation (INSPIRE schematron
rules) and this is a must for our organization.

INSPIRE validation rules is not used by default. Run "ant inspire" on
geonetwork schematron directory to turn this on. A restart is required
to register new rules.
Rules could also be merge to a 2.4.2 node using
schematrons/rules/schematron-rules-inspire.sch file.

Ciao.

Francois

Using Firefox the application works fine, but with Internet Explorer I have
several problems:

- Two Internet Explorer warnings appear :

   Line: 2064
   Character: 909
   Error: Expected identifier, string or number
   URL: http://localhost/8081/geonetwork/srv/en/main.home

   Line: 28
   Character: 15
   Error: &#39;extentMap&#39; is undefined
   URL: http://localhost/8081/geonetwork/srv/en/main.home

- When pressing the metadata "Edit" button. The OpenLayers map is not
showing in the "Geographic Bounding Box" section

- The "metadata" button that must display the metadata detail is not
working.

It seems that problems come from javascript related to OpenLayers
(javascripts placed in geo, geoext, ext directories).

I'd appreciate if somebody helps me, what can I do to solve that problem?
Thanks in advance and best regards,
MMarco

--
View this message in context: http://n2.nabble.com/Internet-Explorer-not-working-with-SVN-trunk-OpenLayers-problem-tp4571856p4571856.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

I am using Geonetwork 2.6.0 RC2 in order to test the usage of Geonetwork to
build our INSPIRE-Metadatportal, but I have difficulties using the INSPIRE
metadata validation. In fact, when I am checking the metadata there is no
INSPIRE-section. I have tried "ant inspire", and it seemed to work, but I
must have missed something. Can anyone tell me where to find some detailed
documentation about enabling the INSPIRE-validation in Geonetwork 2.6.0RC2?
Best regards,
Didi
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Internet-Explorer-not-working-with-SVN-trunk-OpenLayers-problem-tp4571856p5549410.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Francois...

I use the war version of GN 2.6.3.

I nedd the Schematron for INSPIRE.... but: where is the Schematron directory???

the ant process it needs in order to get schematron-rules-inspire.xls
file??? Can I download this file and put it in the schema/iso19139
directory???

Thank you

2010/2/16 Francois Prunayre <fx.prunayre@anonymised.com>:

Hello MMarco

2010/2/14 mmarco <mmarcosabate@anonymised.com>:

Hello,

I downloaded and compiled the Geonetwork trunk
(https://geonetwork.sourceforge.net/svnroot/geonetwork/trunk).

I choosed the trunk vs. GN v2.4.2 release because it seems to me that code
in the trunk implements INSPIRE metadata validation (INSPIRE schematron
rules) and this is a must for our organization.

INSPIRE validation rules is not used by default. Run "ant inspire" on
geonetwork schematron directory to turn this on. A restart is required
to register new rules.
Rules could also be merge to a 2.4.2 node using
schematrons/rules/schematron-rules-inspire.sch file.

Ciao.

Francois

Using Firefox the application works fine, but with Internet Explorer I have
several problems:

- Two Internet Explorer warnings appear :

   Line: 2064
   Character: 909
   Error: Expected identifier, string or number
   URL: http://localhost/8081/geonetwork/srv/en/main.home

   Line: 28
   Character: 15
   Error: &#39;extentMap&#39; is undefined
   URL: http://localhost/8081/geonetwork/srv/en/main.home

- When pressing the metadata "Edit" button. The OpenLayers map is not
showing in the "Geographic Bounding Box" section

- The "metadata" button that must display the metadata detail is not
working.

It seems that problems come from javascript related to OpenLayers
(javascripts placed in geo, geoext, ext directories).

I'd appreciate if somebody helps me, what can I do to solve that problem?
Thanks in advance and best regards,
MMarco

--
View this message in context: http://n2.nabble.com/Internet-Explorer-not-working-with-SVN-trunk-OpenLayers-problem-tp4571856p4571856.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Ing. Francesco D'Amore
blog: www.marinajonica.org
linkedin: http://www.linkedin.com/in/francescodamore
Consiglio Nazionale delle Ricerche - Istituto di Inquinamento Atmosferico (IIA)
Ph. D. Student at University of Calabria - DEIS