I’m using version 2.10.3 on Windows 2012 Server
Here is the HTML resulting from two of my instances
<div class="extentViewer" style="margin:auto; width:98%;" id="ext-gen684" edit="false" target_polygon="" watched_bbox="w,s,e,n" elt_ref="" mode="bbox">
<div class="extentViewer" style="margin:auto; width:98%;" id="d308e73864" edit="false" target_polygon="" watched_bbox="wd308e73864,sd308e73864,ed308e73864,nd308e73864" elt_ref="d308e73864" mode="bbox">
<div class="extentViewer" style="margin:auto; width:98%;" id="d308e74185" edit="false" target_polygon="" watched_bbox="wd308e74185,sd308e74185,ed308e74185,nd308e74185" elt_ref="d308e74185" mode="bbox">
The first one displays ok – the latter two don’t unfortunately and I can’t figure out why.
Cheers
Paul
From: Francois Prunayre [mailto:fx.prunayre@…54…]
Sent: Monday, August 11, 2014 3:09 PM
To: Paul Cleverley
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Javascript
2014-08-11 15:56 GMT+02:00 Paul Cleverley <P.Cleverley@...1309...<mailto:P.Cleverley@…1309…>>:
Thanks Francois,
I’m not using the Ext.js interface I’m afraid
So which GeoNetwork version are you using ? Maps are initialized by this JS function https://github.com/geonetwork/core-geonetwork/blob/2.10.x/web/src/main/webapp/scripts/geo/extentMap.js#L80
– that would be just one Javascript framework too far for my poor little brain 
I have derived templates from iso19139 (so I can use my own styles – can’t get that to work any other way) but my derived templates don’t allow multiple maps – and by “maps” I mean multiple divs on a single page with different backgrounds, layers, zoom levels etc etc.
The editor will generate one map per boundingbox (but background maps and layers will be the same).
Cheers.
Francois
I’m beginning to wonder if I’m not too old for this…:-}
Cheers
Paul
From: Francois Prunayre [mailto:fx.prunayre@…54…]
Sent: Monday, August 11, 2014 2:41 PM
To: Paul Cleverley
Cc: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@lists.sourceforge.net>
Subject: Re: [GeoNetwork-users] Javascript
Hi Paul,
2014-08-11 14:58 GMT+02:00 Paul Cleverley <P.Cleverley@...1309...<mailto:P.Cleverley@…1309…>>:
Hi all
My metadata entry requires the display of > 1 map - I have tried very hard to use extant code but this will only display the first map and any subsequent ones aren't visible (I'm processing the various instances of gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox
iso19139 schema support multiple bbox, so you should call iso19139 template for it or do something like
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/present/metadata-geo.xsl#L94
in your schema.
with a copy of the iso19139 template which uses the extentViewer css class.
So I was wondering - how do I get my metadata.xsl stylesheet to fire up some javascript when search results are returned? That way I can access OpenLayers directly...
If you're using the Ext.js interface, then you should look to the EditorPanel (https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/editor/EditorPanel.js#L962) and the metadataUpdated event maybe.
HTH
Francois
If my schema is called iso19139mim will this be something to do with the "iso19139mim.javascript" template?
Thanks
Paul
Paul Cleverley
Software Developer, Hydrodynamics & Metocean
E: p.cleverley@...1309...<mailto:p.cleverley@…1309…><mailto:p.cleverley@…1309…>
T: +44 (0)1491 822483<tel:%2B44%20%280%291491%20822483>
<http://www.hrwallingford.com/banner.html>
________________________________
[HR Wallingford Logo]
HR Wallingford
Howbery Park, Wallingford, Oxfordshire OX10 8BA, United Kingdom
T: +44 (0)1491 835381<tel:%2B44%20%280%291491%20835381> F: +44 (0)1491 832233<tel:%2B44%20%280%291491%20832233>
www.hrwallingford.com<http://www.hrwallingford.com>
[HR Wallingford Secondary Logo]
________________________________
________________________________
HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.
HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099
________________________________
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
This message has been scanned for viruses by MailControl<http://www.mailcontrol.com/>, a service from BlackSpider Technology
Click here<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> to report this email as spam.
________________________________
HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.
HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099
________________________________
________________________________
HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.
HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099
________________________________