[GeoNetwork-users] ANZLIC record default view view mode broken - GN v2.10.2 HTML5UI

Hi,

Selecting the default view view mode for an ANZLIC record results in an
error - XPathException : Template view-with-header-iso19139.anzlic has not
been defined.

I think this is because the iso19139.anzlic schema plugin is missing the
metadata-view.xsl file in the present directory?

Has anyone else struck this problem?

Kind regards

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Shireeb,

It sounds like you may have the wrong version of the ANZLIC plugin. I have
found that often the plugins need to be matched to the GeoNetwork version
and unfortunately, it is difficult to tell which to use. Are you using the
latest version from the repository? I think this one works with 2.10.2. Can
check this out in a couple days if you have not found a solution.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5140102.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Byron,

Thanks for the reply.

Yes we are using a 2.10 version downloaded from
http://anzlicmet.bluenet.utas.edu.au/wiki/aunzprofiles
<http://anzlicmet.bluenet.utas.edu.au/wiki/aunzprofiles&gt; .

To be safe I did a file compare\reconciliation between the our version and
the master schema plugins repository and the differences are all accounted
for (i.e. are the changes that have been made in the last month).

If you can take a look sometime that would be appreciated.

Kind regards
Shiree

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5140123.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Shiree,

Is this a Windows machine? If so then you should move to 2.10.3. The xml resolver code (a third party jar we use to resolving etc) was causing spurious problems like the one you're seeing.

Cheers,
Simon
________________________________________
From: shireeb [s.brockie@anonymised.com]
Sent: Wednesday, 14 May 2014 11:06 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] ANZLIC record default view view mode broken - GN v2.10.2 HTML5UI

Hi Byron,

Thanks for the reply.

Yes we are using a 2.10 version downloaded from
http://anzlicmet.bluenet.utas.edu.au/wiki/aunzprofiles
<http://anzlicmet.bluenet.utas.edu.au/wiki/aunzprofiles&gt; .

To be safe I did a file compare\reconciliation between the our version and
the master schema plugins repository and the differences are all accounted
for (i.e. are the changes that have been made in the last month).

If you can take a look sometime that would be appreciated.

Kind regards
Shiree

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5140123.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Thanks Simon. No not a Windows machine. Linux server and client.

I've checked another organisations site (who are on v2.10.1) that have
ANZLIC schema based records and it has the same error.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5140358.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

I think I found how to fix the Default view problem for ANZLIC profile. At
least it looks good so far.

In iso19139.anzlic/present:

  Add line:/ <xsl:import href="metadata-view.xsl”/>/ after xxl:stylesheet
tag
        Copy from iso19139/present metadata-view.xsl
    change lines:
       /<xsl:template name="view-with-header-iso19139">
to/
       /<xsl:template name="view-with-header-iso19139.anzlic">/
and

/
  <xsl:template name="metadata-iso19139view-simple"
match="metadata-iso19139view-simple">

    <xsl:call-template name="view-with-header-iso19139”>/
to
  /
  <xsl:template name="metadata-iso19139.anzlicview-simple"
match="metadata-iso19139.anzlicview-simple">

    <xsl:call-template name="view-with-header-iso19139.anzlic”>/

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5143188.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

That should say:

To /metadata-edit.xsl/ add line: <xsl:import href="metadata-view.xsl”/>
after <xxl:stylesheet ...> tag

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5145639.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Many Thanks Byron. Your fix has resolved the default view problem.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ANZLIC-record-default-view-view-mode-broken-GN-v2-10-2-HTML5UI-tp5139884p5145966.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.