Opened 13 years ago

Closed 13 years ago

#489 closed defect (fixed)

Unable to download raw xml metadata record

Reported by: gavz Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

I think we are running an alpha build of geonetwork (2.7). Our geonetwork server is located at http://spatial.ala.org.au/geonetwork

Steps to reproduce the problem

  1. Select a metadata record based on the ANZLIC MCP schema -> select simple search -> maps & graphics
  1. Select a layer containing the following text in the title "c.1960 1km-resolution climate layer for Australia"
  1. Try clicking on the xml source link (<>). The following error message appears:

XML Parsing Error: no element found Location: http://spatial.ala.org.au/geonetwork/srv/en/iso19139.xml?id=13 Line Number 1, Column 39:<?xml version="1.0" encoding="UTF-8"?>


Attachments (1)

export-metadata-xml.patch (13.0 KB ) - added by simonp 13 years ago.

Download all attachments as: .zip

Change History (5)

by simonp, 13 years ago

Attachment: export-metadata-xml.patch added

comment:1 by simonp, 13 years ago

Patch attached which consolidates XML metadata export services so that:

  • services that export metadata for a schema are prefixed by xml_{schema_name} eg. xml_iso19139
  • code in search results and viewer looks up xml services that can export and displays icons
  • mouse over/hover tips come from localized schema string files (oh no - more work for translators!)
  • the same code is used to display list of export icons in search results and metadata viewer

If this patch is committed then the schema must provide the services that export the metadata in various XML formats - this will prevent the error in this bug ticket

comment:2 by Fxp, 13 years ago

The patch looks good to me Simon. Could we also add those links generated in showMetadataExportIcons template to the brief format of each schemas (like we do for KML or add to map link) which may be useful for client app (eg. the widget) ?

comment:3 by simonp, 13 years ago

Thanks for the review Francois! I'll add the links to the brief format of the schemas as suggested for the widget interface to use.

comment:4 by simonp, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk in svn rev 8292 - schemaPlugins fixes will come along with anzmest

Note: See TracTickets for help on using tickets.