Author: peter
Date: Sun Sep 27 18:17:42 2009
New Revision: 3560
Log:
ensure that EAD <bibliography> element content is wrapped in <p> tag to avoid a
libxml error 504 on EAD import
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:15:30 2009 (r3559)
+++ trunk/apps/qubit/modules/informationobject/templates/showEadSuccess.xml.php
Sun Sep 27 18:17:42 2009 (r3560)
@@ -174,7 +174,7 @@
<userestrict encodinganalog="3.4.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></userestrict><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getFindingAids(array('cultureFallback' => true)))): ?>
<otherfindaid encodinganalog="3.4.5"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></otherfindaid><?php endif; ?>
- <?php if (0 < count($publicationNotes =
$informationObject->getNotesByType(array('noteTypeId' =>
QubitTerm::PUBLICATION_NOTE_ID)))): ?><?php foreach ($publicationNotes as
$note): ?><bibliography encodinganalog="3.5.4"><?php echo
htmlspecialchars(nl2br($note)) ?></bibliography><?php endforeach; ?><?php
endif; ?>
+ <?php if (0 < count($publicationNotes =
$informationObject->getNotesByType(array('noteTypeId' =>
QubitTerm::PUBLICATION_NOTE_ID)))): ?><?php foreach ($publicationNotes as
$note): ?><bibliography encodinganalog="3.5.4"><p><?php echo
htmlspecialchars(nl2br($note)) ?></p></bibliography><?php endforeach; ?><?php
endif; ?>
<dsc type="combined"><?php $nestedRgt = array() ?><?php foreach
($informationObject->getDescendants()->orderBy('lft') as $descendant): ?>
<c <?php if ($descendant->levelOfDescriptionId):?>level="<?php if
(in_array(strtolower($levelOfDescription =
$descendant->getLevelOfDescription()->getName(array('culture' => 'en'))),
$eadLevels)): ?><?php echo strtolower($levelOfDescription).'"' ?><?php else:
?><?php echo 'otherlevel" otherlevel="'.$levelOfDescription.'"' ?><?php endif;
?><?php endif; ?>>
@@ -294,7 +294,7 @@
<userestrict encodinganalog="3.4.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></userestrict><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getFindingAids(array('cultureFallback' => true)))): ?>
<otherfindaid encodinganalog="3.4.5"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></otherfindaid><?php endif; ?>
- <?php if (0 < count($publicationNotes =
$descendant->getNotesByType(array('noteTypeId' =>
QubitTerm::PUBLICATION_NOTE_ID)))): ?><?php foreach ($publicationNotes as
$note): ?><bibliography encodinganalog="3.5.4"><?php echo
htmlspecialchars(nl2br($note)) ?></bibliography><?php endforeach; ?><?php
endif; ?>
+ <?php if (0 < count($publicationNotes =
$descendant->getNotesByType(array('noteTypeId' =>
QubitTerm::PUBLICATION_NOTE_ID)))): ?><?php foreach ($publicationNotes as
$note): ?><bibliography encodinganalog="3.5.4"><p><?php echo
htmlspecialchars(nl2br($note)) ?></p></bibliography><?php endforeach; ?><?php
endif; ?>
<?php if ($descendant->getRgt() == $descendant->getLft() + 1): ?>
</c>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---