Author: sevein
Date: Wed Oct 14 17:32:05 2009
New Revision: 3745
Log:
Draft for issue 826.
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
trunk/apps/qubit/modules/informationobject/config/view.yml
trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Wed Oct 14 17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Wed Oct 14 17:32:05 2009 (r3745)
@@ -441,13 +441,6 @@
$this->titleNotes = $this->informationObject->getNotesByType($options =
array ('noteTypeId' => QubitTerm::TITLE_NOTE_ID));
$this->publicationNotes =
$this->informationObject->getNotesByType($options = array ('noteTypeId' =>
QubitTerm::PUBLICATION_NOTE_ID));
- // Get child levels
- $this->childLevels = null;
- if ($this->informationObject->id)
- {
- $this->childLevels = $this->informationObject->getChildren();
- }
-
if ($request->isMethod('post'))
{
$this->form->bind($request->getPostParameters());
Modified: trunk/apps/qubit/modules/informationobject/config/view.yml
==============================================================================
--- trunk/apps/qubit/modules/informationobject/config/view.yml Wed Oct 14
17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/config/view.yml Wed Oct 14
17:32:05 2009 (r3745)
@@ -19,6 +19,7 @@
- multiDelete
- multiInstanceInput
- multiInstanceSelect
+ - multiRow
- select
editIsadSuccess:
@@ -36,6 +37,7 @@
- multiDelete
- multiInstanceInput
- multiInstanceSelect
+ - multiRow
- select
editModsSuccess:
@@ -52,6 +54,7 @@
- multiDelete
- multiInstanceInput
- multiInstanceSelect
+ - multiRow
- select
editPhysicalObjectsSuccess:
@@ -74,6 +77,7 @@
- multiDelete
- multiInstanceInput
- multiInstanceSelect
+ - multiRow
- select
listSuccess:
Modified: trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
Wed Oct 14 17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
Wed Oct 14 17:32:05 2009 (r3745)
@@ -60,6 +60,32 @@
<?php echo $form->types->renderRow() ?>
+ <div class="form-item">
+ <label for=""><?php echo __('child levels') ?></label>
+ <table class="inline multiRow">
+ <thead>
+ <tr>
+ <th style="width: 20%"><?php echo __('identifier') ?></th>
+ <th style="width: 20%"><?php echo __('level') ?></th>
+ <th style="width: 60%"><?php echo __('title') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><?php echo input_tag('updateChildLevels[0][identifier]')
?></td>
+ <td><div class="animateNicely">
+ <?php echo object_select_tag(new QubitInformationObject,
'getLevelOfDescriptionId', array(
+ 'include_blank' => true,
+ 'name' => 'updateChildLevels[0][levelOfDescription]',
+ 'related_class' => 'QubitTerm',
+ 'peer_method' => 'getLevelsOfDescription')) ?>
+ </div></td>
+ <td><?php echo input_tag('updateChildLevels[0][title]') ?></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
<?php echo render_field($form->extentAndMedium->label(__('Format')),
$informationObject, array('class' => 'resizable')) ?>
<?php echo render_field($form->scopeAndContent->label(__('Description')),
$informationObject, array('class' => 'resizable')) ?>
Modified:
trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
Wed Oct 14 17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
Wed Oct 14 17:32:05 2009 (r3745)
@@ -87,7 +87,7 @@
<div class="form-item">
<label for=""><?php echo __('child levels') ?></label>
- <table class="inline">
+ <table class="inline multiRow">
<thead>
<tr>
<th style="width: 20%"><?php echo __('identifier') ?></th>
@@ -96,39 +96,16 @@
</tr>
</thead>
<tbody>
- <?php if (0 < count($childLevels)): ?>
- <?php foreach ($childLevels as $i => $child): ?>
- <tr class="<?php echo 'related_obj_'.$child->id ?>">
- <td><div class="animateNicely">
- <input type="hidden" name="updateChildLevels[<?php echo $i
?>][id]" value="<?php echo $child->id ?>" />
- <?php echo input_tag('updateChildLevels['.$i.'][identifier]',
$child->identifier) ?>
- </div></td>
- <td><div class="animateNicely">
- <?php echo object_select_tag($child, 'getLevelOfDescriptionId',
array(
- 'name' => 'updateChildLevels['.$i.'][levelOfDescription]',
- 'related_class' => 'QubitTerm',
- 'peer_method' => 'getLevelsOfDescription')) ?>
- </div></td>
- <td><div class="animateNicely">
- <?php echo input_tag('updateChildLevels['.$i.'][title]',
$child->getTitle(array('fallback' => true))) ?>
- </div></td>
- <td style="text-align: right;"><div class="animateNicely">
- <input type="checkbox" name="deleteChildLevels[<?php echo
$child->id ?>]" value="delete" class="multiDelete" />
- </div></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
<tr>
- <td><?php echo input_tag('updateChildLevels[new][identifier]')
?></td>
+ <td><?php echo input_tag('updateChildLevels[0][identifier]')
?></td>
<td><div class="animateNicely">
<?php echo object_select_tag(new QubitInformationObject,
'getLevelOfDescriptionId', array(
'include_blank' => true,
- 'name' => 'updateChildLevels[new][levelOfDescription]',
+ 'name' => 'updateChildLevels[0][levelOfDescription]',
'related_class' => 'QubitTerm',
'peer_method' => 'getLevelsOfDescription')) ?>
</div></td>
- <td><?php echo input_tag('updateChildLevels[new][title]') ?></td>
- <td> </td>
+ <td><?php echo input_tag('updateChildLevels[0][title]') ?></td>
</tr>
</tbody>
</table>
Modified:
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Wed Oct 14 17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Wed Oct 14 17:32:05 2009 (r3745)
@@ -61,6 +61,32 @@
<?php echo $form->types->label(__('Type of resource'))->renderRow() ?>
+ <div class="form-item">
+ <label for=""><?php echo __('child levels') ?></label>
+ <table class="inline multiRow">
+ <thead>
+ <tr>
+ <th style="width: 20%"><?php echo __('identifier') ?></th>
+ <th style="width: 20%"><?php echo __('level') ?></th>
+ <th style="width: 60%"><?php echo __('title') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><?php echo input_tag('updateChildLevels[0][identifier]')
?></td>
+ <td><div class="animateNicely">
+ <?php echo object_select_tag(new QubitInformationObject,
'getLevelOfDescriptionId', array(
+ 'include_blank' => true,
+ 'name' => 'updateChildLevels[0][levelOfDescription]',
+ 'related_class' => 'QubitTerm',
+ 'peer_method' => 'getLevelsOfDescription')) ?>
+ </div></td>
+ <td><?php echo input_tag('updateChildLevels[0][title]') ?></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
<?php echo $form->language->renderRow(array('class' =>
'form-autocomplete')) ?>
<div class="form-item">
Modified:
trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
Wed Oct 14 17:30:52 2009 (r3744)
+++ trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
Wed Oct 14 17:32:05 2009 (r3745)
@@ -57,6 +57,32 @@
<?php echo $form->levelOfDescription->renderRow() ?>
<div class="form-item">
+ <label for=""><?php echo __('child levels') ?></label>
+ <table class="inline multiRow">
+ <thead>
+ <tr>
+ <th style="width: 20%"><?php echo __('identifier') ?></th>
+ <th style="width: 20%"><?php echo __('level') ?></th>
+ <th style="width: 60%"><?php echo __('title') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><?php echo input_tag('updateChildLevels[0][identifier]')
?></td>
+ <td><div class="animateNicely">
+ <?php echo object_select_tag(new QubitInformationObject,
'getLevelOfDescriptionId', array(
+ 'include_blank' => true,
+ 'name' => 'updateChildLevels[0][levelOfDescription]',
+ 'related_class' => 'QubitTerm',
+ 'peer_method' => 'getLevelsOfDescription')) ?>
+ </div></td>
+ <td><?php echo input_tag('updateChildLevels[0][title]') ?></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
+ <div class="form-item">
<?php echo $form->repository->renderLabel() ?>
<?php echo $form->repository->render(array('class' =>
'form-autocomplete')) ?>
<input class="add" type="hidden" value="<?php echo
url_for(array('module' => 'repository', 'action' => 'create')) ?>
#authorized_form_of_name"/>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---