hi,
I have the same question about this behaviour. Why does the editor not leave
alone what you have entered, but instead changes it automatically to that
URL ?
In a project in Holland I just made change to avoid this behaviour: in
<install-dir>/web/geonetwork/xml/schemas/iso19139, edit the file
update-fixed-info.xsl such that you repace this :
<!-- =================================================================
-->
<!-- online resources: download -->
<!-- =================================================================
-->
<xsl:template
match="gmd:linkage[starts-with(following-sibling::gmd:protocol/gco:CharacterString,'WWW:DOWNLOAD-')
and
contains(following-sibling::gmd:protocol/gco:CharacterString,'http--download')
and following-sibling::gmd:name]">
<gmd:linkage>
<gmd:URL>
<xsl:value-of
select="concat(/root/env/siteURL,'/resources.get?id=',/root/env/id,'&fname=',following-sibling::gmd:name/gco:CharacterString,'&access=private')"/>
</gmd:URL>
</gmd:linkage>
</xsl:template>
with this
<!-- =================================================================
-->
<!-- online resources: download -->
<!-- =================================================================
-->
<xsl:template
match="gmd:linkage[starts-with(following-sibling::gmd:protocol/gco:CharacterString,'WWW:DOWNLOAD-')
and
contains(following-sibling::gmd:protocol/gco:CharacterString,'http--download')
and following-sibling::gmd:name]">
<gmd:linkage>
<gmd:URL>
<xsl:value-of select="gmd:URL"/>
</gmd:URL>
</gmd:linkage>
</xsl:template>
then the editor won't automatically change whatever you have entered.
Remains the question what the reason is for this default behaviour.
Something to do with rights management ?
Kind regards
Heikki Doeleman
On Mon, Dec 15, 2008 at 11:04 PM, Ticheler Jeroen
<jeroen.ticheler@anonymised.com>wrote:
Hi Todd,
What you should do first is to setup some System settings. You can
find those in the Administration panel under System configuration.
Make sure the base URL and port reflect your catalog's settings.
Detailed help can be found in the Help (also accessible from the
menu). Read the Chapter 8 - Basic Configuration.
Ciao,
Jeroen
On Dec 15, 2008, at 7:57 PM, Todd Fagin wrote:
>
> Greetings list,
>
> I have imported ISO 19139 metadata into GeoNetwork using Gast. Once
> imported, I have attempted to edit the online resources section to
> point to
> the appropriate location of the file to download. However, every
> time I
> change it, GeoNetwork automatically changes the path back to
> http://localhost:8080/geonetwork/srv/en/resources.get?id=… This
> means
> that if someone tries to access it on a remote computer and clicks the
> download button, the browser will automatically look for
> http://localhost:8080/geonetwork/srv/en/resources.get?id=… rather
> than the
> actual path where the data are located (e.g.
> http://ourdomain.com:8080/geonetwork/srv/en/resources.get?id=…)
> This is
> also a problem if you use a port other than 8080.
>
> I have tried editing in the Default view, the advanced view, and the
> XML
> view and nothing seems to work.
>
> Any suggestions?
>
> Thanks,
>
> Todd
>
> --
> View this message in context:
http://www.nabble.com/Download-Data-tp21019501p21019501.html
> Sent from the geonetwork-users mailing list archive at Nabble.com.
>
>
>
------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> The future of the web can't happen without you. Join us at MIX09 to
> help
> pave the way to the Next Web now. Learn more and register at
>
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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