Author: peter
Date: 2008-09-29 17:20:13 -0700 (Mon, 29 Sep 2008)
New Revision: 1408

Modified:
   trunk/apps/qubit/lib/export/ead.xml
Log:
updated revision of EAD export template, still in progress. see 
http://artefactual.com/wiki/index.php?title=Map:_EAD_to_Qubit

Modified: trunk/apps/qubit/lib/export/ead.xml
===================================================================
--- trunk/apps/qubit/lib/export/ead.xml 2008-09-30 00:18:59 UTC (rev 1407)
+++ trunk/apps/qubit/lib/export/ead.xml 2008-09-30 00:20:13 UTC (rev 1408)
@@ -7,40 +7,60 @@
 <!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival 
Description (EAD) Version 2002)//EN" "http://xml.coverpages.org/EADv20-dtd.txt";>
 
 <ead relatedencoding="MARC21">
-       <eadheader langencoding="iso639-2" audience="internal" 
countryencoding="iso3166-1" dateencoding="iso8601" 
repositoryencoding="iso15511" scriptencoding="iso15924">
-               <!-- required -->
-        <eadid countrycode="" mainagencycode="" encodinganalog="850"><?php 
echo htmlentities($this->baseObject->getIdentifier() ? 
$this->baseObject->getIdentifier() : $this->baseObject->getLabel()) ?></eadid>
-        <filedesc>
-            <titlestmt>
-                <titleproper><?php echo 
htmlentities($this->baseObject->getTitle()) ?></titleproper><!-- required -->
-                <subtitle><?php echo 
htmlentities($this->baseObject->getAlternateTitle()) ?></subtitle>
 
-                               <?php foreach ($this->baseObject->getCreators() 
as $creator): ?>
-                                       <author><?php echo 
htmlentities($creator->getAuthorizedFormOfName()) ?></author>
-                               <?php endforeach; ?>
-            </titlestmt>
-            <editionstmt>
-                <edition></edition>
-            </editionstmt>
-            <publicationstmt>
-                <publisher><?php echo 
htmlentities($this->baseObject->getInstitutionResponsibleIdentifier()) 
?></publisher>
-                               <date/>
-                               <address>
-                                       <addressline/>
+  <eadheader langencoding="iso639-1" countryencoding="iso3166-1" 
dateencoding="iso8601" repositoryencoding="iso15511" scriptencoding="iso15924">
+
+    <eadid 
+      countrycode="<?php echo 
htmlentities($this->baseObject->getRepository()->getPrimaryContact()->getCountryCode())
 ?>" 
+      mainagencycode="<?php echo 
htmlentities($this->baseObject->getRepository()->getPrimaryContact()->getCountryCode().'-'.$this->baseObject->getRepository()->getIdentifier())
 ?>" 
+      encodinganalog="856$u"
+      url="<?php echo 
url_for('informationobject/show?id='.$this->baseObject->getId(), $absolute = 
true) ?>"
+    ><?php echo htmlentities($this->baseObject->getId().' ('.gmdate('o-m-d 
H:s:e').')') ?></eadid>
+
+    <filedesc>
+
+      <titlestmt>
+        
+        <titleproper encodinganalog="245$a"><?php echo 
htmlentities(__('Finding Aid').' - '.$this->baseObject->getTitle()) 
?></titleproper>
+        
+        <subtitle></subtitle>
+
+                       <author encodinganalog="245$c"><?php echo 
htmlentities(($this->baseObject->getRevisionHistory())) ?></author>
+
+        <sponsor></sponsor>
+       
+      </titlestmt>
+
+      <editionstmt>
+        <edition encodinganalog="250$a"><?php echo 
htmlentities(($this->baseObject->getEdition())) ?></edition>
+      </editionstmt>
+      
+      <publicationstmt>
+
+        <publisher encodinganalog="260$b"><?php echo 
htmlentities($this->baseObject->getRepository()) ?></publisher>
+
+                               <date encodinganalog="260$c"></date>
+
+                               <address encodinganalog="260$a">
+          <addressline><?php echo 
htmlentities($this->baseObject->getRepository()) ?></addressline>
+          <addressline><?php echo 
htmlentities($this->baseObject->getRepository()->getPrimaryContact()->getStreetAddress())
 ?></addressline>
+          <addressline><?php echo 
htmlentities($this->baseObject->getRepository()->getPrimaryContact()->getCity().',
 '.$this->baseObject->getRepository()->getPrimaryContact()->getRegion()) 
?></addressline>
+          <addressline><?php echo 
htmlentities($this->baseObject->getRepositoryCountry().'  
'.$this->baseObject->getRepository()->getPrimaryContact()->getPostalCode()) 
?></addressline> 
+          <addressline><?php echo htmlentities(__('telephone').': 
'.$this->baseObject->getRepository()->getPrimaryContact()->getTelephone()) 
?></addressline>
+          <addressline><?php echo htmlentities(__('fax').': 
'.$this->baseObject->getRepository()->getPrimaryContact()->getFax()) 
?></addressline>  
+          <addressline><?php echo htmlentities(__('email').': 
'.$this->baseObject->getRepository()->getPrimaryContact()->getEmail()) 
?></addressline> 
+          <addressline><?php echo htmlentities(__('website').': 
'.$this->baseObject->getRepository()->getPrimaryContact()->getWebsite()) 
?></addressline> 
                                </address>
-            </publicationstmt>
-            <seriesstmt>
-                <titleproper></titleproper>
-            </seriesstmt>
-            <notestmt>
-                <note>
-                    <address>
-                        <addressline></addressline>
-                    </address>
-                </note>
-            </notestmt>
-        </filedesc>
-        <profiledesc>
+
+      </publicationstmt>
+
+      <seriesstmt><titleproper></titleproper></seriesstmt>
+
+      <notestmt><note></note></notestmt>
+
+    </filedesc>
+
+    <profiledesc>
                        <creation>
                                <date/>
                        </creation>
@@ -192,4 +212,4 @@
                        <?php endforeach; ?>
                </dsc>
     </archdesc>
-</ead>
\ No newline at end of file
+</ead>


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