[GeoNetwork-users] Removing the "Data for download" only for harvested items

Hi,

I have a GeoNetwork with:
1. Metadata that I have created
2. Metadata that are harvested from a remote Geonetwork

I would like to remove the "Data for download" button only for the
harvested metadata.

How shoud I proceed?

Thank you for your answer.

P.

Hi
To complete my email of 20th August: when harvesting metadata from a remote
node the "Data for Download" button sometimes appears and sometimes not. I
do not know whether this is a bug. Anyway my question is: How to remove this
button on my GeoNetwork?
Thanks for your reply.
P.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Removing-the-Data-for-download-only-for-harvested-items-tp5073424p5074338.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

In your data directory, edit this file:

config/schema_plugins/iso19139/present/metadata-iso19139.xsl

change the line

<xsl:if test="count(gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource/gmd:protocol/gco:CharacterString[contains(string(.),'download')])>1 and

to:

<xsl:if test="false() and count(gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource/gmd:protocol/gco:CharacterString[contains(string(.),'download')])>1 and

In the webapp, edit xsl/search-results-xhtml.xsl, change

<xsl:when test="$metadata/geonet:info/download='true' and count($metadata/link[@type='download'])>0">

to:

<xsl:when test="false() and $metadata/geonet:info/download='true' and count($metadata/link[@type='download'])>0">

And change

<xsl:when test="count($metadata/link[@type='dataurl'])>0">

to:

<xsl:when test="false() and count($metadata/link[@type='dataurl'])>0">

Then restart GeoNetwork.

Matthijs

On 2013-08-26 15:40, Pierre wrote:

Hi
To complete my email of 20th August: when harvesting metadata from a remote
node the "Data for Download" button sometimes appears and sometimes not. I
do not know whether this is a bug. Anyway my question is: How to remove this
button on my GeoNetwork?
Thanks for your reply.
P.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Removing-the-Data-for-download-only-for-harvested-items-tp5073424p5074338.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
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

This works. Thanks a lot Matthijs.

2013/8/27 Matthijs Laan <matthijslaan@anonymised.com>

In your data directory, edit this file:

config/schema_plugins/iso19139/present/metadata-iso19139.xsl

change the line

<xsl:if

test="count(gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource/gmd:protocol/gco:CharacterString[contains(string(.),'download')])>1
and

to:

<xsl:if test="false() and

count(gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource/gmd:protocol/gco:CharacterString[contains(string(.),'download')])>1
and

In the webapp, edit xsl/search-results-xhtml.xsl, change

<xsl:when test="$metadata/geonet:info/download='true' and
count($metadata/link[@type='download'])>0">

to:

<xsl:when test="false() and $metadata/geonet:info/download='true' and
count($metadata/link[@type='download'])>0">

And change

<xsl:when test="count($metadata/link[@type='dataurl'])>0">

to:

<xsl:when test="false() and count($metadata/link[@type='dataurl'])>0">

Then restart GeoNetwork.

Matthijs

On 2013-08-26 15:40, Pierre wrote:
> Hi
> To complete my email of 20th August: when harvesting metadata from a
remote
> node the "Data for Download" button sometimes appears and sometimes not.
I
> do not know whether this is a bug. Anyway my question is: How to remove
this
> button on my GeoNetwork?
> Thanks for your reply.
> P.
>
>
>
> --
> View this message in context:
http://osgeo-org.1560.x6.nabble.com/Removing-the-Data-for-download-only-for-harvested-items-tp5073424p5074338.html
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
>
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> 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

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
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