Author: sevein
Date: Fri Jul 29 15:18:58 2011
New Revision: 9423
Log:
Use editRight component in RAD/DC/ISAD/MODS
Modified:
trunk/plugins/sfDcPlugin/modules/sfDcPlugin/actions/editAction.class.php
trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/editSuccess.php
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/editSuccess.php
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/actions/editAction.class.php
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/actions/editAction.class.php
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/editSuccess.php
Modified:
trunk/plugins/sfDcPlugin/modules/sfDcPlugin/actions/editAction.class.php
==============================================================================
--- trunk/plugins/sfDcPlugin/modules/sfDcPlugin/actions/editAction.class.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfDcPlugin/modules/sfDcPlugin/actions/editAction.class.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -68,6 +68,10 @@
$this->eventComponent->execute($this->request);
$this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select
the type of activity (creation, publication or contribution) that established
the relation between the authority record and the archival description.'));
+
+ $this->rightEditComponent = new RightEditComponent($this->context,
'right', 'edit');
+ $this->rightEditComponent->resource = $this->resource;
+ $this->rightEditComponent->execute($this->request);
}
protected function addField($name)
@@ -152,6 +156,8 @@
$this->eventComponent->processForm();
+ $this->rightEditComponent->processForm();
+
return parent::processForm();
}
}
Modified: trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/editSuccess.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/editSuccess.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -131,6 +131,14 @@
->help(__('Information about rights held in and over the resource (e.g.
copyright, access conditions, etc.).'))
->label(__('Rights')), $resource, array('class' => 'resizable')) ?>
+ <fieldset class="collapsible collapsed" id="rightArea">
+
+ <legend><?php echo __('Right area') ?></legend>
+
+ <?php echo get_partial('right/edit',
$rightEditComponent->getVarHolder()->getAll()) ?>
+
+ </fieldset>
+
<?php echo get_partial('informationobject/adminInfo', array('form' => $form,
'resource' => $resource)) ?>
<?php echo get_partial('informationobject/editActions', array('resource' =>
$resource)) ?>
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
Fri Jul 29 15:06:51 2011 (r9422)
+++
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -88,6 +88,10 @@
$this->eventComponent = new sfIsadPluginEventComponent($this->context,
'sfIsadPlugin', 'event');
$this->eventComponent->resource = $this->resource;
$this->eventComponent->execute($this->request);
+
+ $this->rightEditComponent = new RightEditComponent($this->context,
'right', 'edit');
+ $this->rightEditComponent->resource = $this->resource;
+ $this->rightEditComponent->execute($this->request);
}
protected function addField($name)
@@ -173,6 +177,8 @@
$this->eventComponent->processForm();
+ $this->rightEditComponent->processForm();
+
$this->updateNotes();
return parent::processForm();
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/editSuccess.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/editSuccess.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -370,6 +370,14 @@
</fieldset> <!-- /#descriptionControlArea -->
+ <fieldset class="collapsible collapsed" id="rightArea">
+
+ <legend><?php echo __('Right area') ?></legend>
+
+ <?php echo get_partial('right/edit',
$rightEditComponent->getVarHolder()->getAll()) ?>
+
+ </fieldset>
+
<?php echo get_partial('informationobject/adminInfo', array('form' => $form,
'resource' => $resource)) ?>
<?php echo get_partial('informationobject/editActions', array('resource' =>
$resource)) ?>
Modified:
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/actions/editAction.class.php
Fri Jul 29 15:06:51 2011 (r9422)
+++
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/actions/editAction.class.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -64,6 +64,10 @@
$this->eventComponent->execute($this->request);
$this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select
the type of activity that established the relation between the authority
record and the resource.'));
+
+ $this->rightEditComponent = new RightEditComponent($this->context,
'right', 'edit');
+ $this->rightEditComponent->resource = $this->resource;
+ $this->rightEditComponent->execute($this->request);
}
protected function addField($name)
@@ -148,6 +152,8 @@
$this->eventComponent->processForm();
+ $this->rightEditComponent->processForm();
+
return parent::processForm();
}
}
Modified:
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -107,6 +107,14 @@
<input class="list" type="hidden" value="<?php echo url_for($repoAcParams)
?>"/>
</div>
+ <fieldset class="collapsible collapsed" id="rightArea">
+
+ <legend><?php echo __('Right area') ?></legend>
+
+ <?php echo get_partial('right/edit',
$rightEditComponent->getVarHolder()->getAll()) ?>
+
+ </fieldset>
+
<?php echo get_partial('informationobject/adminInfo', array('form' => $form,
'resource' => $resource)) ?>
<?php echo get_partial('informationobject/editActions', array('resource' =>
$resource)) ?>
Modified:
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/actions/editAction.class.php
==============================================================================
--- trunk/plugins/sfRadPlugin/modules/sfRadPlugin/actions/editAction.class.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfRadPlugin/modules/sfRadPlugin/actions/editAction.class.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -109,6 +109,10 @@
$this->eventComponent->form->getWidgetSchema()->description->setHelp($this->context->i18n->__('"Make
notes on dates and any details pertaining to the dates of creation,
publication, or distribution, of the unit being described that are not included
in the Date(s) of creation, including publication, distribution, etc., area and
that are considered to be important." (RAD 1.8B8) "Make notes on the date(s) of
accumulation or collection of the unit being described." (RAD 1.8B8a)'));
$this->eventComponent->form->getWidgetSchema()->place->setHelp($this->context->i18n->__("\"For
an item, transcribe a place of publication, distribution, etc., in the form
and the grammatical case in which it appears.\" (RAD 1.4C1)
{$this->eventComponent->form->getWidgetSchema()->place->getHelp()}"));
$this->eventComponent->form->getWidgetSchema()->type->setHelp($this->context->i18n->__('Select
the type of activity that established the relation between the authority
record and the archival description (e.g. creation, accumulation, collection,
publication, etc.)'));
+
+ $this->rightEditComponent = new RightEditComponent($this->context,
'right', 'edit');
+ $this->rightEditComponent->resource = $this->resource;
+ $this->rightEditComponent->execute($this->request);
}
protected function addField($name)
@@ -241,6 +245,8 @@
$this->eventComponent->processForm();
+ $this->rightEditComponent->processForm();
+
$this->updateNotes();
return parent::processForm();
Modified:
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/editSuccess.php
Fri Jul 29 15:06:51 2011 (r9422)
+++ trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/editSuccess.php
Fri Jul 29 15:18:58 2011 (r9423)
@@ -445,6 +445,14 @@
</fieldset>
+ <fieldset class="collapsible collapsed" id="rightArea">
+
+ <legend><?php echo __('Right area') ?></legend>
+
+ <?php echo get_partial('right/edit',
$rightEditComponent->getVarHolder()->getAll()) ?>
+
+ </fieldset>
+
<?php echo get_partial('informationobject/adminInfo', array('form' => $form,
'resource' => $resource)) ?>
<?php echo get_partial('informationobject/editActions', array('resource' =>
$resource)) ?>
--
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.