Author: david
Date: Thu Oct 14 14:43:59 2010
New Revision: 8128

Log:
Use default publication status setting, like r8127.

Modified:
   trunk/apps/qubit/modules/object/config/import/dc.yml
   trunk/apps/qubit/modules/object/config/import/mets.yml

Modified: trunk/apps/qubit/modules/object/config/import/dc.yml
==============================================================================
--- trunk/apps/qubit/modules/object/config/import/dc.yml        Thu Oct 14 
14:40:18 2010        (r8127)
+++ trunk/apps/qubit/modules/object/config/import/dc.yml        Thu Oct 14 
14:43:59 2010        (r8128)
@@ -40,6 +40,11 @@
       Method:  setSourceStandard
       Parameters: ["'http://purl.org/dc/elements/1.1/'"]
 
+    publicationStatus:
+      XPath:   "."    # not really a match, just use self
+      Method:  setStatus
+      Parameters: ["array('typeId' => QubitTerm::STATUS_TYPE_PUBLICATION_ID, 
'statusId' => sfConfig::get('app_defaultPubStatus', 
QubitTerm::PUBLICATION_STATUS_DRAFT_ID))"]
+
     # each of the following XPath expressions are relative to the current 
matched node:
 
     title:

Modified: trunk/apps/qubit/modules/object/config/import/mets.yml
==============================================================================
--- trunk/apps/qubit/modules/object/config/import/mets.yml      Thu Oct 14 
14:40:18 2010        (r8127)
+++ trunk/apps/qubit/modules/object/config/import/mets.yml      Thu Oct 14 
14:43:59 2010        (r8128)
@@ -32,10 +32,10 @@
       Method:  setCollectionTypeId
       Parameters: [QubitTerm::PUBLISHED_MATERIAL_ID]
 
-    publication_status:
-      XPath:   "."  # not really a match, just use self
+    publicationStatus:
+      XPath:   "."    # not really a match, just use self
       Method:  setStatus
-      Parameters: ["$options = array('typeId' => 
QubitTerm::STATUS_TYPE_PUBLICATION_ID, 'statusId' => 
QubitTerm::PUBLICATION_STATUS_PUBLISHED_ID)"]
+      Parameters: ["array('typeId' => QubitTerm::STATUS_TYPE_PUBLICATION_ID, 
'statusId' => sfConfig::get('app_defaultPubStatus', 
QubitTerm::PUBLICATION_STATUS_DRAFT_ID))"]
 
     # each of the following XPath expressions are relative to the current 
matched node:
     title:

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to