Commits

dloy committed 92f3474

Add id delete formatting

Comments (0)

Files changed (3)

core/src/main/java/org/cdlib/mrt/formatter/XMLMapper.java

         strfile,
         strfixity,
         strprimary,
+        strlocid,
+        strdelid,
         exc,
         undef;
     }
     protected final String FIXITY_SELECT = "FixitySelectState";
     protected final String FIXITY_SERVICE = "FixityServiceState";
     protected final String FIXITY_SUBMIT = "FixitySubmittedState";
+    protected final String STORE_LOCID = "LocalIDsState";
+    protected final String STORE_DELID = "DeleteIDState";
 
     public static XMLMapper getXMLMapper(String resourceName, StateInf state)
         throws TException
         else if (stateS.contains(AUTHORIZE)) type = Type.authorize;
         else if (stateS.contains(QUEUE_ENTRY_STATE)) type = Type.ingqueue;
         else if (stateS.contains(FEEDER)) type = Type.feeder;
+        else if (stateS.contains(STORE_LOCID)) type = Type.strlocid;
+        else if (stateS.contains(STORE_DELID)) type = Type.strdelid;
         else type = Type.undef;
         prop = getProperties(resourceName);
         this.state = state;

core/src/main/resources/resources/XMLFormatNS.properties

 strfile.namespace=fil
 strfixity.header=xmlns:fix='http://uc3.cdlib.org/ontology/mrt/store/fix'
 strfixity.namespace=fix
+strlocid.header=xmlns:fix='http://uc3.cdlib.org/ontology/mrt/store/locid'
+strlocid.namespace=locid
+strdelid.header=xmlns:fix='http://uc3.cdlib.org/ontology/mrt/store/delid'
+strdelid.namespace=delid
 strprimary.header=xmlns:pid='http://uc3.cdlib.org/ontology/mrt/store/pid'
 strprimary.namespace=pid
 feeder.header=xmlns:feed='http://uc3.cdlib.org/ontology/mrt/feeder/mets'

core/src/main/resources/resources/XMLFormatNoNS.properties

 strversion.header=xmlns='http://uc3.cdlib.org/ontology/mrt/store/version'
 strfile.header=xmlns='http://uc3.cdlib.org/ontology/mrt/store/file'
 strfixity.header=xmlns='http://uc3.cdlib.org/ontology/mrt/store/fix'
+strlocid.header=xmlns='http://uc3.cdlib.org/ontology/mrt/store/locid'
+strlocid.header=xmlns='http://uc3.cdlib.org/ontology/mrt/store/delid'
 feeder.header=xmlns='http://uc3.cdlib.org/ontology/mrt/feeder/mets'
 exc.header=xmlns='http://uc3.cdlib.org/ontology/mrt/core/exc'
 xhtml=resources/stylesheets/xhtml.xsl