Changes between Version 9 and Version 10 of metadatachanges


Ignore:
Timestamp:
Jan 9, 2012, 7:18:44 AM (12 years ago)
Author:
simonp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • metadatachanges

    v9 v10  
    3434 * changes to properties of the metadata record eg. privileges, categories, status
    3535
    36 As we use a database to hold both the metadata records and their properties, we could implement history tables to capture these changes and provide a user interface that allows the user to query the information in these tables. Alternatively, we could use a subversion repository to capture these changes and allow the user to examine the changes through the various visual interfaces to subversion repositories that already exist eg. viewvc.
     36As we use a database to hold both the metadata records and their properties, we could implement history tables to capture these changes and provide a user interface that allows the user to query the information in these tables. Alternatively, we could use a subversion repository to capture these changes and allow the user to examine the changes through the various visual interfaces to subversion repositories that already exist eg. viewvc. Apart from the advantage of ready to use tools for examining the changes, the subversion approach is efficient for XML files and simple to maintain.
    3737
    3838== Proposal ==
     
    124124</response>
    125125}}}
     126
     127Difference between revisions 3 and 4 for the privileges.xml file for metadata record 10:
     128
     129{{{
     130svn diff -r 3:4
     131Index: 10/privileges.xml
     132===================================================================
     133--- 10/privileges.xml   (revision 3)
     134+++ 10/privileges.xml   (revision 4)
     135@@ -1,12 +1,52 @@
     136 <response>
     137   <record>
     138+    <group_name>intranet</group_name>
     139+    <operation_id>0</operation_id>
     140+    <operation_name>view</operation_name>
     141+  </record>
     142+  <record>
     143     <group_name>sample</group_name>
     144     <operation_id>0</operation_id>
     145     <operation_name>view</operation_name>
     146   </record>
     147   <record>
     148+    <group_name>all</group_name>
     149+    <operation_id>0</operation_id>
     150+    <operation_name>view</operation_name>
     151+  </record>
     152+  <record>
     153+    <group_name>intranet</group_name>
     154+    <operation_id>1</operation_id>
     155+    <operation_name>download</operation_name>
     156+  </record>
     157+  <record>
     158+    <group_name>all</group_name>
     159+    <operation_id>1</operation_id>
     160+    <operation_name>download</operation_name>
     161+  </record>
     162+  <record>
     163     <group_name>sample</group_name>
     164     <operation_id>3</operation_id>
     165     <operation_name>notify</operation_name>
     166   </record>
     167+  <record>
     168+    <group_name>intranet</group_name>
     169+    <operation_id>5</operation_id>
     170+    <operation_name>dynamic</operation_name>
     171+  </record>
     172+  <record>
     173+    <group_name>all</group_name>
     174+    <operation_id>5</operation_id>
     175+    <operation_name>dynamic</operation_name>
     176+  </record>
     177+  <record>
     178+    <group_name>intranet</group_name>
     179+    <operation_id>6</operation_id>
     180+    <operation_name>featured</operation_name>
     181+  </record>
     182+  <record>
     183+    <group_name>all</group_name>
     184+    <operation_id>6</operation_id>
     185+    <operation_name>featured</operation_name>
     186+  </record>
     187 </response>
     188}}}
     189
     190Examination of this diff file shows that privileges for the 'All' and 'Intranet' groups have been added between revision 3 and 4 - in short, the record has been published.
     191
     192Here is an example of a change that has been made to a metadata record:
     193
     194{{{
     195svn diff -r 2:3
     196Index: 10/metadata.xml
     197===================================================================
     198--- 10/metadata.xml     (revision 2)
     199+++ 10/metadata.xml     (revision 3)
     200@@ -61,7 +61,7 @@
     201     </gmd:CI_ResponsibleParty>
     202   </gmd:contact>
     203   <gmd:dateStamp>
     204-    <gco:DateTime>2012-01-10T01:47:51</gco:DateTime>
     205+    <gco:DateTime>2012-01-10T01:48:06</gco:DateTime>
     206   </gmd:dateStamp>
     207   <gmd:metadataStandardName>
     208     <gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>
     209@@ -85,7 +85,7 @@
     210       <gmd:citation>
     211         <gmd:CI_Citation>
     212           <gmd:title>
     213-            <gco:CharacterString>Template for Vector data in ISO19139 (preferr
     214ed!)</gco:CharacterString>
     215+            <gco:CharacterString>fobblers foibblers</gco:CharacterString>
     216           </gmd:title>
     217           <gmd:date>
     218             <gmd:CI_Date>
     219
     220}}}
     221
     222This example shows that the editor has made a change to the title and the dateStamp.
     223
     224Note these examples were created using command line subversion tools. The viewvc subversion repository tool has a graphical interface that allows side-by-side comparison of changes/differences between files:
     225
    126226
    127227