diff digitalobjects-item-tools.tpl.php @ 0:6f6e07baad80 default tip

initial
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Tue, 02 Jun 2015 08:57:48 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/digitalobjects-item-tools.tpl.php	Tue Jun 02 08:57:48 2015 +0200
@@ -0,0 +1,29 @@
+<!--<div class="digitalobjects_item_tools">-->
+<!-- TODO: add to basket function, put checkbox in here (if any) -->
+    <div class="add-annotate-tools">
+        <?php if (user_access('manage private collections')):?>
+            <div class="addbasket">
+                <?php print l(t("+ add to basket"),"digitalobject/". $variables['objid'] ."/add") ?>
+            </div>
+        <?php endif;?>
+    <!-- TODO: annotate function -->
+        <?php if (user_access('manage private collections')):?>
+            <div class="annotateitem">
+                <?php print l(t("+ annotate item"),"digitalobject/". $variables['objid'] ."/add") ?>
+            </div>
+        <?php endif;?>
+    </div>
+    <div class="moredetails">
+        <?php print l(t("details"),"digitalobject/". $variables['objid'], array('attributes' => array('class' => 'ajax-link', 'rel' => 'div.details-'. digitalobjects_clean_css_identifier($variables['objid'])))) ?>
+    </div>
+    <div class="relatedcollections">
+        <?php print l(t("related collections"),"digitalobject/". $variables['objid'] ."/usage", array('attributes' => array('class' => 'ajax-link', 'rel' => 'div.details-'. digitalobjects_clean_css_identifier($variables['objid'])))) ?>
+    </div>
+    <!-- TODO: where to put this in layout?-->
+    <?php if (user_access('administrate digitalobjects')):?>
+        <div class="edititem">
+            <?php print l(t("edit"),"digitalobject/". $variables['objid'] ."/edit") ?>
+        </div>
+    <?php endif;?>
+<!--</div>-->
+<div class="itemdetails details-<?php print digitalobjects_clean_css_identifier($variables['objid'])?>" id="content-ajax"></div>