Author: peter
Date: Sun Sep 13 17:09:18 2009
New Revision: 3256

Log:
move lower level Archivists Notes to <processinfo> (top level Archivists note 
is used as EAD <author> value)

Modified:
   trunk/apps/qubit/modules/informationobject/actions/exportEadAction.class.php
   trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/exportEadAction.class.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/actions/exportEadAction.class.php    
    Sun Sep 13 16:38:48 2009        (r3255)
+++ 
trunk/apps/qubit/modules/informationobject/actions/exportEadAction.class.php    
    Sun Sep 13 17:09:18 2009        (r3256)
@@ -38,9 +38,6 @@
     $date = strtotime($this->informationObject->getCreatedAt());
     $this->publicationDate = date('Y', $date).'-'.date('m', 
$date).'-'.date('d', $date);
 
-    // Get Archivist's Notes to use for <author>
-    $this->archivistsNotes = 
$this->informationObject->getNotesByType(array('noteTypeId' => 
QubitTerm::ARCHIVIST_NOTE_ID));
-
     // Determine language(s) used in the export
     $this->exportLanguage = sfContext::getInstance()->user->getCulture();
     $this->sourceLanguage = $this->informationObject->getSourceCulture();

Modified: 
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php   
    Sun Sep 13 16:38:48 2009        (r3255)
+++ 
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php   
    Sun Sep 13 17:09:18 2009        (r3256)
@@ -11,8 +11,7 @@
   <titlestmt>
     <?php if (0 < strlen($value = 
$informationObject->getTitle(array('cultureFallback' => true)))): ?>
     <titleproper encodinganalog="Title"><?php echo htmlspecialchars($value) 
?></titleproper><?php endif; ?>
-    <?php if (0 < count($archivistsNotes)): ?><?php foreach ($archivistsNotes 
as $note): ?>
-    <author encodinganalog="Creator"><?php echo htmlspecialchars(nl2br($note)) 
?></author><?php endforeach; ?><?php endif; ?>
+    <?php if (0 < count($archivistsNotes = 
$informationObject->getNotesByType(array('noteTypeId' => 
QubitTerm::ARCHIVIST_NOTE_ID)))): ?><?php foreach ($archivistsNotes as $note): 
?><author encodinganalog="Creator"><?php echo htmlspecialchars(nl2br($note)) 
?></author><?php endforeach; ?><?php endif; ?>
   </titlestmt>
   <?php if (0 < strlen($value = 
$informationObject->getEdition(array('cultureFallback' => true)))): ?>
   <editionstmt>
@@ -282,6 +281,7 @@
     <custodhist encodinganalog="3.2.3"><p><?php echo 
htmlspecialchars(nl2br($value)) ?></p></custodhist><?php endif; ?>
     <?php if (0 < strlen($value = 
$descendant->getRevisionHistory(array('cultureFallback' => true)))): ?>  
     <processinfo><p><?php echo htmlspecialchars(nl2br($value)) 
?></p></processinfo><?php endif; ?>
+    <?php if (0 < count($archivistsNotes = 
$descendant->getNotesByType(array('noteTypeId' => 
QubitTerm::ARCHIVIST_NOTE_ID)))): ?><?php foreach ($archivistsNotes as $note): 
?><processinfo><p><?php echo htmlspecialchars(nl2br($note)) 
?></p></processinfo><?php endforeach; ?><?php endif; ?>
     <?php if (0 < strlen($value = 
$descendant->getLocationOfOriginals(array('cultureFallback' => true)))): ?>
     <originalsloc encodinganalog="3.5.1"><p><?php echo 
htmlspecialchars(nl2br($value)) ?></p></originalsloc><?php endif; ?>
     <?php if (0 < strlen($value = 
$descendant->getLocationOfCopies(array('cultureFallback' => true)))): ?>

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to