Author: peter
Date: Sat Sep 12 15:27:56 2009
New Revision: 3241
Log:
include linebreaks in EAD XML export output
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 00:02:58 2009 (r3240)
+++
trunk/apps/qubit/modules/informationobject/templates/exportEadSuccess.xml.php
Sat Sep 12 15:27:56 2009 (r3241)
@@ -86,7 +86,7 @@
<?php endforeach; ?>
</origination><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getExtentAndMedium(array('cultureFallback' => true)))): ?>
- <physdesc><extent encodinganalog="3.1.5"><?php echo htmlspecialchars($value)
?></extent></physdesc><?php endif; ?>
+ <physdesc><extent encodinganalog="3.1.5"><?php echo
htmlspecialchars(nl2br($value)) ?></extent></physdesc><?php endif; ?>
<?php if ($value = $informationObject->getRepository()): ?>
<repository>
<corpname><?php echo htmlspecialchars($value->__toString()) ?></corpname>
@@ -122,11 +122,11 @@
</did>
<?php foreach ($informationObject->getCreators() as $creator): ?>
<?php if ($value = $creator->getHistory(array('cultureFallback' =>
true))): ?>
- <bioghist encodinganalog="3.2.2"><p><?php echo htmlspecialchars($value)
?></p></bioghist><?php endif; ?><?php endforeach; ?>
+ <bioghist encodinganalog="3.2.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></bioghist><?php endif; ?><?php
endforeach; ?>
<?php if (0 < strlen($value =
$informationObject->getScopeAndContent(array('cultureFallback' => true)))): ?>
- <scopecontent encodinganalog="3.3.1"><p><?php echo htmlspecialchars($value)
?></p></scopecontent><?php endif; ?>
+ <scopecontent encodinganalog="3.3.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></scopecontent><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getArrangement(array('cultureFallback' => true)))): ?>
- <arrangement encodinganalog="3.3.4"><p><?php echo htmlspecialchars($value)
?></p></arrangement><?php endif; ?>
+ <arrangement encodinganalog="3.3.4"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></arrangement><?php endif; ?>
<?php if ((0 < count($materialtypes =
$informationObject->getMaterialTypes())) ||
(0 < count($subjects =
$informationObject->getSubjectAccessPoints())) ||
(0 < count($places = $informationObject->getPlaceAccessPoints()))
||
@@ -153,29 +153,29 @@
</controlaccess>
<?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getPhysicalCharacteristics(array('cultureFallback' =>
true)))): ?>
- <phystech encodinganalog="3.4.3"><p><?php echo htmlspecialchars($value)
?></p></phystech><?php endif; ?>
+ <phystech encodinganalog="3.4.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></phystech><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getAppraisal(array('cultureFallback' => true)))): ?>
- <appraisal encodinganalog="3.3.2"><p><?php echo htmlspecialchars($value)
?></p></appraisal><?php endif; ?>
+ <appraisal encodinganalog="3.3.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></appraisal><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getAcquisition(array('cultureFallback' => true)))): ?>
- <acqinfo encodinganalog="3.2.4"><p><?php echo htmlspecialchars($value)
?></p></acqinfo><?php endif; ?>
+ <acqinfo encodinganalog="3.2.4"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></acqinfo><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getAccruals(array('cultureFallback' => true)))): ?>
- <accruals encodinganalog="3.3.3"><p><?php echo htmlspecialchars($value)
?></p></accruals><?php endif; ?>
+ <accruals encodinganalog="3.3.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></accruals><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getArchivalHistory(array('cultureFallback' => true)))): ?>
- <custodhist encodinganalog="3.2.3"><p><?php echo htmlspecialchars($value)
?></p></custodhist><?php endif; ?>
+ <custodhist encodinganalog="3.2.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></custodhist><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getRevisionHistory(array('cultureFallback' => true)))): ?>
- <processinfo encodinganalog="3.7.1"><p><?php echo htmlspecialchars($value)
?></p></processinfo><?php endif; ?>
+ <processinfo encodinganalog="3.7.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></processinfo><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getLocationOfOriginals(array('cultureFallback' => true)))):
?>
- <originalsloc encodinganalog="3.5.1"><p><?php echo htmlspecialchars($value)
?></p></originalsloc><?php endif; ?>
+ <originalsloc encodinganalog="3.5.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></originalsloc><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getLocationOfCopies(array('cultureFallback' => true)))): ?>
- <altformavail encodinganalog="3.5.2"><p><?php echo htmlspecialchars($value)
?></p></altformavail><?php endif; ?>
+ <altformavail encodinganalog="3.5.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></altformavail><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getRelatedUnitsOfDescription(array('cultureFallback' =>
true)))): ?>
- <relatedmaterial encodinganalog="3.5.3"><p><?php echo
htmlspecialchars($value) ?></p></relatedmaterial><?php endif; ?>
+ <relatedmaterial encodinganalog="3.5.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></relatedmaterial><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getAccessConditions(array('cultureFallback' => true)))): ?>
- <accessrestrict encodinganalog="3.4.1"><p><?php echo
htmlspecialchars($value) ?></p></accessrestrict><?php endif; ?>
+ <accessrestrict encodinganalog="3.4.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></accessrestrict><?php endif; ?>
<?php if (0 < strlen($value =
$informationObject->getReproductionConditions(array('cultureFallback' =>
true)))): ?>
- <userestrict encodinganalog="3.4.2"><p><?php echo htmlspecialchars($value)
?></p></userestrict><?php endif; ?>
+ <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($value)
?></p></otherfindaid><?php endif; ?>
+ <otherfindaid encodinganalog="3.4.5"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></otherfindaid><?php endif; ?>
<dsc type="combined"><?php $nestedRgt = array() ?><?php foreach
($informationObject->getDescendants()->orderBy('lft') as $descendant): ?>
<c <?php if (0 < strlen($levelOfDescription =
$descendant->getLevelOfDescription()->getName(array('culture' => 'en')))):
?>level="<?php if (in_array(strtolower($levelOfDescription), $eadLevels)):
?><?php echo strtolower($levelOfDescription).'"' ?><?php else: ?><?php echo
'otherlevel" otherlevel="'.$levelOfDescription.'"' ?><?php endif; ?><?php
endif; ?>>
@@ -206,7 +206,7 @@
<?php endforeach; ?>
</origination><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getExtentAndMedium(array('cultureFallback' => true)))): ?>
- <physdesc><extent encodinganalog="3.1.5"><?php echo
htmlspecialchars($value) ?></extent></physdesc><?php endif; ?>
+ <physdesc><extent encodinganalog="3.1.5"><?php echo
htmlspecialchars(nl2br($value)) ?></extent></physdesc><?php endif; ?>
<?php if ($value = $descendant->getRepository()): ?>
<repository>
<corpname><?php echo htmlspecialchars($value->__toString()) ?></corpname>
@@ -242,11 +242,11 @@
</did>
<?php foreach ($descendant->getCreators() as $creator): ?>
<?php if ($value = $creator->getHistory(array('cultureFallback' =>
true))): ?>
- <bioghist encodinganalog="3.2.2"><p><?php echo htmlspecialchars($value)
?></p></bioghist><?php endif; ?><?php endforeach; ?>
+ <bioghist encodinganalog="3.2.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></bioghist><?php endif; ?><?php
endforeach; ?>
<?php if (0 < strlen($value =
$descendant->getScopeAndContent(array('cultureFallback' => true)))): ?>
- <scopecontent encodinganalog="3.3.1"><p><?php echo
htmlspecialchars($value) ?></p></scopecontent><?php endif; ?>
+ <scopecontent encodinganalog="3.3.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></scopecontent><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getArrangement(array('cultureFallback' => true)))): ?>
- <arrangement encodinganalog="3.3.4"><p><?php echo htmlspecialchars($value)
?></p></arrangement><?php endif; ?>
+ <arrangement encodinganalog="3.3.4"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></arrangement><?php endif; ?>
<?php if ((0 < count($materialtypes = $descendant->getMaterialTypes())) ||
(0 < count($subjects = $descendant->getSubjectAccessPoints())) ||
(0 < count($places = $descendant->getPlaceAccessPoints())) ||
@@ -272,29 +272,29 @@
<?php endforeach; ?>
</controlaccess><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getPhysicalCharacteristics(array('cultureFallback' => true)))): ?>
- <phystech encodinganalog="3.4.4"><p><?php echo htmlspecialchars($value)
?></p></phystech><?php endif; ?>
+ <phystech encodinganalog="3.4.4"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></phystech><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getAppraisal(array('cultureFallback' => true)))): ?>
- <appraisal encodinganalog="3.3.2"><p><?php echo htmlspecialchars($value)
?></p></appraisal><?php endif; ?>
+ <appraisal encodinganalog="3.3.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></appraisal><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getAcquisition(array('cultureFallback' => true)))): ?>
- <acqinfo encodinganalog="3.2.4"><p><?php echo htmlspecialchars($value)
?></p></acqinfo><?php endif; ?>
+ <acqinfo encodinganalog="3.2.4"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></acqinfo><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getAccruals(array('cultureFallback' => true)))): ?>
- <accruals encodinganalog="3.3.3"><p><?php echo htmlspecialchars($value)
?></p></accruals><?php endif; ?>
+ <accruals encodinganalog="3.3.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></accruals><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getArchivalHistory(array('cultureFallback' => true)))): ?>
- <custodhist encodinganalog="3.2.3"><p><?php echo htmlspecialchars($value)
?></p></custodhist><?php endif; ?>
+ <custodhist encodinganalog="3.2.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></custodhist><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getRevisionHistory(array('cultureFallback' => true)))): ?>
- <processinfo encodinganalog="3.7.1"><p><?php echo htmlspecialchars($value)
?></p></processinfo><?php endif; ?>
+ <processinfo encodinganalog="3.7.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></processinfo><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getLocationOfOriginals(array('cultureFallback' => true)))): ?>
- <originalsloc encodinganalog="3.5.1"><p><?php echo
htmlspecialchars($value) ?></p></originalsloc><?php endif; ?>
+ <originalsloc encodinganalog="3.5.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></originalsloc><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getLocationOfCopies(array('cultureFallback' => true)))): ?>
- <altformavail encodinganalog="3.5.2"><p><?php echo
htmlspecialchars($value) ?></p></altformavail><?php endif; ?>
+ <altformavail encodinganalog="3.5.2"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></altformavail><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getRelatedUnitsOfDescription(array('cultureFallback' => true)))):
?>
- <relatedmaterial encodinganalog="3.5.3"><p><?php echo
htmlspecialchars($value) ?></p></relatedmaterial><?php endif; ?>
+ <relatedmaterial encodinganalog="3.5.3"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></relatedmaterial><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getAccessConditions(array('cultureFallback' => true)))): ?>
- <accessrestrict encodinganalog="3.4.1"><p><?php echo
htmlspecialchars($value) ?></p></accessrestrict><?php endif; ?>
+ <accessrestrict encodinganalog="3.4.1"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></accessrestrict><?php endif; ?>
<?php if (0 < strlen($value =
$descendant->getReproductionConditions(array('cultureFallback' => true)))): ?>
- <userestrict encodinganalog="3.4.2"><p><?php echo htmlspecialchars($value)
?></p></userestrict><?php endif; ?>
+ <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($value) ?></p></otherfindaid><?php endif; ?>
+ <otherfindaid encodinganalog="3.4.5"><p><?php echo
htmlspecialchars(nl2br($value)) ?></p></otherfindaid><?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
-~----------~----~----~----~------~----~------~--~---