[GeoNetwork-users] Relative Url for thumbnail

Hi all,

I need a way to use a relative url path to a thumbnail_url, the issue is
that my url is transformed in another, for instance:

<gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;
    <gmd:MD_BrowseGraphic>
        <gmd:fileName>

<gco:CharacterString>/RELATIVE/PATH/THUMBNAIL.png</gco:CharacterString>
        </gmd:fileName>
        <gmd:fileDescription>
            <gco:CharacterString>thumbnail</gco:CharacterString>
        </gmd:fileDescription>
        <gmd:fileType>
            <gco:CharacterString>png</gco:CharacterString>
        </gmd:fileType>
    </gmd:MD_BrowseGraphic>
</gmd:graphicOverview>

Is transformed at this link:
http://localhost:8080/geonetwork/srv/por/resources.get?id=12&fname=/geonetwork/srv/eng/resources.get?uuid=8cd566d0-8798-47a7-95c0-7e9ee4764a67&fname=THUMBNAIL.png&access=public

How to get the /RELATIVE/PATH/THUMBNAIL.png instead?

Thanks!

I am really stuck here, i am looking for the template that handle the
MD_BrowseGraphic to add a $baseURL before the link, but no luck so far.

Any help wold be really apreciated, Thanks!

2014-09-25 15:33 GMT-03:00 Danilo da Silveira Figueira <
danilomalzao@anonymised.com>:

Hi all,

I need a way to use a relative url path to a thumbnail_url, the issue is
that my url is transformed in another, for instance:

<gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;
    <gmd:MD_BrowseGraphic>
        <gmd:fileName>

<gco:CharacterString>/RELATIVE/PATH/THUMBNAIL.png</gco:CharacterString>
        </gmd:fileName>
        <gmd:fileDescription>
            <gco:CharacterString>thumbnail</gco:CharacterString>
        </gmd:fileDescription>
        <gmd:fileType>
            <gco:CharacterString>png</gco:CharacterString>
        </gmd:fileType>
    </gmd:MD_BrowseGraphic>
</gmd:graphicOverview>

Is transformed at this link:

http://localhost:8080/geonetwork/srv/por/resources.get?id=12&fname=/geonetwork/srv/eng/resources.get?uuid=8cd566d0-8798-47a7-95c0-7e9ee4764a67&fname=THUMBNAIL.png&access=public

How to get the /RELATIVE/PATH/THUMBNAIL.png instead?

Thanks!

Hi,

2014-09-25 21:03 GMT+02:00 Danilo da Silveira Figueira <
danilomalzao@anonymised.com>:

I am really stuck here, i am looking for the template that handle the
MD_BrowseGraphic to add a $baseURL before the link, but no luck so far.

Any help wold be really apreciated, Thanks!

2014-09-25 15:33 GMT-03:00 Danilo da Silveira Figueira <
danilomalzao@anonymised.com>:

> Hi all,
>
> I need a way to use a relative url path to a thumbnail_url, the issue is
> that my url is transformed in another, for instance:
>
> <gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;
> <gmd:MD_BrowseGraphic>
> <gmd:fileName>
>
> <gco:CharacterString>/RELATIVE/PATH/THUMBNAIL.png</gco:CharacterString>
> </gmd:fileName>
> <gmd:fileDescription>
> <gco:CharacterString>thumbnail</gco:CharacterString>
> </gmd:fileDescription>
> <gmd:fileType>
> <gco:CharacterString>png</gco:CharacterString>
> </gmd:fileType>
> </gmd:MD_BrowseGraphic>
> </gmd:graphicOverview>
>
> Is transformed at this link:
>
>
http://localhost:8080/geonetwork/srv/por/resources.get?id=12&fname=/geonetwork/srv/eng/resources.get?uuid=8cd566d0-8798-47a7-95c0-7e9ee4764a67&fname=THUMBNAIL.png&access=public
>
> How to get the /RELATIVE/PATH/THUMBNAIL.png instead?
>

https://github.com/geonetwork/core-geonetwork/blob/develop/schemas/iso19139/src/main/plugin/iso19139/set-thumbnail.xsl#L132

BTW, if your record get harvested or exported the relative path will not
work for the one who get the record.

HTH.

Francois

> Thanks!
>

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&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

Thank you very much Francois !! =)

2014-09-26 2:35 GMT-03:00 Francois Prunayre <fx.prunayre@anonymised.com>:

Hi,

2014-09-25 21:03 GMT+02:00 Danilo da Silveira Figueira <
danilomalzao@anonymised.com>:

I am really stuck here, i am looking for the template that handle the
MD_BrowseGraphic to add a $baseURL before the link, but no luck so far.

Any help wold be really apreciated, Thanks!

2014-09-25 15:33 GMT-03:00 Danilo da Silveira Figueira <
danilomalzao@anonymised.com>:

> Hi all,
>
> I need a way to use a relative url path to a thumbnail_url, the issue is
> that my url is transformed in another, for instance:
>
> <gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;
> <gmd:MD_BrowseGraphic>
> <gmd:fileName>
>
> <gco:CharacterString>/RELATIVE/PATH/THUMBNAIL.png</gco:CharacterString>
> </gmd:fileName>
> <gmd:fileDescription>
> <gco:CharacterString>thumbnail</gco:CharacterString>
> </gmd:fileDescription>
> <gmd:fileType>
> <gco:CharacterString>png</gco:CharacterString>
> </gmd:fileType>
> </gmd:MD_BrowseGraphic>
> </gmd:graphicOverview>
>
> Is transformed at this link:
>
>
http://localhost:8080/geonetwork/srv/por/resources.get?id=12&fname=/geonetwork/srv/eng/resources.get?uuid=8cd566d0-8798-47a7-95c0-7e9ee4764a67&fname=THUMBNAIL.png&access=public
>
> How to get the /RELATIVE/PATH/THUMBNAIL.png instead?
>

https://github.com/geonetwork/core-geonetwork/blob/develop/schemas/iso19139/src/main/plugin/iso19139/set-thumbnail.xsl#L132

BTW, if your record get harvested or exported the relative path will not
work for the one who get the record.

HTH.

Francois

> Thanks!
>

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&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