Open josegar74 opened 7 years ago
Same issue applies to other files included in the mef. If a mef includes files I'd expect the links in the metadata will be updated on import to point to the local files
will be updated on import to point to the local files
Do you have any idea why it is not the case already ? I'll do that change too.
See code changes done in https://github.com/geonetwork/core-geonetwork/pull/1772
@fxprunayre has this issue been resolved?
@arbakker I tried to fix it here https://github.com/geonetwork/core-geonetwork/pull/2539
The issue seems to be partially solved as of 3.6.0.
The thumbnail
is properly set, while the link to the large_thumbnail
is broken.
<gmd:graphicOverview>
<gmd:MD_BrowseGraphic>
<gmd:fileName gco:nilReason="missing">
<gco:CharacterString>http://localhost:8080/geonetwork/srv/api/records/PROPER_UUID/attachments/</gco:CharacterString>
</gmd:fileName>
<gmd:fileDescription>
<gco:CharacterString>large_thumbnail</gco:CharacterString>
</gmd:fileDescription>
</gmd:MD_BrowseGraphic>
</gmd:graphicOverview>
<gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv">
<gmd:MD_BrowseGraphic>
<gmd:fileName>
<gco:CharacterString>http://localhost:8080/geonetwork/srv/api/records/PROPER_UUID/attachments/mythumbnail_s.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>
In previous versions of GeoNetwork the thumbnails were stored with this format (file name only):
With the new API in 3.2.x the format has change to this (using full url to API to return the image):
The MEF import copies the thumbnails to the data folder, but unfortunately doesn't handle this conversion in the
gmd:fileName
format and there's no batch process to fix.For now the only fix seem a manual one, editing each metadata and editing the thumbnail to re-link it to the related image. Not optimal for large imports.
Also not clear what would happen if exporting in 3.2.x a MEF file and importing in other server if the url in
gmd:fileName
would be updated to set the new server name.