Author: david
Date: 2008-11-11 14:55:34 -0800 (Tue, 11 Nov 2008)
New Revision: 1573
Modified:
trunk/qubit/apps/qubit/modules/informationobject/templates/showRadSuccess.php
Log:
Add/update RAD data-points and labels not present in ISAD to template.
Modified:
trunk/qubit/apps/qubit/modules/informationobject/templates/showRadSuccess.php
===================================================================
---
trunk/qubit/apps/qubit/modules/informationobject/templates/showRadSuccess.php
2008-11-11 22:01:00 UTC (rev 1572)
+++
trunk/qubit/apps/qubit/modules/informationobject/templates/showRadSuccess.php
2008-11-11 22:55:34 UTC (rev 1573)
@@ -11,78 +11,147 @@
<?php endif; ?>
<?php if (strlen($value = $informationObject->getTitle(array('cultureFallback'
=> true))) > 0) : ?>
-<tr>
-<th><?php echo __('title proper'); ?></th>
-<td><?php echo $value; ?></td>
-</tr>
+ <tr>
+ <th><?php echo __('title proper'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
<?php if (count($materialTypes) > 0) : ?>
-<tr>
-<th><?php echo __('general material designation'); ?></th>
-<td>
- <?php foreach ($materialTypes as $materialType): ?>
- <?php echo $materialType->getTerm() ?><br />
- <?php endforeach; ?>
-</td></tr>
+ <tr>
+ <th><?php echo __('general material designation'); ?></th>
+ <td>
+ <?php foreach ($materialTypes as $materialType): ?>
+ <?php echo $materialType->getTerm() ?><br />
+ <?php endforeach; ?>
+ </td>
+ </tr>
<?php endif; ?>
<?php if (strlen($value =
$informationObject->getAlternateTitle(array('cultureFallback' => true))) > 0) :
?>
-<tr>
-<th><?php echo __('parallel title'); ?></th>
-<td><?php echo $value; ?></td>
-</tr>
+ <tr>
+ <th><?php echo __('parallel title'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
<?php if (strlen($value =
$radOtherTitleInformation->getValue(array('cultureFallback' => true))) > 0) : ?>
-<tr>
-<th><?php echo __('other title information'); ?></th>
-<td><?php echo $value; ?></td>
-</tr>
+ <tr>
+ <th><?php echo __('other title information'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
+<?php if (strlen($value =
$radTitleStatementOfResponsibility->getValue(array('cultureFallback' => true)))
> 0) : ?>
+ <tr>
+ <th><?php echo __('title statements of responsibility'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+<?php if ($informationObject->getLevelOfDescriptionId()) : ?>
+ <tr>
+ <th><?php echo __('level of description'); ?></th>
+ <td><?php echo $informationObject->getLevelOfDescription(); ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if ($informationObject->getRepositoryId()) : ?>
+ <tr>
+ <th><?php echo __('repository'); ?></th>
+ <td><?php echo link_to($informationObject->getRepository(),
'repository/show?id='.$informationObject->getRepositoryId()); ?></td>
+ </tr>
+<?php endif; ?>
+
<?php if ($informationObject->getIdentifier()): ?>
<tr>
- <th><?php echo __('reference code'); ?></th>
- <td><?php echo QubitRad::getReferenceCode($informationObject) ?>
- </td>
+ <th><?php echo __('reference code'); ?></th>
+ <td><?php echo QubitRad::getReferenceCode($informationObject) ?></td>
</tr>
<?php endif; ?>
-<?php if (count($informationObject->getDates()) > 0) : ?>
-<tr><th><?php echo __('dates'); ?></th><td>
-<?php foreach ($informationObject->getDates() as $date): ?>
- <?php echo $date->getDateDisplay().' ('.$date->getType().')' ?>
- <?php if ($actor = $date->getActor()): ?>
- <?php echo link_to($actor, array('module' => 'actor', 'action' => 'show',
'id' => $actor->getId())) ?>
- <?php endif; ?><br />
- <?php if (($date->getPlace()) || ($date->getDescription())): ?>
- <div style="margin-left: 30px; color: #999999;">
- <?php if ($place=$date->getPlace()): ?>
- <?php echo __('Place') ?>: <?php echo $place ?><br />
- <?php endif; ?>
- <?php if ($note=$date->getDescription()): ?>
- <?php echo __('Note') ?>: <?php echo $note ?><br />
- <?php endif; ?>
- </div>
- <?php endif; ?>
-<?php endforeach; ?>
-</td></tr>
+<?php if (strlen($value =
$informationObject->getEdition(array('cultureFallback' => true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('edition statement'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
-<?php if ($informationObject->getLevelOfDescriptionId()) : ?>
-<tr>
-<th><?php echo __('level of description'); ?></th>
-<td><?php echo $informationObject->getLevelOfDescription(); ?></td>
-</tr>
+<?php if (strlen($value =
$radEditionStatementOfResponsibility->getValue(array('cultureFallback' =>
true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('edition statement of responsibility'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
+<!-- 1.3 PROPERTIES -->
+<?php if (strlen($value =
$radStatementOfScaleCartographic->getValue(array('cultureFallback' => true))) >
0) : ?>
+ <tr>
+ <th><?php echo __('statement of scale (cartographic)'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$radStatementOfProjection->getValue(array('cultureFallback' => true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('statement of projection'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$radStatementOfCoordinates->getValue(array('cultureFallback' => true))) > 0) :
?>
+ <tr>
+ <th><?php echo __('statement of coordinates'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$radStatementOfScaleArchitectural->getValue(array('cultureFallback' => true)))
> 0) : ?>
+ <tr>
+ <th><?php echo __('statement of scale (architectural)'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$radIssuingJursidictionAndDenomination->getValue(array('cultureFallback' =>
true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('issuing jurisdiction and denomination'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+<!-- END 1.3 PROPERTIES -->
+
+
+<!-- Dates -->
+<?php if (count($informationObject->getDates()) > 0) : ?>
+ <tr>
+ <th><?php echo __('dates'); ?></th>
+ <td>
+ <?php foreach ($informationObject->getDates() as $date): ?>
+ <?php echo $date->getDateDisplay().' ('.$date->getType().')' ?>
+ <?php if ($actor = $date->getActor()): ?>
+ <?php echo link_to($actor, array('module' => 'actor', 'action' =>
'show', 'id' => $actor->getId())) ?>
+ <?php endif; ?><br />
+ <?php if (($date->getPlace()) || ($date->getDescription())): ?>
+ <div style="margin-left: 30px; color: #999999;">
+ <?php if ($place=$date->getPlace()): ?>
+ <?php echo __('Place') ?>: <?php echo $place ?><br />
+ <?php endif; ?>
+ <?php if ($note=$date->getDescription()): ?>
+ <?php echo __('Note') ?>: <?php echo $note ?><br />
+ <?php endif; ?>
+ </div>
+ <?php endif; ?>
+ <?php endforeach; ?>
+ </td>
+ </tr>
+<?php endif; ?>
+
<?php if (strlen($value =
$informationObject->getExtentAndMedium(array('cultureFallback' => true))) > 0)
: ?>
-<tr>
-<th><?php echo __('extent and medium'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+ <tr>
+ <th><?php echo __('extent and medium'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
<?php endif; ?>
<?php if ($digitalObject = $informationObject->getDigitalObject()): ?>
@@ -117,72 +186,98 @@
</tr>
<?php endforeach; ?>
-<?php if (count($physicalObjects) && $editCredentials): ?>
- <?php include_partial('physicalobject/show',
- array('informationObject'=>$informationObject,
'physicalObjects'=>$physicalObjects)); ?>
+<!-- 1.6 Publisher's series area -->
+<?php if (strlen($value =
$radTitleProperOfPublishersSeries->getValue(array('cultureFallback' => true)))
> 0) : ?>
+ <tr>
+ <th><?php echo __('title proper of publisher\'s series'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
-<?php if ($informationObject->getRepositoryId()) : ?>
-<tr>
-<th><?php echo __('repository'); ?></th>
-<td><?php echo link_to($informationObject->getRepository(),
'repository/show?id='.$informationObject->getRepositoryId()); ?></td>
-</tr>
+<?php if (strlen($value =
$radParallelTitlesOfPublishersSeries->getValue(array('cultureFallback' =>
true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('parallel titles of publisher\'s series'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getArchivalHistory(array('cultureFallback' => true))) > 0)
: ?>
-<tr>
-<th><?php echo __('archival history'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (strlen($value =
$radOtherTitleInformationOfPublishersSeries->getValue(array('cultureFallback'
=> true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('other title information of publisher\'s series');
?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getAcquisition(array('cultureFallback' => true))) > 0) : ?>
-<tr>
-<th><?php echo __('immediate source of acquisition'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (strlen($value =
$radStatementOfResponsibilityRelatingToPublishersSeries->getValue(array('cultureFallback'
=> true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('statement of responsibility relating to publisher\'s
series'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
<?php endif; ?>
+<?php if (strlen($value =
$radNumberingWithinPublishersSeries->getValue(array('cultureFallback' =>
true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('numbering within publisher\'s series'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$radNoteOnPublishersSeries->getValue(array('cultureFallback' => true))) > 0) :
?>
+ <tr>
+ <th><?php echo __('Note on publisher\'s series'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+<!-- End 1.6 -->
+
+<!-- 1.7 Archival description area -->
+<?php if (strlen($value =
$informationObject->getArchivalHistory(array('cultureFallback' => true))) > 0)
: ?>
+ <tr>
+ <th><?php echo __('archival history'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
+<?php endif; ?>
+
<?php if (strlen($value =
$informationObject->getScopeAndContent(array('cultureFallback' => true))) > 0)
: ?>
-<tr>
-<th><?php echo __('scope and content'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+ <tr>
+ <th><?php echo __('scope and content'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
<?php endif; ?>
+<!-- End 1.7 -->
-<?php if (strlen($value =
$informationObject->getAppraisal(array('cultureFallback' => true))) > 0) : ?>
-<tr>
-<th><?php echo __('appraisal, destruction and scheduling'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (count($physicalObjects) && $editCredentials): ?>
+ <?php include_partial('physicalobject/show',
+ array('informationObject'=>$informationObject,
'physicalObjects'=>$physicalObjects)); ?>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getAccruals(array('cultureFallback' => true))) > 0) : ?>
+<!-- 1.8 Archival description area -->
+<?php if (strlen($value =
$informationObject->getPhysicalCharacteristics(array('cultureFallback' =>
true))) > 0) : ?>
<tr>
-<th><?php echo __('accruals'); ?></th>
-<td><?php echo nl2br($value); ?></td>
+ <th><?php echo __('physical condition'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
</tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getArrangement(array('cultureFallback' => true))) > 0) : ?>
-<tr>
-<th><?php echo __('system of arrangement'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (strlen($value =
$informationObject->getAcquisition(array('cultureFallback' => true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('immediate source of acquisition'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getAccessConditions(array('cultureFallback' => true))) > 0)
: ?>
-<tr>
-<th><?php echo __('conditions governing access'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (strlen($value =
$informationObject->getAppraisal(array('cultureFallback' => true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('appraisal, destruction and scheduling'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getReproductionConditions(array('cultureFallback' =>
true))) > 0) : ?>
-<tr>
-<th><?php echo __('conditions governing reproduction'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
+<?php if (strlen($value =
$informationObject->getArrangement(array('cultureFallback' => true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('arrangement'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
<?php endif; ?>
<?php if (count($languageCodes) > 0) : ?>
@@ -205,13 +300,6 @@
</td></tr>
<?php endif; ?>
-<?php if (strlen($value =
$informationObject->getPhysicalCharacteristics(array('cultureFallback' =>
true))) > 0) : ?>
-<tr>
-<th><?php echo __('physical characteristics'); ?></th>
-<td><?php echo nl2br($value); ?></td>
-</tr>
-<?php endif; ?>
-
<?php if (strlen($value =
$informationObject->getFindingAids(array('cultureFallback' => true))) > 0) : ?>
<tr>
<th><?php echo __('finding aids'); ?></th>
@@ -228,18 +316,50 @@
<?php if (strlen($value =
$informationObject->getLocationOfCopies(array('cultureFallback' => true))) > 0)
: ?>
<tr>
-<th><?php echo __('location of copies'); ?></th>
+<th><?php echo __('availability of other formats'); ?></th>
<td><?php echo nl2br($value); ?></td>
</tr>
<?php endif; ?>
+<?php if (strlen($value =
$informationObject->getAccessConditions(array('cultureFallback' => true))) > 0)
: ?>
+ <tr>
+ <th><?php echo __('restrictions on access'); ?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
+<?php endif; ?>
+
+<?php if (strlen($value =
$informationObject->getReproductionConditions(array('cultureFallback' =>
true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('terms governing use, reproduction, and publication');
?></th>
+ <td><?php echo nl2br($value); ?></td>
+ </tr>
+<?php endif; ?>
+
<?php if (strlen($value =
$informationObject->getRelatedUnitsOfDescription(array('cultureFallback' =>
true))) > 0) : ?>
<tr>
-<th><?php echo __('related units of description'); ?></th>
+<th><?php echo __('associated material, related groups of records in different
fonds, related groups of records in the same fonds'); ?></th>
<td><?php echo nl2br($value); ?></td>
</tr>
<?php endif; ?>
+<?php if (strlen($value =
$informationObject->getAccruals(array('cultureFallback' => true))) > 0) : ?>
+<tr>
+<th><?php echo __('accruals'); ?></th>
+<td><?php echo nl2br($value); ?></td>
+</tr>
+<?php endif; ?>
+<!-- End 1.8 -->
+
+<!-- 1.9 Standard number area -->
+<?php if (strlen($value = $radStandardNumber->getValue(array('cultureFallback'
=> true))) > 0) : ?>
+ <tr>
+ <th><?php echo __('standard number'); ?></th>
+ <td><?php echo $value; ?></td>
+ </tr>
+<?php endif; ?>
+<!-- End 1.9 -->
+
+<!-- Access Points-->
<?php if (count($subjectAccessPoints) > 0) : ?>
<tr>
<th><?php echo __('subject access points'); ?></th>
@@ -271,7 +391,9 @@
<?php endforeach; ?>
</td></tr>
<?php endif; ?>
+<!-- End Access Points-->
+<!-- Control Area -->
<?php if (count($notes) > 0) : ?>
<tr>
<th><?php echo __('notes'); ?></th>
@@ -336,6 +458,7 @@
<tr><th><?php echo __('sources')?></th>
<td><?php echo nl2br($value) ?></td></tr>
<?php endif; ?>
+<!-- End Control Area -->
</tbody>
</table>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---