Author: peter
Date: 2009-03-03 11:04:45 -0800 (Tue, 03 Mar 2009)
New Revision: 2092
Modified:
trunk/qubit/lib/QubitDc.class.php
trunk/qubit/lib/QubitIsad.class.php
trunk/qubit/lib/QubitRad.class.php
trunk/qubit/lib/model/QubitInformationObject.php
Log:
fix culture fallback for information object labels. Check for strlen instead of
is_null for Title in case the translated title was erased
Modified: trunk/qubit/lib/QubitDc.class.php
===================================================================
--- trunk/qubit/lib/QubitDc.class.php 2009-03-03 08:09:54 UTC (rev 2091)
+++ trunk/qubit/lib/QubitDc.class.php 2009-03-03 19:04:45 UTC (rev 2092)
@@ -39,7 +39,7 @@
$label = $informationObject->getIdentifier();
}
- if (is_null($title = $informationObject->getTitle()))
+ if (strlen($title = $informationObject->getTitle()) < 1)
{
$title = $informationObject->getTitle(array('sourceCulture' => true));
}
Modified: trunk/qubit/lib/QubitIsad.class.php
===================================================================
--- trunk/qubit/lib/QubitIsad.class.php 2009-03-03 08:09:54 UTC (rev 2091)
+++ trunk/qubit/lib/QubitIsad.class.php 2009-03-03 19:04:45 UTC (rev 2092)
@@ -45,7 +45,7 @@
$label .= ' - ';
}
- if (is_null($title = $informationObject->getTitle()))
+ if (strlen($title = $informationObject->getTitle()) < 1)
{
$title = $informationObject->getTitle(array('sourceCulture' => true));
}
Modified: trunk/qubit/lib/QubitRad.class.php
===================================================================
--- trunk/qubit/lib/QubitRad.class.php 2009-03-03 08:09:54 UTC (rev 2091)
+++ trunk/qubit/lib/QubitRad.class.php 2009-03-03 19:04:45 UTC (rev 2092)
@@ -18,7 +18,7 @@
*/
/**
- * This class is used to provide methods that supplement the core Qubit
information object with behaviour or
+ * This class is used to provide methods that supplement the core Qubit
information object with behaviour or
* presentation features that are specific to the Canadian Rules for Archival
Description (RAD) standard
*
* @package Qubit
@@ -45,7 +45,7 @@
$label .= ' - ';
}
- if (is_null($title = $informationObject->getTitle()))
+ if (strlen($title = $informationObject->getTitle()) < 1)
{
$title = $informationObject->getTitle(array('sourceCulture' => true));
}
Modified: trunk/qubit/lib/model/QubitInformationObject.php
===================================================================
--- trunk/qubit/lib/model/QubitInformationObject.php 2009-03-03 08:09:54 UTC
(rev 2091)
+++ trunk/qubit/lib/model/QubitInformationObject.php 2009-03-03 19:04:45 UTC
(rev 2092)
@@ -82,7 +82,7 @@
$label .= ' - ';
}
- if (is_null($title = $this->getTitle()))
+ if (strlen($title = $this->getTitle()) < 1)
{
$title = $this->getTitle(array('sourceCulture' => true));
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---