Author: peter
Date: Sat Sep 12 15:51:13 2009
New Revision: 3242
Log:
use archivist's note(s) as EAD <author> value as per ISAD 3.7.1 rule. Continue
to use Revision History for <processinfo> but remove 3.7.1 as its
encodinganalog 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
Sat Sep 12 15:27:56 2009 (r3241)
+++
trunk/apps/qubit/modules/informationobject/actions/exportEadAction.class.php
Sat Sep 12 15:51:13 2009 (r3242)
@@ -38,6 +38,9 @@
$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
Sat Sep 12 15:27:56 2009 (r3241)
+++
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Sat Sep 12 15:51:13 2009 (r3242)
@@ -10,9 +10,9 @@
<filedesc>
<titlestmt>
<?php if (0 < strlen($value =
$informationObject->getTitle(array('cultureFallback' => true)))): ?>
- <titleproper encodinganalog="Title"><?php echo htmlspecialchars($value)
?></titleproper>
- <?php endif; ?>
- <author></author>
+ <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; ?>
</titlestmt>
<?php if (0 < strlen($value =
$informationObject->getEdition(array('cultureFallback' => true)))): ?>
<editionstmt>
@@ -163,7 +163,7 @@
<?php if (0 < strlen($value =
$informationObject->getArchivalHistory(array('cultureFallback' => true)))): ?>
<custodhist encodinganalog="3.2.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></custodhist><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getRevisionHistory(array('cultureFallback' => true)))): ?>
- <processinfo encodinganalog="3.7.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></processinfo><?php endif; ?>
+ <processinfo><p><?php echo htmlspecialchars(nl2br($value))
?></p></processinfo><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getLocationOfOriginals(array('cultureFallback' => true)))):
?>
<originalsloc encodinganalog="3.5.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></originalsloc><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getLocationOfCopies(array('cultureFallback' => true)))): ?>
@@ -282,7 +282,7 @@
<?php if (0 < strlen($value =
$descendant->getArchivalHistory(array('cultureFallback' => true)))): ?>
<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 encodinganalog="3.7.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></processinfo><?php endif; ?>
+ <processinfo><p><?php echo htmlspecialchars(nl2br($value))
?></p></processinfo><?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
-~----------~----~----~----~------~----~------~--~---