Opened 12 years ago

Closed 12 years ago

#835 closed enhancement (fixed)

Thesaurus reference not included in thesaurusName block when Thesaurus picker used to insert keywords

Reported by: simonp Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

A reference to the thesaurus should be available for two reasons:

  • allows revisit by thesaurus picker to be coded (see ticket #711)
  • users should be able to access the entire thesaurus if required

Suggested fix is to change KeywordBean to encode thesaurus reference in gmd:otherCitationDetails/gmx:FileName and thesaurus id as id attribute on gmd:thesaurusName/gmd:CI_Citation *and* don't process gmx:FileName in updated-fixed-info.xsl when ancestor CI_Citation has a geonetwork thesaurus in its id attribute.

eg. of a thesaurusName block added with keywords:

<gmd:thesaurusName>
  <gmd:CI_Citation id="geonetwork.thesaurus.register.theme.bc44a748-f1a1-4775-9395-a4a6d8bb8df6">
    <gmd:title>
      <gco:CharacterString>THESAURUS NAME</gco:CharacterString>
    </gmd:title>
    <gmd:date gco:nilReason="unknown"/>
    <gmd:otherCitationDetails>
      <gmx:FileName src="http://localhost:8080/geonetwork/srv/eng/metadata.show?uuid=bc44a748-f1a1-4775-9395-a4a6d8bb8df6">register.theme.bc44a748-f1a1-4775-9395-a4a6d8bb8df6</gmx:FileName>
    </gmd:otherCitationDetails>
  </gmd:CI_Citation>
</gmd:thesaurusName>

Change History (4)

comment:1 by fxp, 12 years ago

A reference to the thesaurus could be created using gmx:Anchor like this (Not sure it's better than gmx:FileName):

    <gmd:title>
      <gmx:Anchor xlink:href="http://localhost:8080/geonetwork/srv/eng/geonetwork/srv/eng/thesaurus.download?ref=geonetwork.thesaurus.register.theme.bc44a748-f1a1-4775-9395-a4a6d8bb8df6">THESAURUS NAME</gmx:Anchor>
    </gmd:title>

But this links to the RDF file. Maybe a link to the register view mode is expected ? In that case:

    <gmd:title>
      <gmx:Anchor xlink:href="http://localhost:8080/geonetwork/?uuid=bc44a748-f1a1-4775-9395-a4a6d8bb8df6">THESAURUS NAME</gmx:Anchor>
    </gmd:title>
    <gmd:otherCitationDetails>
      <gmx:Anchor xlink:href="http://localhost:8080/geonetwork/srv/eng/geonetwork/srv/eng/thesaurus.download?ref=geonetwork.thesaurus.register.theme.bc44a748-f1a1-4775-9395-a4a6d8bb8df6">THESAURUS NAME (SKOS format)</gmx:Anchor>
    </gmd:otherCitationDetails>

I would also replace

to make link working in all UI.

comment:2 by simonp, 12 years ago

Hi Francois,

Thanks for the tips on making the link work in all UI - I'll include that. As for the gmx:Anchor versus gmx:FileName in otherCitationDetails etc - I think I prefer the gmx:FileName at the moment for two reasons:

  • we build the whole gmd:thesaurusName block so no conflict with other uses for otherCitationDetails/gmx:FileName
  • I don't think the xlink processor exclude option has been coded yet so we would have issues with the xlink processor including the rdf/whatever in here at present? (we run with xlink processing on by default here)

Thanks, Simon

comment:3 by fxp, 12 years ago

Anchor looks to be used "here" more for keywords than thesaurus (so gmx:FileName for thesaurus ref looks fine for me - I don't have example for this). I may add basic support for keyword with Anchor later too (see #681).

comment:4 by simonp, 12 years ago

Resolution: fixed
Status: newclosed

Added in svn rev 8921

Note: See TracTickets for help on using tickets.