Author: david
Date: Mon Oct  5 16:33:01 2009
New Revision: 3670

Log:
Implement new autocompletes for place and name access points - DC.

Modified:
   trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
   trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php   
Mon Oct  5 16:19:02 2009        (r3669)
+++ trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php   
Mon Oct  5 16:33:01 2009        (r3670)
@@ -36,8 +36,10 @@
       'identifier',
       'language',
       'locationOfOriginals',
+      'placeAccessPoints',
       'relation',
       'scopeAndContent',
+      'subjectAccessPoints',
       'title',
       'types',
       'repository',

Modified: trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Mon Oct  5 16:19:02 2009        (r3669)
+++ trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Mon Oct  5 16:33:01 2009        (r3670)
@@ -68,62 +68,16 @@
 
     <?php echo $form->language->renderRow(array('class' => 
'form-autocomplete')) ?>
 
-     <?php include_partial('addAccessPointTermDialog') ?>
-    <div class="form-item" id="subjectAccessPoints">
-      <table class="inline">
-        <tr>
-          <th style="width: 90%;"><?php echo __('Subject') ?><?php 
if($editTaxonomyCredentials): ?><span id="addSubjectAccessPointLink" 
style="font-weight:normal"></span><?php endif; ?></th>
-          <th style="width: 10%; text-align: right;"><?php echo 
image_tag('delete', array('align' => 'top', 'class' => 'deleteIcon')) ?></th>
-        </tr>
-      <?php if ($subjectAccessPoints): ?>
-        <?php foreach ($subjectAccessPoints as $subject): ?>
-        <tr class="<?php echo 'related_obj_'.$subject->getId() ?>">
-          <td><div class="animateNicely">
-            <?php echo $subject->getTerm() ?>
-          </div></td>
-          <td style="text-align: right"><div class="animateNicely">
-            <input type="checkbox" name="delete_object_term_relations[<?php 
echo $subject->getId() ?>]" value="delete" class="multiDelete" />
-          </div></td>
-        </tr>
-        <?php endforeach; ?>
-      <?php endif; ?>
-        <tr>
-          <td colspan="2">
-            <input id="subjectId" type="hidden" name="subjectId" />
-            <div id="subjectAutoComplete" style="padding-bottom:2em; 
width:95%">
-              <input id="subjectAcInput" type="text" name="subjectTerm" />
-              <div id="subjectAcList"></div>
-            </div>
-          </td>
-        </tr>
-      </table>
+    <div class="form-item">
+      <?php echo 
$form->subjectAccessPoints->label(__('Subject'))->renderLabel() ?>
+      <?php echo $form->subjectAccessPoints->render(array('class' => 
'form-autocomplete')) ?>
+      <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'term', 'action' => 'autocomplete', 'taxonomyId' => 
QubitTaxonomy::SUBJECT_ID)) ?>"/>
     </div>
-
-    <div class="form-item" id="placeAccessPoints">
-      <table class="inline">
-        <tr>
-          <th style="width: 90%;"><?php echo __('Coverage').' - 
'.__('spatial') ?><?php if($editTaxonomyCredentials): ?><span 
id="addPlaceAccessPointLink" style="font-weight:normal"></span><?php endif; 
?></th>
-          <th style="width: 10%; text-align: right;"><?php echo 
image_tag('delete', array('align' => 'top', 'class' => 'deleteIcon')) ?></th>
-        </tr>
-      <?php if ($placeAccessPoints): ?>
-        <?php foreach ($placeAccessPoints as $place): ?>
-        <tr class="<?php echo 'related_obj_'.$place->getId() ?>">
-          <td><div class="animateNicely">
-            <?php echo $place->getTerm() ?>
-          </div></td>
-          <td style="text-align: right"><div class="animateNicely">
-            <input type="checkbox" name="delete_object_term_relations[<?php 
echo $place->getId() ?>]" value="delete" class="multiDelete" />
-          </div></td>
-        </tr>
-        <?php endforeach; ?>
-      <?php endif; ?>
-        <tr>
-          <td colspan="2">
-            <?php echo object_select_tag($newPlaceAccessPoint, 'getTermId', 
array(
-              'name' => 'place_id', 'id' => 'place_id', 'include_blank' => 
true, 'peer_method' => 'getPlaces', 'class'=>'multiInstance')) ?>
-          </td>
-        </tr>
-      </table>
+    
+    <div class="form-item">
+      <?php echo $form->placeAccessPoints->label(__('Coverage - 
spatial'))->renderLabel() ?>
+      <?php echo $form->placeAccessPoints->render(array('class' => 
'form-autocomplete')) ?>
+      <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'term', 'action' => 'autocomplete', 'taxonomyId' => 
QubitTaxonomy::PLACE_ID)) ?>"/>
     </div>
 
     <?php echo render_field($form->locationOfOriginals->label(__('Source')), 
$informationObject, array('class' => 'resizable')) ?>

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

Reply via email to