Author: peter
Date: Thu Sep 24 16:42:57 2009
New Revision: 3526

Log:
add Repository back to DC and MODS templates (lost during Physical Object form 
refactor). Fixes issue #904

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

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php   
Thu Sep 24 16:41:16 2009        (r3525)
+++ trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php   
Thu Sep 24 16:42:57 2009        (r3526)
@@ -40,6 +40,7 @@
       'scopeAndContent',
       'title',
       'types',
+      'repository',
       'publicationStatus');
 
   protected function addField($name)

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php 
Thu Sep 24 16:41:16 2009        (r3525)
+++ trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php 
Thu Sep 24 16:42:57 2009        (r3526)
@@ -36,6 +36,7 @@
       'language',
       'title',
       'types',
+      'repository',
       'publicationStatus');
 
   protected function addField($name)

Modified: trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Thu Sep 24 16:41:16 2009        (r3525)
+++ trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Thu Sep 24 16:42:57 2009        (r3526)
@@ -131,6 +131,13 @@
 
     <?php echo render_field($form->accessConditions->label(__('Rights')), 
$informationObject, array('class' => 'resizable')) ?>
 
+    <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"/>
+      <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'repository', 'action' => 'list', 'informationObject' 
=> $informationObject->id, 'aclAction' => $aclActionId)) ?>"/>
+    </div>
+
   <div class="admin-info">
     <table><tr><td><?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?></td>
     <td><div class="form-item"><label for="source language"><?php echo 
__('source language') ?></label>

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php    
Thu Sep 24 16:41:16 2009        (r3525)
+++ trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php    
Thu Sep 24 16:42:57 2009        (r3526)
@@ -97,6 +97,13 @@
 
     <?php echo render_field($form->accessConditions, $informationObject, 
array('class' => 'resizable')) ?>
 
+    <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"/>
+      <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'repository', 'action' => 'list', 'informationObject' 
=> $informationObject->id, 'aclAction' => $aclActionId)) ?>"/>
+    </div>
+
   <div class="admin-info">
     <table><tr><td><?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?></td>
     <td><div class="form-item"><label for="source language"><?php echo 
__('source language') ?></label>

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