Author: peter
Date: Sat Sep 12 16:09:13 2009
New Revision: 3243

Log:
cleanup countrycode and maintagencycode logic for EAD export template

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   
    Sat Sep 12 15:51:13 2009        (r3242)
+++ 
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php   
    Sat Sep 12 16:09:13 2009        (r3243)
@@ -5,7 +5,7 @@
 
 <eadheader langencoding="iso639-2b" countryencoding="iso3166-1" 
dateencoding="iso8601" repositoryencoding="iso15511" scriptencoding="iso15924" 
relatedencoding="DC">
 
-<eadid countrycode="<?php if ($informationObject->getRepository()): ?><?php 
echo $informationObject->getRepository()->getCountryCode() ?><?php endif; ?>" 
mainagencycode="<?php if ($informationObject->getRepository()): ?> <?php echo 
$informationObject->getRepository()->getCountryCode().'-'.$informationObject->getRepository()->getIdentifier()
 ?><?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(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>
 
 <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to