Author: peter
Date: Sun Sep 27 18:39:23 2009
New Revision: 3561

Log:
only export Identifiers values for EAD lower level <unitid> elements otherwise 
redundant reference code strings are built when re-imported

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 27 18:17:42 2009        (r3560)
+++ trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php 
Sun Sep 27 18:39:23 2009        (r3561)
@@ -187,7 +187,7 @@
 
     <?php if (0 < strlen($value = 
$descendant->getTitle(array('cultureFallback' => true)))): ?>
     <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 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($value) ?></unitid><?php 
endif; ?>
     <?php foreach ($descendant->getDates() as $date): ?> 
     <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())): ?>

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