Author: david
Date: Mon Oct 5 16:38:28 2009
New Revision: 3671
Log:
Implement new autocompletes for subject access points - MODS.
Modified:
trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
Mon Oct 5 16:33:01 2009 (r3670)
+++ trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
Mon Oct 5 16:38:28 2009 (r3671)
@@ -34,6 +34,7 @@
'accessConditions',
'identifier',
'language',
+ 'subjectAccessPoints',
'title',
'types',
'repository',
Modified:
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Mon Oct 5 16:33:01 2009 (r3670)
+++ trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Mon Oct 5 16:38:28 2009 (r3671)
@@ -63,37 +63,13 @@
<?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>
+
<?php echo render_field($form->accessConditions, $informationObject,
array('class' => 'resizable')) ?>
<div class="form-item">
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---