Changes between Version 6 and Version 7 of extractSubtemplates
- Timestamp:
- 05/03/12 02:33:41 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
extractSubtemplates
v6 v7 11 11 == Overview == 12 12 13 With the addition of the XLink functions, fragment harvesting, subtemplate (fragments in the GeoNetwork database) support and management of directories of subtemplates, GeoNetwork can now support reusable fragments of metadata. However many sites have metadata records with common fragments of metadata that they would like to extract into directories of subtemplates. This proposal adds a batch operation for admin users that will extract fragments from a selected set of records. Common fragments are identified calculating the checksum of the text content and using this as the uuid of the fragment.13 With the addition of the XLink functions, fragment harvesting, subtemplate (fragments in the GeoNetwork database) support and management of directories of subtemplates, !GeoNetwork can now support reusable fragments of metadata. However many sites have metadata records with common fragments of metadata that they would like to extract into directories of subtemplates. This proposal adds a batch operation for admin users that will extract fragments from a selected set of records. Common fragments are identified calculating the checksum of the text content and using this as the uuid of the fragment. 14 14 15 15 === Proposal Type === … … 25 25 == Motivations == 26 26 27 Many sites have existing metadata records with common information eg. contact information in an ISO CI_ResponsibleParty element. With the addition of subtemplate support and maintenance functions to GeoNetwork, it should be possible to extract these common fragments of metadata as subtemplates. This proposal describes a function that does this.27 Many sites have existing metadata records with common information eg. contact information in an ISO CI_ResponsibleParty element. With the addition of subtemplate support and maintenance functions to !GeoNetwork, it should be possible to extract these common fragments of metadata as subtemplates. This proposal describes a function that does this. 28 28 29 29 == Proposal == … … 108 108 109 109 * Run the command and check the logs to see whether your XPath and title extraction XSLT are doing what you expect. 110 * Check the checkbox alongside the ' Yes, I really want to do this' when you're sure that everything is ok. The end result will be that the fragments of metadata specified by the XPath will be removed from the records in the selected set and saved as subtemplates and then linked into the records that use them. Here is what part of the register record example used here looks like with an XLink replacing the original gnreg:RE_RegisterItem:110 * Check the checkbox alongside the 'I really want to do this!' when you're sure that everything is ok. The end result will be that the fragments of metadata specified by the XPath will be removed from the records in the selected set and saved as subtemplates and then linked into the records that use them. Here is what part of the register record example used here looks like with an XLink replacing the original gnreg:RE_RegisterItem: 111 111 112 112 {{{