Author: peter
Date: Sun Sep 13 15:40:50 2009
New Revision: 3251
Log:
put back check for Repository to avoid EAD export error reported in issue #709
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 15:30:33 2009 (r3250)
+++
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Sun Sep 13 15:40:50 2009 (r3251)
@@ -5,7 +5,7 @@
<eadheader langencoding="iso639-2b" countryencoding="iso3166-1"
dateencoding="iso8601" repositoryencoding="iso15511" scriptencoding="iso15924"
relatedencoding="DC">
-<eadid countrycode="<?php if(0 < strlen($country =
$informationObject->getRepository()->getCountryCode())): ?><?php echo $country
?><?php endif; ?>" mainagencycode="<?php if (0 < strlen($country)): ?><?php
echo $country.'-' ?><?php endif; ?><?php if (0 < strlen($agency =
$informationObject->getRepository()->getIdentifier())): ?><?php echo $agency
?><?php endif; ?>" url="<?php echo url_for(array('module' =>
'informationobject', 'action' => 'exportEad', 'id'
=>$informationObject->getId()), $absolute = true) ?>"
encodinganalog="Identifier"><?php echo $informationObject->getId() ?></eadid>
+<eadid countrycode="<?php if ($informationObject->getRepository()): ?><?php
if(0 < strlen($country =
$informationObject->getRepository()->getCountryCode())): ?><?php echo $country
?><?php endif; ?><?php endif; ?>" mainagencycode="<?php if
($informationObject->getRepository()): ?><?php if (0 < strlen($country)):
?><?php echo $country.'-' ?><?php endif; ?><?php if (0 < strlen($agency =
$informationObject->getRepository()->getIdentifier())): ?><?php echo $agency
?><?php endif; ?><?php endif; ?>" url="<?php echo url_for(array('module' =>
'informationobject', 'action' => 'exportEad', 'id'
=>$informationObject->getId()), $absolute = true) ?>"
encodinganalog="Identifier"><?php echo $informationObject->getId() ?></eadid>
<filedesc>
<titlestmt>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---