Author: sevein
Date: Sat Jul 14 11:22:18 2012
New Revision: 11925
Log:
Show ObjectUUID and DIPUUID under Digital object metadata section, fixes issue
2379
Modified:
trunk/apps/qubit/modules/digitalobject/templates/_metadata.php
trunk/lib/model/QubitInformationObject.php
Modified: trunk/apps/qubit/modules/digitalobject/templates/_metadata.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/templates/_metadata.php Sat Jul
14 10:17:37 2012 (r11924)
+++ trunk/apps/qubit/modules/digitalobject/templates/_metadata.php Sat Jul
14 11:22:18 2012 (r11925)
@@ -24,4 +24,8 @@
<?php echo render_show(__('Uploaded'), format_date($resource->createdAt,
'f')) ?>
+ <?php echo render_show(__('Object UUID'),
$resource->informationObject->objectUUID) ?>
+
+ <?php echo render_show(__('DIP UUID'),
$resource->informationObject->dipUUID) ?>
+
</div>
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Sat Jul 14 10:17:37 2012
(r11924)
+++ trunk/lib/model/QubitInformationObject.php Sat Jul 14 11:22:18 2012
(r11925)
@@ -65,6 +65,28 @@
switch ($name)
{
+ case 'objectUUID':
+ case 'dipUUID':
+
+ if (!isset($this->values[$name]))
+ {
+ $criteria = new Criteria;
+ $this->addPropertysCriteria($criteria);
+ $criteria->add(QubitProperty::NAME, $name);
+
+ if (1 == count($query = QubitProperty::get($criteria)))
+ {
+ $this->values[$name] = $query[0];
+ }
+ }
+
+ if (isset($this->values[$name]))
+ {
+ return $this->values[$name];
+ }
+
+ break;
+
case 'language':
case 'languageOfDescription':
case 'script':
--
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.