Author: peter
Date: Sun Sep 20 14:59:24 2009
New Revision: 3448

Log:
use @datechar instead of @type for unitdate event type attribute as per EAD DTD

Modified:
   trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php

Modified: 
trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php 
Sun Sep 20 14:58:08 2009        (r3447)
+++ trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php 
Sun Sep 20 14:59:24 2009        (r3448)
@@ -69,7 +69,7 @@
   <unittitle encodinganalog="3.1.2"><?php echo htmlspecialchars($value) 
?></unittitle><?php endif; ?>
   <?php if (0 < strlen($informationObject->getIdentifier())): ?><unitid <?php 
if ($informationObject->getRepository()): ?><?php if ($repocode = 
$informationObject->getRepository()->getIdentifier()): ?><?php echo 
'repositorycode="'.htmlspecialchars($repocode).'" ' ?><?php endif; ?><?php if 
($countrycode = $informationObject->getRepository()->getCountryCode()): ?><?php 
echo 'countrycode="'.$countrycode.'"' ?><?php endif;?><?php endif; ?> 
encodinganalog="3.1.1"><?php echo 
htmlspecialchars(QubitIsad::getReferenceCode($informationObject)) 
?></unitid><?php endif; ?>
   <?php foreach ($informationObject->getDates() as $date): ?> 
-  <unitdate <?php if ($type = $date->getType()->__toString()): ?><?php echo 
'type="'.strtolower($type).'" ' ?><?php endif; ?><?php if ($startdate = 
$date->getStartDate()): ?><?php echo 'normal="'?><?php echo 
collapse_date($startdate) ?><?php if ($enddate = $date->getEndDate()): ?><?php 
echo '/'?><?php echo collapse_date($enddate) ?><?php endif; ?><?php echo '"' 
?><?php endif; ?> encodinganalog="3.1.3"><?php echo 
htmlspecialchars(date_display($date)) ?></unitdate><?php endforeach; ?>
+  <unitdate <?php if ($type = $date->getType()->__toString()): ?><?php echo 
'datechar="'.strtolower($type).'" ' ?><?php endif; ?><?php if ($startdate = 
$date->getStartDate()): ?><?php echo 'normal="'?><?php echo 
collapse_date($startdate) ?><?php if ($enddate = $date->getEndDate()): ?><?php 
echo '/'?><?php echo collapse_date($enddate) ?><?php endif; ?><?php echo '"' 
?><?php endif; ?> encodinganalog="3.1.3"><?php echo 
htmlspecialchars(date_display($date)) ?></unitdate><?php endforeach; ?>
   <?php if (0 < count($creators = $informationObject->getCreators())): ?>
   <origination encodinganalog="3.2.1">
   <?php foreach ($creators as $creator): ?>
@@ -189,7 +189,7 @@
     <unittitle encodinganalog="3.1.2"><?php echo htmlspecialchars($value) 
?></unittitle><?php endif; ?>
     <?php if (0 < strlen($value = $descendant->getIdentifier())): ?><unitid 
<?php if ($descendant->getRepository()): ?><?php if ($repocode = 
$descendant->getRepository()->getIdentifier()): ?><?php echo 
'repositorycode="'.htmlspecialchars($repocode).'" ' ?><?php endif; ?><?php if 
($countrycode = $descendant->getRepository()->getCountryCode()): ?><?php echo 
'countrycode="'.$countrycode.'"' ?><?php endif;?><?php endif; ?> 
encodinganalog="3.1.1"><?php echo 
htmlspecialchars(QubitIsad::getReferenceCode($descendant)) ?></unitid><?php 
endif; ?>
     <?php foreach ($descendant->getDates() as $date): ?> 
-    <unitdate <?php if ($type = $date->getType()->__toString()): ?><?php echo 
'type="'.strtolower($type).'" ' ?><?php endif; ?><?php if ($startdate = 
$date->getStartDate()): ?><?php echo 'normal="'?><?php echo 
collapse_date($startdate) ?><?php if ($enddate = $date->getEndDate()): ?><?php 
echo '/'?><?php echo collapse_date($enddate) ?><?php endif; ?><?php echo '"' 
?><?php endif; ?> encodinganalog="3.1.3"><?php echo 
htmlspecialchars(date_display($date)) ?></unitdate><?php endforeach; ?>
+    <unitdate <?php if ($type = $date->getType()->__toString()): ?><?php echo 
'datechar="'.strtolower($type).'" ' ?><?php endif; ?><?php if ($startdate = 
$date->getStartDate()): ?><?php echo 'normal="'?><?php echo 
collapse_date($startdate) ?><?php if ($enddate = $date->getEndDate()): ?><?php 
echo '/'?><?php echo collapse_date($enddate) ?><?php endif; ?><?php echo '"' 
?><?php endif; ?> encodinganalog="3.1.3"><?php echo 
htmlspecialchars(date_display($date)) ?></unitdate><?php endforeach; ?>
     <?php if (0 < count($creators = $descendant->getCreators())): ?>
     <origination encodinganalog="3.2.1">
     <?php foreach ($creators as $creator): ?>

--~--~---------~--~----~------------~-------~--~----~
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