Author: david
Date: Thu Dec 3 11:25:14 2009
New Revision: 4056
Log:
Fix display of languages and scripts.
Modified:
trunk/apps/qubit/modules/function/templates/showIsdfSuccess.php
Modified: trunk/apps/qubit/modules/function/templates/showIsdfSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/showIsdfSuccess.php Thu Dec
3 11:12:39 2009 (r4055)
+++ trunk/apps/qubit/modules/function/templates/showIsdfSuccess.php Thu Dec
3 11:25:14 2009 (r4056)
@@ -176,20 +176,32 @@
</td></tr>
<?php endif; ?>
-<?php if (0 < count($languageCodes)): ?>
- <tr><th><?php echo __('language of authority record')?></th><td>
- <?php foreach ($languageCodes as $languageCode): ?>
- <?php echo
format_language($languageCode->getValue(array('sourceCulture'=>true))) ?><br />
- <?php endforeach; ?>
- </td></tr>
+<?php if (0 < count($func->language)): ?>
+ <tr>
+ <th>
+ <?php echo __('language(s)') ?>
+ </th><td>
+ <ul>
+ <?php foreach ($func->language as $code): ?>
+ <li><?php echo format_language($code) ?></li>
+ <?php endforeach; ?>
+ </ul>
+ </td>
+ </tr>
<?php endif; ?>
-<?php if (0 < count($scriptCodes)): ?>
- <tr><th><?php echo __('script of authority record')?></th><td>
- <?php foreach ($scriptCodes as $scriptCode): ?>
- <?php echo
format_script($scriptCode->getValue(array('sourceCulture'=>true))) ?><br />
- <?php endforeach; ?>
- </td></tr>
+<?php if (0 < count($func->script)): ?>
+ <tr>
+ <th>
+ <?php echo __('script(s)') ?>
+ </th><td>
+ <ul>
+ <?php foreach ($func->script as $code): ?>
+ <li><?php echo format_script($code) ?></li>
+ <?php endforeach; ?>
+ </ul>
+ </td>
+ </tr>
<?php endif; ?>
<?php if (strlen($value = $func->getSources(array('cultureFallback' => true)))
>0): ?>
--
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.