Hi there,
I've followed the method detailed on
http://osgeo-org.1803224.n2.nabble.com/Adding-the-ISO-topic-categories-search-option-to-Geonetwork-2-2-0-td2014623.html
http://osgeo-org.1803224.n2.nabble.com/Adding-the-ISO-topic-categories-search-option-to-Geonetwork-2-2-0-td2014623.html
, about adding a search option for ISO TOPICS on the GeoNetwork home page.
After making the modifications (see below), selection of a ISO TOPIC
category from the drop down list is not filtering out relevant ISO19139
metadata records?
I'd be grateful for any suggestions.
Cheers,
Richard
Modifications (GeoNetwork v2.6.3):
1. searchform_advanced.xsl
Line: 239
Inserted:
<select class="content" name="topicCat" id="topicCat">
<option value="">
<xsl:if test="/root/gui/searchDefaults/topicCat=''">
<xsl:attribute name="selected"/>
</xsl:if>
<xsl:value-of select="/root/gui/strings/any"/>
</option>
<xsl:for-each
select="/root/gui/iso19139/codelist[@name='gmd:MD_TopicCategoryCode']/entry">
<xsl:sort select="label" order="ascending"/>
<option value="{code}">
<xsl:if test="label = /root/gui/searchDefaults/topicCat">
<xsl:attribute name="selected"/>
</xsl:if>
<xsl:value-of select="label"/>
</option>
</xsl:for-each>
</select>
2. lucene.xsl
Line: 193
Inserted:
<!-- topic category searching - - - - - - - - - - - -->
<xsl:if test="/request/topicCat">
<BooleanClause required="true" prohibited="false">
<BooleanQuery>
<xsl:for-each select="/request/topicCat">
<xsl:if test="string(/request/topicCat) != ''">
<BooleanClause required="false"
prohibited="false">
<TermQuery fld="topicCat" txt="{.}"/>
</BooleanClause>
</xsl:if>
</xsl:for-each>
</BooleanQuery>
</BooleanClause>
</xsl:if>
3. gn_search.xsl
Line: 330
Inserted:
setParam('topicCat','');
and
Line: 256
Inserted:
pars += fetchParam('topicCat');
4. <xml name="iso19139" base="xml/schemas/iso19139/loc" file="codelists.xml"
/> is already coded in config.xml
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/ISO-TOPIC-search-option-tp5954433p5954433.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.