hide 'Update Catalogue' UI if you do not have OPENSRF_STAFF_USERID defined.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 3 Apr 2011 01:08:43 +0000 (01:08 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 3 Apr 2011 01:08:43 +0000 (01:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1305 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/item/common_metadata.xhtml

index 8975483..7279f24 100644 (file)
@@ -35,7 +35,7 @@ if len(authors) < 2:
          </select>
        </td>
       </tr>
-      <tr py:if="user.is_staff and item.item_type == 'PHYS'">
+      <tr py:if="user.is_staff and item.item_type == 'PHYS' and hasattr(settings, 'OPENSRF_STAFF_USERID')">
        <th>Catalogue Settings</th>
        <td> 
        <table>