Author: jablko
Date: Mon Oct 18 20:48:01 2010
New Revision: 8265

Log:
Rename field, for consistency

Modified:
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
 Mon Oct 18 20:45:18 2010        (r8264)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
 Mon Oct 18 20:48:01 2010        (r8265)
@@ -22,7 +22,7 @@
   // Arrays not allowed in class constants
   public static
     $NAMES = array(
-      'authorizedFormOfName',
+      'resource',
       'type',
       'description',
       'startDate',
@@ -33,7 +33,7 @@
   {
     switch ($name)
     {
-      case 'authorizedFormOfName':
+      case 'resource':
         $choices = array();
 
         $this->form->setValidator($name, new sfValidatorString);
@@ -124,7 +124,7 @@
     foreach ($relationsData as $relationData)
     {
       // Get related actor
-      $params = 
$this->context->routing->parse(Qubit::pathInfo($relationData['authorizedFormOfName']));
+      $params = 
$this->context->routing->parse(Qubit::pathInfo($relationData['resource']));
       $relatedObjectId = (isset($params['id'])) ? $params['id'] : null;
       if (null === $relatedObject = QubitActor::getById($relatedObjectId))
       {

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Mon Oct 18 20:45:18 2010        (r8264)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Mon Oct 18 20:48:01 2010        (r8265)
@@ -54,7 +54,7 @@
 
 $rowTemplate = '<tr id="{relatedActor[id]}">'
   .'  <td>'
-  .'    {relatedActor[authorizedFormOfName]}'
+  .'    {relatedActor[resource]}'
   .'  </td><td>'
   .'    {relatedActor[type]}'
   .'  </td><td>'
@@ -116,7 +116,7 @@
           case 'object':
             if ('$linkToShow' != data[col])
             {
-              output['relatedActor[authorizedFormOfName]'] = data[col];
+              output['relatedActor[resource]'] = data[col];
             }
             break;
 
@@ -162,15 +162,15 @@
   </caption><tbody>
     <tr>
       <th colspan="3">
-        <?php echo $form->authorizedFormOfName
+        <?php echo $form->resource
           ->label(__('Authorized form of name'))
           ->renderLabel() ?>
       </th>
     </tr><tr>
       <td colspan="3">
-        <?php echo $form->authorizedFormOfName->render(array('class' => 
'form-autocomplete')) ?>
+        <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
         <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete')) ?>" />
-        <?php echo $form->authorizedFormOfName
+        <?php echo $form->resource
           ->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>

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