Author: peter
Date: Sun Sep 13 15:24:01 2009
New Revision: 3246
Log:
enable inherited reference codes for EAD <unitid> values
Modified:
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Modified:
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Sun Sep 13 00:03:00 2009 (r3245)
+++
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Sun Sep 13 15:24:01 2009 (r3246)
@@ -68,7 +68,7 @@
<did>
<?php if (0 < strlen($value =
$informationObject->getTitle(array('cultureFallback' => true)))): ?>
<unittitle encodinganalog="3.1.2"><?php echo htmlspecialchars($value)
?></unittitle><?php endif; ?>
- <?php if (0 < strlen($value = $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($value) ?></unitid><?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 ($datechar = $date->getType()->__toString()): ?><?php
echo 'datechar="'.strtolower($datechar).'" ' ?><?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())): ?>
@@ -188,7 +188,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($value) ?></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(QubitIsad::getReferenceCode($descendant)) ?></unitid><?php
endif; ?>
<?php foreach ($descendant->getDates() as $date): ?>
<unitdate <?php if ($datechar = $date->getType()->__toString()): ?><?php
echo 'datechar="'.strtolower($datechar).'" ' ?><?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
-~----------~----~----~----~------~----~------~--~---