Author: jablko
Date: Mon Oct 18 20:26:03 2010
New Revision: 8261

Log:
Indentation

Modified:
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedResource.php

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Mon Oct 18 20:23:52 2010        (r8260)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Mon Oct 18 20:26:03 2010        (r8261)
@@ -1,74 +1,74 @@
 <?php use_helper('Javascript') ?>
 
-      <table class="inline" id="relatedEntities">
-        <caption>
-          <?php echo __('Related corporate bodies, persons or families') ?>
-        </caption><thead>
-          <tr>
-            <th style="width: 25%">
-              <?php echo __('Name') ?>
-            </th><th style="width: 15%">
-              <?php echo __('Type') ?>
-            </th><th style="width: 20%">
-              <?php echo __('Dates') ?>
-            </th><th style="width: 30%">
-              <?php echo __('Description') ?>
-            </th><th style="width: 10%; text-align: center">
-              <?php echo image_tag('delete', array('align' => 'top', 'class' 
=> 'deleteIcon')) ?>
-            </th>
-          </tr>
-        </thead><tbody>
-          <?php foreach ($resource->getActorRelations() as $item): ?>
-            <tr id="<?php echo url_for(array($item, 'module' => 'relation')) 
?>" class="related_obj_<?php echo $item->id ?>">
-              <td>
-                <?php if ($resource->id == $item->objectId): ?>
-                  <?php echo $item->subject->__toString() ?>
-                <?php else: ?>
-                  <?php echo $item->object->__toString() ?>
-                <?php endif; ?>
-              </td><td>
-                <?php echo $item->type ?>
-              </td><td>
-                <?php if (null !== $note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID)): ?>
-                  <?php echo $note ?>
-                <?php elseif (1 < count($dateArray = $item->getDates())): ?>
-                  <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
-                <?php else: ?>
-                  <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
-                <?php endif; ?>
-              </td><td>
-                <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
-              </td><td style="text-align: center">
-                <input type="checkbox" name="deleteRelations[<?php echo 
$item->id ?>]" value="delete" class="multiDelete"/>
-              </td>
-            </tr>
-          <?php endforeach; ?>
-        </tbody>
-      </table>
-
-    <?php
-
-    // Define template for new relation table rows added by dialog
-    $editImage = image_tag('pencil', array('style' => 'align: top', 'alt' => 
'edit'));
-    $deleteBtn = '<button class="delete-small" name="delete"/>';
-
-    $rowTemplate = '<tr id="{relatedActor[id]}">'
-      .'  <td>'
-      .'    {relatedActor[authorizedFormOfName]}'
-      .'  </td><td>'
-      .'    {relatedActor[type]}'
-      .'  </td><td>'
-      .'    {relatedActor[dateDisplay]}'
-      .'  </td><td>'
-      .'    {relatedActor[description]}'
-      .'  </td><td style="text-align: right">'
-      ."    $editImage $deleteBtn"
-      .'  </td>'
-      .'</tr>';
+<table class="inline" id="relatedEntities">
+  <caption>
+    <?php echo __('Related corporate bodies, persons or families') ?>
+  </caption><thead>
+    <tr>
+      <th style="width: 25%">
+        <?php echo __('Name') ?>
+      </th><th style="width: 15%">
+        <?php echo __('Type') ?>
+      </th><th style="width: 20%">
+        <?php echo __('Dates') ?>
+      </th><th style="width: 30%">
+        <?php echo __('Description') ?>
+      </th><th style="width: 10%; text-align: center">
+        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+      </th>
+    </tr>
+  </thead><tbody>
+    <?php foreach ($resource->getActorRelations() as $item): ?>
+      <tr id="<?php echo url_for(array($item, 'module' => 'relation')) ?>" 
class="related_obj_<?php echo $item->id ?>">
+        <td>
+          <?php if ($resource->id == $item->objectId): ?>
+            <?php echo $item->subject->__toString() ?>
+          <?php else: ?>
+            <?php echo $item->object->__toString() ?>
+          <?php endif; ?>
+        </td><td>
+          <?php echo $item->type ?>
+        </td><td>
+          <?php if (null !== $note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID)): ?>
+            <?php echo $note ?>
+          <?php elseif (1 < count($dateArray = $item->getDates())): ?>
+            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
+          <?php else: ?>
+            <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
+          <?php endif; ?>
+        </td><td>
+          <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
+        </td><td style="text-align: center">
+          <input type="checkbox" name="deleteRelations[<?php echo $item->id 
?>]" value="delete" class="multiDelete"/>
+        </td>
+      </tr>
+    <?php endforeach; ?>
+  </tbody>
+</table>
+
+<?php
+
+// Define template for new relation table rows added by dialog
+$editImage = image_tag('pencil', array('style' => 'align: top', 'alt' => 
'edit'));
+$deleteBtn = '<button class="delete-small" name="delete"/>';
+
+$rowTemplate = '<tr id="{relatedActor[id]}">'
+  .'  <td>'
+  .'    {relatedActor[authorizedFormOfName]}'
+  .'  </td><td>'
+  .'    {relatedActor[type]}'
+  .'  </td><td>'
+  .'    {relatedActor[dateDisplay]}'
+  .'  </td><td>'
+  .'    {relatedActor[description]}'
+  .'  </td><td style="text-align: right">'
+  ."    $editImage $deleteBtn"
+  .'  </td>'
+  .'</tr>';
 
