Author: jablko
Date: Sun Oct 17 16:48:53 2010
New Revision: 8201
Log:
Cosmetic change
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecords.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunctions.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResources.php
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
Sun Oct 17 16:36:07 2010 (r8200)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
Sun Oct 17 16:48:53 2010 (r8201)
@@ -62,7 +62,7 @@
$criteria->add(QubitRelation::SUBJECT_ID, $this->resource->id);
$criteria->addJoin(QubitRelation::OBJECT_ID, QubitActor::ID);
- $this->actorRelations = QubitRelation::get($criteria);
+ $this->relations = QubitRelation::get($criteria);
}
protected function updateOtherRelations($formName)
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
Sun Oct 17 16:36:07 2010 (r8200)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
Sun Oct 17 16:48:53 2010 (r8201)
@@ -28,16 +28,6 @@
'relatedResource[endDate]',
'relatedResource[dateDisplay]');
- public function execute($request)
- {
- // Get information objects (object) related to this function (subject)
- $criteria = new Criteria;
- $criteria->add(QubitRelation::SUBJECT_ID, $this->resource->id);
- $criteria->addJoin(QubitRelation::OBJECT_ID, QubitInformationObject::ID);
-
- $this->infoObjectRelations = QubitRelation::get($criteria);
- }
-
protected function addField($name)
{
switch ($name)
@@ -74,6 +64,16 @@
return parent::processForm();
}
+ public function execute($request)
+ {
+ // Get information objects (object) related to this function (subject)
+ $criteria = new Criteria;
+ $criteria->add(QubitRelation::SUBJECT_ID, $this->resource->id);
+ $criteria->addJoin(QubitRelation::OBJECT_ID, QubitInformationObject::ID);
+
+ $this->relations = QubitRelation::get($criteria);
+ }
+
protected function updateOtherRelations($formName)
{
if (isset($this->request["{$formName}s"]))
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecords.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecords.php
Sun Oct 17 16:36:07 2010 (r8200)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecords.php
Sun Oct 17 16:48:53 2010 (r8201)
@@ -16,7 +16,7 @@
</th>
</tr>
</thead><tbody>
- <?php foreach ($actorRelations as $item): ?>
+ <?php foreach ($relations as $item): ?>
<tr id="<?php echo url_for(array($item, 'module' => 'relation')) ?>"
class="related_obj_<?php echo $item->id ?>">
<td>
<?php echo render_title($item->object) ?>
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunctions.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunctions.php
Sun Oct 17 16:36:07 2010 (r8200)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunctions.php
Sun Oct 17 16:48:53 2010 (r8201)
@@ -18,7 +18,7 @@
</th>
</tr>
</thead><tbody>
- <?php foreach ($relatedFunctions as $item): ?>
+ <?php foreach ($relations as $item): ?>
<tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'relation')) ?>">
<td>
<?php if ($resource->id == $item->objectId): ?>
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResources.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResources.php
Sun Oct 17 16:36:07 2010 (r8200)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResources.php
Sun Oct 17 16:48:53 2010 (r8201)
@@ -16,7 +16,7 @@
</th>
</tr>
</thead><tbody>
- <?php foreach ($infoObjectRelations as $item): ?>
+ <?php foreach ($relations as $item): ?>
<tr id="<?php echo url_for(array($item, 'module' => 'relation')) ?>"
class="<?php echo 'related_obj_'.$item->id ?>">
<td>
<?php echo render_title($item->object) ?>
--
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.