| 1 | = Editing metadata related resources = |
| 2 | |
| 3 | || '''Date''' || 2013-01-02 || |
| 4 | || '''Contact(s)''' || Francois Prunayre || |
| 5 | || '''Status''' || Being discussed, in progress, initial implementation in progress || |
| 6 | || '''Assigned to release''' || 2.9.x || |
| 7 | || '''Resources''' || Available (funding Ifremer) || |
| 8 | || '''Ticket #''' || #XYZ || |
| 9 | || '''Github dev branch ''' || https://github.com/fxprunayre/core-geonetwork/tree/improvement/relations || |
| 10 | |
| 11 | == Overview == |
| 12 | |
| 13 | This proposal aims to improve the way a resource is linked to a metadata in editing mode. Indeed, !GeoNetwork provides multiples ways of adding link to external or internal resources in different places of the editor. We could list: |
| 14 | * in the editor using the binocular to search for a record to link (eg. parentIdentifier, sources, featureCatalog, operatesOn, aggregates) |
| 15 | * file upload for thumbnail or online sources |
| 16 | * custom UI for service/dataset link |
| 17 | |
| 18 | This proposal provide a main component to view, add or remove the related resources. |
| 19 | |
| 20 | A related resource could be: |
| 21 | * A thumbnail (URL or file to upload) |
| 22 | * A parent metadata record (UUID to the metadata) |
| 23 | * A service metadata record |
| 24 | * A dataset metadata record |
| 25 | * A online source (URL or file to upload) |
| 26 | * A feature catalog (UUID to the metadata in ISO19110 format) |
| 27 | * A sibling (See http://trac.osgeo.org/geonetwork/wiki/MetadataSiblings) |
| 28 | |
| 29 | |
| 30 | This component is only available for ISO19139 records (or ISO19139 profiles) but when related resources are metadata records, those records could be in any of the catalog supported standards (eg. ISO19110 for feature catalog). |
| 31 | |
| 32 | |
| 33 | === Proposal Type === |
| 34 | * '''Type''': GUI Change |
| 35 | * '''App''': !GeoNetwork |
| 36 | * '''Module''': Widgets |
| 37 | |
| 38 | === Links === |
| 39 | * '''Documents''': |
| 40 | |
| 41 | === Voting History === |
| 42 | * Vote not yet proposed. |
| 43 | |
| 44 | == Motivations == |
| 45 | Make relation management easier. |
| 46 | |
| 47 | == Proposal == |
| 48 | |
| 49 | This related resource panel rely on: |
| 50 | * the relation services (to retrieve current relation for a record) |
| 51 | * XSL processing to add or remove a relation |
| 52 | |
| 53 | === Add a thumbnail === |
| 54 | |
| 55 | Two types of thumbnails could be linked to a metadata record: |
| 56 | * an image linked using its URL (the image needs to be published online) |
| 57 | * an image uploaded in the record data directory. After upload a small thumbnail could be created if requested. |
| 58 | |
| 59 | |
| 60 | The thumbnail upload form provide a simple way to add thumbnails: |
| 61 | [[Image(geonetwork-add-thumbnail.png)]] |
| 62 | |
| 63 | The relation panel allows to quickly remove a thumbnail. |
| 64 | |
| 65 | |
| 66 | When the image is uploaded, the XML snippet corresponding to the image is the following: |
| 67 | {{{ |
| 68 | <gmd:graphicOverview> |
| 69 | <gmd:MD_BrowseGraphic> |
| 70 | <gmd:fileName> |
| 71 | <gco:CharacterString>http://www.cyber-heritage.co.uk/maps/map3.jpg</gco:CharacterString> |
| 72 | </gmd:fileName> |
| 73 | </gmd:MD_BrowseGraphic> |
| 74 | </gmd:graphicOverview> |
| 75 | <gmd:graphicOverview xmlns:srv="http://www.isotc211.org/2005/srv"> |
| 76 | <gmd:MD_BrowseGraphic> |
| 77 | <gmd:fileName> |
| 78 | <gco:CharacterString>http://localhost:8080/geonetwork/srv/eng/resources.get?uuid=7e512c38-f916-43ba-8367-85f17dcadca1&fname=thumbnail.jpg</gco:CharacterString> |
| 79 | </gmd:fileName> |
| 80 | <gmd:fileDescription> |
| 81 | <gco:CharacterString>large_thumbnail</gco:CharacterString> |
| 82 | </gmd:fileDescription> |
| 83 | <gmd:fileType> |
| 84 | <gco:CharacterString>jpg</gco:CharacterString> |
| 85 | </gmd:fileType> |
| 86 | </gmd:MD_BrowseGraphic> |
| 87 | </gmd:graphicOverview> |
| 88 | }}} |
| 89 | |
| 90 | When linking using a URL, the following XML snippet is inserted |
| 91 | {{{ |
| 92 | <gmd:graphicOverview> |
| 93 | <gmd:MD_BrowseGraphic> |
| 94 | <gmd:fileName> |
| 95 | <gco:CharacterString>http://organization.org/images/thumbnail.jpg</gco:CharacterString> |
| 96 | </gmd:fileName> |
| 97 | </gmd:MD_BrowseGraphic> |
| 98 | </gmd:graphicOverview> |
| 99 | }}} |
| 100 | |
| 101 | In both cases, the information could be improved or updated using the editor from the advanced view > identification section. |
| 102 | |
| 103 | |
| 104 | |
| 105 | === Add an online source === |
| 106 | |
| 107 | |
| 108 | === Add a dataset to a metadata about a service === |
| 109 | |
| 110 | |
| 111 | === Add a service to a metadata about a dataset === |
| 112 | |
| 113 | |
| 114 | === Add a service to a metadata about a dataset === |
| 115 | |
| 116 | |
| 117 | === Backwards Compatibility Issues === |
| 118 | None. |
| 119 | |
| 120 | === New libraries added === |
| 121 | None. |
| 122 | |
| 123 | == Risks == |
| 124 | Everything involves some element of risk.... |
| 125 | |
| 126 | == Participants == |
| 127 | * Francois Prunayre |
| 128 | * Ifremer |
| 129 | * Camptocamp |
| 130 | * Others? |