-    $linkToShow = url_for(array($resource, 'module' => 'actor'));
+$linkToShow = url_for(array($resource, 'module' => 'actor'));
 
-    echo javascript_tag(<<<content
+echo javascript_tag(<<<content
 Drupal.behaviors.dialog = {
   attach: function (context)
   {
@@ -152,89 +152,89 @@
 content
 ) ?>
 
-    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
-    <!-- NOTE: The dialog.js script cuts this table and moves it to a YUI -->
-    <!-- dialog object.                                                   -->
-    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
-    <table class="inline" id="actorRelation">
-      <caption>
-        <?php echo __('New relationship') ?>
-      </caption><tbody>
-        <tr>
-          <th colspan="3">
-            <?php echo $form['relatedActor[authorizedFormOfName]']
-              ->label(__('Authorized form of name'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td colspan="3">
-            <?php echo 
$form['relatedActor[authorizedFormOfName]']->render(array('class' => 
'form-autocomplete')) ?>
-            <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete')) ?>" />
-            <?php echo $form['relatedActor[authorizedFormOfName]']
-              ->help(__('"Record the authorized form of name and any relevant 
unique identifiers, including the authority record identifier, for the related 
entity." (ISAAR 5.3.1) Select the name from the drop-down menu; enter the first 
few letters to narrow the choices.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <th colspan="3">
-            <?php echo $form['relatedActor[type]']
-              ->label(__('Category of relationship'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td colspan="3">
-            <?php echo $form['relatedActor[type]']->render(array('class' => 
'form-autocomplete')) ?>
-            <?php echo $form['relatedActor[type]']
-              ->help(__('"Purpose: To identify the general category of 
relationship between the entity being described and another corporate body, 
person or family." (ISAAR 5.3.2). Select a category from the drop-down menu: 
hierarchical, temporal, family or associative.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <th colspan="3">
-            <?php echo $form['relatedActor[description]']
-              ->label(__('Description of relationship'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td colspan="3" style="width: 100%">
-            <?php echo $form['relatedActor[description]'] ?>
-            <?php echo $form['relatedActor[description]']
-              ->help(__('"Record a precise description of the nature of the 
relationship between the entity described in this authority record and the 
other related entity....Record in the Rules and/or conventions element (5.4.3) 
any classification scheme used as a source of controlled vocabulary terms to 
describe the relationship. A narrative description of the history and/or nature 
of the relationship may also be provided here." (ISAAR 5.3.3). Note that the 
text entered in this field will also appear in the related authority record.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <th style="width: 25%">
-            <?php echo $form['relatedActor[startDate]']
-              ->label(__('Date&dagger;'))
-              ->renderLabel() ?>
-          </th><th style="width: 25%">
-            <?php echo $form['relatedActor[endDate]']
-              ->label(__('End date&dagger;'))
-              ->renderLabel() ?>
-          </th><th style="width: 50%">
-            <?php echo $form['relatedActor[dateDisplay]']
-              ->label(__('Date display&dagger;'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td style="width: 25%">
-            <?php echo $form['relatedActor[startDate]'] ?>
-            <?php echo $form['relatedActor[startDate]']
-              ->help(__('Enter the start year. Do not use any qualifiers or 
typographical symbols to express uncertainty.'))
-              ->renderHelp() ?>
-          </td><td style="width: 25%">
-            <?php echo $form['relatedActor[endDate]'] ?>
-            <?php echo $form['relatedActor[endDate]']
-              ->help(__('Enter the end year. Do not use any qualifiers or 
typographical symbols to express uncertainty. If the start and end years are 
the same, enter data only in the "Date" field and leave the "End date" blank.'))
-              ->renderHelp() ?>
-          </td><td style="width: 50%">
-            <?php echo $form['relatedActor[dateDisplay]'] ?>
-            <?php echo $form['relatedActor[dateDisplay]']
-              ->help(__('"Record when relevant the commencement date of the 
relationship or succession date and, when relevant, the cessation date of the 
relationship." (ISAAR 5.3.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <td colspan="3">
-            <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-          </td>
-        </tr>
-      </tbody>
-    </table>
+<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
+<!-- NOTE: The dialog.js script cuts this table and moves it to a YUI -->
+<!-- dialog object.                                                   -->
+<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
+<table class="inline" id="actorRelation">
+  <caption>
+    <?php echo __('New relationship') ?>
+  </caption><tbody>
+    <tr>
+      <th colspan="3">
+        <?php echo $form['relatedActor[authorizedFormOfName]']
+          ->label(__('Authorized form of name'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td colspan="3">
+        <?php echo 
$form['relatedActor[authorizedFormOfName]']->render(array('class' => 
'form-autocomplete')) ?>
+        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete')) ?>" />
+        <?php echo $form['relatedActor[authorizedFormOfName]']
+          ->help(__('"Record the authorized form of name and any relevant 
unique identifiers, including the authority record identifier, for the related 
entity." (ISAAR 5.3.1) Select the name from the drop-down menu; enter the first 
few letters to narrow the choices.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <th colspan="3">
+        <?php echo $form['relatedActor[type]']
+          ->label(__('Category of relationship'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td colspan="3">
+        <?php echo $form['relatedActor[type]']->render(array('class' => 
'form-autocomplete')) ?>
+        <?php echo $form['relatedActor[type]']
+          ->help(__('"Purpose: To identify the general category of 
relationship between the entity being described and another corporate body, 
person or family." (ISAAR 5.3.2). Select a category from the drop-down menu: 
hierarchical, temporal, family or associative.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <th colspan="3">
+        <?php echo $form['relatedActor[description]']
+          ->label(__('Description of relationship'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td colspan="3" style="width: 100%">
+        <?php echo $form['relatedActor[description]'] ?>
+        <?php echo $form['relatedActor[description]']
+          ->help(__('"Record a precise description of the nature of the 
relationship between the entity described in this authority record and the 
other related entity....Record in the Rules and/or conventions element (5.4.3) 
any classification scheme used as a source of controlled vocabulary terms to 
describe the relationship. A narrative description of the history and/or nature 
of the relationship may also be provided here." (ISAAR 5.3.3). Note that the 
text entered in this field will also appear in the related authority record.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <th style="width: 25%">
+        <?php echo $form['relatedActor[startDate]']
+          ->label(__('Date&dagger;'))
+          ->renderLabel() ?>
+      </th><th style="width: 25%">
+        <?php echo $form['relatedActor[endDate]']
+          ->label(__('End date&dagger;'))
+          ->renderLabel() ?>
+      </th><th style="width: 50%">
+        <?php echo $form['relatedActor[dateDisplay]']
+          ->label(__('Date display&dagger;'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td style="width: 25%">
+        <?php echo $form['relatedActor[startDate]'] ?>
+        <?php echo $form['relatedActor[startDate]']
+          ->help(__('Enter the start year. Do not use any qualifiers or 
typographical symbols to express uncertainty.'))
+          ->renderHelp() ?>
+      </td><td style="width: 25%">
+        <?php echo $form['relatedActor[endDate]'] ?>
+        <?php echo $form['relatedActor[endDate]']
+          ->help(__('Enter the end year. Do not use any qualifiers or 
typographical symbols to express uncertainty. If the start and end years are 
the same, enter data only in the "Date" field and leave the "End date" blank.'))
+          ->renderHelp() ?>
+      </td><td style="width: 50%">
+        <?php echo $form['relatedActor[dateDisplay]'] ?>
+        <?php echo $form['relatedActor[dateDisplay]']
+          ->help(__('"Record when relevant the commencement date of the 
relationship or succession date and, when relevant, the cessation date of the 
relationship." (ISAAR 5.3.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <td colspan="3">
+        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+      </td>
+    </tr>
+  </tbody>
+</table>

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedResource.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedResource.php
    Mon Oct 18 20:23:52 2010        (r8260)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedResource.php
    Mon Oct 18 20:26:03 2010        (r8261)
@@ -1,61 +1,61 @@
 <?php use_helper('Javascript') ?>
 
-      <table class="inline" id="relatedEvents">
-        <caption>
-          <?php echo __('Related resources') ?>
-        </caption><thead>
-          <tr>
-            <th style="width: 35%">
-              <?php echo __('Title') ?>
-            </th><th style="width: 20%">
-              <?php echo __('Relationship') ?>
-            </th><th style="width: 25%">
-              <?php echo __('Dates') ?>
-            </th><th style="width: 10%; text-align: center">
-              <?php echo image_tag('delete', array('align' => 'top', 'class' 
=> 'deleteIcon')) ?>
-            </th>
-          </tr>
-        </thead><tbody>
-          <?php foreach ($resource->getEvents() as $item): ?>
-            <tr id="<?php echo url_for(array($item, 'module' => 'event')) ?>" 
class="related_obj_<?php echo $item->id ?>">
-              <td>
-                <?php echo render_title($item->informationObject) ?>
-              </td><td>
-                <?php echo $item->type ?>
-              </td><td>
-                <?php if (isset($item->dateDisplay)): ?>
-                  <?php echo $item->dateDisplay ?>
-                <?php elseif (isset($item->startDate) && 
isset($item->endDate)): ?>
-                  <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($item->startDate), '%2%' => 
Qubit::renderDate($item->endDate))) ?>
-                <?php elseif (isset($item->startDate)): ?>
-                  <?php echo Qubit::renderDate($item->startDate) ?>
-                <?php elseif (isset($item->endDate)): ?>
-                  <?php echo Qubit::renderDate($item->endDate) ?>
-                <?php endif; ?>
-              </td><td style="text-align: right">
-                <input type="checkbox" name="deleteEvents[<?php echo $item->id 
?>]" value="delete" class="multiDelete" />
-              </td>
-            </tr>
-          <?php endforeach; ?>
-        </tbody>
-      </table>
-
-    <?php
-
-    // Define template for new relation table rows added by dialog
-    $rowTemplate = '<tr id="{relatedResource[id]}">'
-      .'  <td>'
-      .'    {relatedResource[informationObject]}'
-      .'  </td><td>'
-      .'    {relatedResource[type]}'
-      .'  </td><td>'
-      .'    {relatedResource[dateDisplay]}'
-      .'  </td><td style="text-align: right">'
-      ."    $editImage $deleteBtn"
-      .'  </td>'
-      .'</tr>';
+<table class="inline" id="relatedEvents">
+  <caption>
+    <?php echo __('Related resources') ?>
+  </caption><thead>
+    <tr>
+      <th style="width: 35%">
+        <?php echo __('Title') ?>
+      </th><th style="width: 20%">
+        <?php echo __('Relationship') ?>
+      </th><th style="width: 25%">
+        <?php echo __('Dates') ?>
+      </th><th style="width: 10%; text-align: center">
+        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+      </th>
+    </tr>
+  </thead><tbody>
+    <?php foreach ($resource->getEvents() as $item): ?>
+      <tr id="<?php echo url_for(array($item, 'module' => 'event')) ?>" 
class="related_obj_<?php echo $item->id ?>">
+        <td>
+          <?php echo render_title($item->informationObject) ?>
+        </td><td>
+          <?php echo $item->type ?>
+        </td><td>
+          <?php if (isset($item->dateDisplay)): ?>
+            <?php echo $item->dateDisplay ?>
+          <?php elseif (isset($item->startDate) && isset($item->endDate)): ?>
+            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($item->startDate), '%2%' => 
Qubit::renderDate($item->endDate))) ?>
+          <?php elseif (isset($item->startDate)): ?>
+            <?php echo Qubit::renderDate($item->startDate) ?>
+          <?php elseif (isset($item->endDate)): ?>
+            <?php echo Qubit::renderDate($item->endDate) ?>
+          <?php endif; ?>
+        </td><td style="text-align: right">
+          <input type="checkbox" name="deleteEvents[<?php echo $item->id ?>]" 
value="delete" class="multiDelete" />
+        </td>
+      </tr>
+    <?php endforeach; ?>
+  </tbody>
+</table>
+
+<?php
+
+// Define template for new relation table rows added by dialog
+$rowTemplate = '<tr id="{relatedResource[id]}">'
+  .'  <td>'
+  .'    {relatedResource[informationObject]}'
+  .'  </td><td>'
+  .'    {relatedResource[type]}'
+  .'  </td><td>'
+  .'    {relatedResource[dateDisplay]}'
+  .'  </td><td style="text-align: right">'
+  ."    $editImage $deleteBtn"
+  .'  </td>'
+  .'</tr>';
 
-    echo javascript_tag(<<<content
+echo javascript_tag(<<<content
 Drupal.behaviors.dialog2 = {
   attach: function (context)
   {
@@ -114,83 +114,83 @@
 content
 ) ?>
 
-    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
-    <!-- NOTE: The dialog.js script cuts this table and moves it to a YUI -->
-    <!-- dialog object.                                                   -->
-    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
-    <table id="resourceRelation" class="inline">
-      <tbody>
-        <tr>
-          <th colspan="3" style="width: 55%">
-            <?php echo $form['relatedResource[informationObject]']
-              ->label(__('Title of related resource'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td colspan="3" class="noline">
-            <?php echo 
$form['relatedResource[informationObject]']->render(array('class' => 
'form-autocomplete')) ?>
-            <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) ?>" 
/>
-            <?php echo $form['relatedResource[informationObject]']
-              ->help(__('"Provide the unique identifiers/reference codes 
and/or titles for the related resources." (ISAAR 6.1) Select the title from the 
drop-down menu; enter the identifier or the first few letters to narrow the 
choices.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <th colspan="2" style="width: 60%">
-            <?php echo $form['relatedResource[type]']
-              ->label(__('Nature of relationship'))
-              ->renderLabel() ?>
-          </th><th style="width: 40%">
-            <?php echo $form['relatedResource[resourceType]']
-              ->label(__('Type of related resource'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td colspan="2" class="noline">
-            <?php echo $form['relatedResource[type]']->render(array('class' => 
'form-autocomplete')) ?>
-            <?php echo $form['relatedResource[type]']
-              ->help(__('"Describe the nature of the relationships between the 
corporate body, person or family and the related resource." (ISAAR 6.3) Select 
the type of relationship from the drop-down menu; these values are drawn from 
the Event Types taxonomy.'))
-              ->renderHelp() ?>
-          </td><td class="noline">
-            <?php echo 
$form['relatedResource[resourceType]']->render(array('disabled' => 'true', 
'class' => 'disabled')) ?>
-            <?php echo $form['relatedResource[resourceType]']
-              ->help(__('"Identify the type of related resources, e.g. 
Archival materials (fonds, record series, etc), archival description, finding 
aid, monograph, journal article, web site, photograph, museum collection, 
documentary film, oral history recording." (ISAAR 6.2) In the current version 
of the software, Archival material is provided as the only default value.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <th style="width: 25%">
-            <?php echo $form['relatedResource[startDate]']
-              ->label(__('Date&dagger;'))
-              ->renderLabel() ?>
-          </th><th style="width: 25%">
-            <?php echo $form['relatedResource[endDate]']
-              ->label(__('End date&dagger;'))
-              ->renderLabel() ?>
-          </th><th style="width: 50%">
-            <?php echo $form['relatedResource[dateDisplay]']
-              ->label(__('Date display&dagger;'))
-              ->renderLabel() ?>
-          </th>
-        </tr><tr>
-          <td style="width: 25%">
-            <?php echo $form['relatedResource[startDate]'] ?>
-            <?php echo $form['relatedResource[startDate]']
-              ->help(__('Enter the start year. Do not use any qualifiers or 
typographical symbols to express uncertainty.'))
-              ->renderHelp() ?>
-          </td><td style="width: 25%">
-            <?php echo $form['relatedResource[endDate]'] ?>
-            <?php echo $form['relatedResource[endDate]']
-              ->help(__('Enter the end year. Do not use any qualifiers or 
typographical symbols to express uncertainty. If the start and end years are 
the same, enter data only in the "Date" field and leave the "End date" blank.'))
-              ->renderHelp() ?>
-          </td><td style="width: 50%">
-            <?php echo $form['relatedResource[dateDisplay]'] ?>
-            <?php echo $form['relatedResource[dateDisplay]']
-              ->help(__('"Provide any relevant dates for the related resources 
and/or the relationship between the corporate body, person or family and the 
related resource." (ISAAR 6.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
-              ->renderHelp() ?>
-          </td>
-        </tr><tr>
-          <td colspan="3">
-            <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-          </td>
-        </tr>
-      </tbody>
-    </table>
+<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
+<!-- NOTE: The dialog.js script cuts this table and moves it to a YUI -->
+<!-- dialog object.                                                   -->
+<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  -->
+<table id="resourceRelation" class="inline">
+  <tbody>
+    <tr>
+      <th colspan="3" style="width: 55%">
+        <?php echo $form['relatedResource[informationObject]']
+          ->label(__('Title of related resource'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td colspan="3" class="noline">
+        <?php echo 
$form['relatedResource[informationObject]']->render(array('class' => 
'form-autocomplete')) ?>
+        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) ?>" 
/>
+        <?php echo $form['relatedResource[informationObject]']
+          ->help(__('"Provide the unique identifiers/reference codes and/or 
titles for the related resources." (ISAAR 6.1) Select the title from the 
drop-down menu; enter the identifier or the first few letters to narrow the 
choices.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <th colspan="2" style="width: 60%">
+        <?php echo $form['relatedResource[type]']
+          ->label(__('Nature of relationship'))
+          ->renderLabel() ?>
+      </th><th style="width: 40%">
+        <?php echo $form['relatedResource[resourceType]']
+          ->label(__('Type of related resource'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td colspan="2" class="noline">
+        <?php echo $form['relatedResource[type]']->render(array('class' => 
'form-autocomplete')) ?>
+        <?php echo $form['relatedResource[type]']
+          ->help(__('"Describe the nature of the relationships between the 
corporate body, person or family and the related resource." (ISAAR 6.3) Select 
the type of relationship from the drop-down menu; these values are drawn from 
the Event Types taxonomy.'))
+          ->renderHelp() ?>
+      </td><td class="noline">
+        <?php echo 
$form['relatedResource[resourceType]']->render(array('disabled' => 'true', 
'class' => 'disabled')) ?>
+        <?php echo $form['relatedResource[resourceType]']
+          ->help(__('"Identify the type of related resources, e.g. Archival 
materials (fonds, record series, etc), archival description, finding aid, 
monograph, journal article, web site, photograph, museum collection, 
documentary film, oral history recording." (ISAAR 6.2) In the current version 
of the software, Archival material is provided as the only default value.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <th style="width: 25%">
+        <?php echo $form['relatedResource[startDate]']
+          ->label(__('Date&dagger;'))
+          ->renderLabel() ?>
+      </th><th style="width: 25%">
+        <?php echo $form['relatedResource[endDate]']
+          ->label(__('End date&dagger;'))
+          ->renderLabel() ?>
+      </th><th style="width: 50%">
+        <?php echo $form['relatedResource[dateDisplay]']
+          ->label(__('Date display&dagger;'))
+          ->renderLabel() ?>
+      </th>
+    </tr><tr>
+      <td style="width: 25%">
+        <?php echo $form['relatedResource[startDate]'] ?>
+        <?php echo $form['relatedResource[startDate]']
+          ->help(__('Enter the start year. Do not use any qualifiers or 
typographical symbols to express uncertainty.'))
+          ->renderHelp() ?>
+      </td><td style="width: 25%">
+        <?php echo $form['relatedResource[endDate]'] ?>
+        <?php echo $form['relatedResource[endDate]']
+          ->help(__('Enter the end year. Do not use any qualifiers or 
typographical symbols to express uncertainty. If the start and end years are 
the same, enter data only in the "Date" field and leave the "End date" blank.'))
+          ->renderHelp() ?>
+      </td><td style="width: 50%">
+        <?php echo $form['relatedResource[dateDisplay]'] ?>
+        <?php echo $form['relatedResource[dateDisplay]']
+          ->help(__('"Provide any relevant dates for the related resources 
and/or the relationship between the corporate body, person or family and the 
related resource." (ISAAR 6.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
+          ->renderHelp() ?>
+      </td>
+    </tr><tr>
+      <td colspan="3">
+        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+      </td>
+    </tr>
+  </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.com/group/qubit-commits?hl=en.

Reply via email to