Author: jablko
Date: Wed Oct 13 23:48:50 2010
New Revision: 8116

Log:
Fix syntax errors and typo, fixes issue 1801

Modified:
   trunk/plugins/sfModsPlugin/lib/sfModsPlugin.class.php
   
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.xml.php

Modified: trunk/plugins/sfModsPlugin/lib/sfModsPlugin.class.php
==============================================================================
--- trunk/plugins/sfModsPlugin/lib/sfModsPlugin.class.php       Wed Oct 13 
23:38:02 2010        (r8115)
+++ trunk/plugins/sfModsPlugin/lib/sfModsPlugin.class.php       Wed Oct 13 
23:48:50 2010        (r8116)
@@ -114,7 +114,7 @@
           $list[] = $resource->repository->identifier;
           $list[] = $resource->repository;
 
-          if (null !== $contact = $resource->repository->getPrimaryContact())
+          if (null !== $contact = 
$this->resource->repository->getPrimaryContact())
           {
             $physicalLocation = array();
 

Modified: 
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.xml.php
==============================================================================
--- 
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.xml.php  
    Wed Oct 13 23:38:02 2010        (r8115)
+++ 
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.xml.php  
    Wed Oct 13 23:48:50 2010        (r8116)
@@ -9,7 +9,7 @@
     <title><?php echo esc_specialchars($resource) ?></title>
   </titleInfo>
 
-  <?php foreach ($mods->name) as $item): ?>
+  <?php foreach ($mods->name as $item): ?>
     <name type="<?php echo $item->actor->entityType ?>">
       <namePart><?php echo esc_specialchars($item->actor) ?></namePart>
       <role><?php echo $item->type->getRole() ?></role>
@@ -25,8 +25,7 @@
 
       <place><?php echo $item->getPlace() ?></place>
 
-      <?php switch ($item->typeId): ?>
-        <?php case QubitTerm::CREATION_ID: ?>
+      <?php switch ($item->typeId): case QubitTerm::CREATION_ID: ?>
           <dateCreated><?php echo 
$item->getDateDisplay(array('cultureFallback' => true)) ?></dateCreated>
           <?php break ?>
         <?php case QubitTerm::PUBLICATION_ID: ?>
@@ -65,8 +64,6 @@
       <physicalLocation><?php echo esc_specialchars($item) 
?></physicalLocation>
     <?php endforeach; ?>
 
-    <?php endif; ?>
-
   </location>
 
   <?php foreach ($resource->getChildren() as $item): ?>

-- 
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.

Reply via email to