-<div id="toolbar">
-
<script type="text/javascript">
//<![CDATA[
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
}
}
function PopupZ3950Confirmed() {
- if (confirm(_("Please note that this Z39.50 search could replace the current record."))){
+ if (confirm(_("Please note that this external search could replace the current record."))){
PopupZ3950();
}
}
function GetZ3950Terms(){
var strQuery="&frameworkcode=";
[% FOREACH z3950_search_param IN z3950_search_params %]
- strQuery += "&" + "[% z3950_search_param.name |html %]" + "=" + "[% z3950_search_param.encvalue |html %]";
+ strQuery += "&" + "[% z3950_search_param.name |uri %]" + "=" + "[% z3950_search_param.value |uri %]";
[% END %]
return strQuery;
}
function addToShelf() { window.open('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=[% biblionumber %]','Add_to_virtualshelf','width=500,height=400,toolbar=false,scrollbars=yes');
}
function printBiblio() {window.print(); }
-[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
+[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
function confirm_deletion() {
var count = [% count %];
var holdcount = [% holdcount %];
-
+ var countorders = [% countorders %];
+ var countdeletedorders = [% countdeletedorders %];
var is_confirmed;
if (count > 0){
- is_confirmed = alert( count + " " +_("item(s) are attached to this record.\nYou must delete all items before deleting this record.") );
- } else if ( holdcount > 0 ) {
- is_confirmed = confirm( holdcount + " " + _("holds(s) for this record \n Are you sure you want to delete this record?."));
+ is_confirmed = alert( _("%s item(s) are attached to this record. You must delete all items before deleting this record.").format(count) );
+ }
+ else if (countorders > 0){
+ [% IF ( CAN_user_acquisition_order_manage ) %]
+ is_confirmed = confirm( _("Warning: This record is used in %s order(s). Deleting it could cause serious issues on acquisition module. Are you sure you want to delete this record?").format(countorders) );
+ [% ELSE %]
+ is_confirmed = alert( _("%s order(s) are using this record. You need order managing permissions to delete this record.").format(countorders) );
+ [% END %]
+ }
+ else if (countdeletedorders > 0){
+ [% IF ( CAN_user_acquisition_order_manage ) %]
+ is_confirmed = confirm( _("%s deleted order(s) are using this record. Are you sure you want to delete this record?").format(countdeletedorders) );
+ [% ELSE %]
+ is_confirmed = alert( _("%s deleted order(s) are using this record. You need order managing permissions to delete this record.").format(countdeletedorders) );
+ [% END %]
+ }
+ else if ( holdcount > 0 ) {
+ is_confirmed = confirm( _("%s holds(s) for this record. Are you sure you want to delete this record?").format(holdcount) );
} else {
is_confirmed = confirm(_("Are you sure you want to delete this record?"));
}
-
if (is_confirmed) {
if ( count > 0 || holdcount > 0 ){
return false;
}
[% END %]
-[% IF ( CAN_user_editcatalogue_edit_items ) %]
+[% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
function confirm_items_deletion() {
var count = [% count %];
var holdcount = [% holdcount %];
if ( holdcount > 0 ) {
- alert( holdcount + " " + _("holds(s) for this record \n You must delete all holds before deleting all items.") );
+ alert( _("%s hold(s) on this record. You must delete all holds before deleting all items.").format(holdcount) );
} else if ( count > 0 ) {
- if( confirm( _("Are you sure you want to delete the") + " " + count + " " + _("attached items?") ) ) {
+ if( confirm( _("Are you sure you want to delete the %s attached items?").format(count) ) ) {
window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]";
} else {
return false;
}
} else {
- alert(_("This record has no items."));
+ alertNoItems();
return false;
}
}
+ function alertNoItems(){
+ alert(_("This record has no items."));
+ }
[% END %]
- // prepare DOM for YUI Toolbar
-
$(document).ready(function() {
- [% IF ( CAN_user_editcatalogue_edit_items ) %]$("#edititems").parent().remove();
- $("#newitem").parent().remove();[% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]$("#duplicatebiblio").parent().remove();
- $("#deletebiblio").parent().remove();
- $("#z3950searchc").empty();[% END %]
- [% IF ( CAN_user_serials_create_subscription ) %]$("#newsub").parent().remove();[% END %]
- $("#newbiblio").parent().remove();
- $("#editbiblio").parent().remove();
- $("#addtoshelf").parent().remove();
- $("#printbiblio").parent().remove();
- $("#placehold").parent().remove();
- $("#export").remove();
+ $("#z3950copy").click(function(){
+ PopupZ3950();
+ return false;
+ });
+ $("#deletebiblio").click(function(){
+ confirm_deletion();
+ return false;
+ });
+ $("#deleteallitems").click(function(){
+ confirm_items_deletion();
+ return false;
+ });
+ $("#printbiblio").click(function(){
+ printBiblio();
+ return false;
+ });
+ $("#addtocart").click(function(){
+ addToCart();
+ $(".btn-group").removeClass("open");
+ return false;
+ });
+ $("#addtoshelf").click(function(){
+ addToShelf();
+ $(".btn-group").removeClass("open");
+ return false;
+ });
+ $("#export").remove(); // Hide embedded export form if JS menus available
+ $("#deletebiblio").tooltip();
+ $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled")
+ .on("click",function(e){
+ e.preventDefault();
+ alertNoItems();
+ })
+ .tooltip();
});
+ //]]>
+ </script>
- YAHOO.util.Event.onContentReady("cattoolbar", function () {
- // Menu for new record, new item, new subscription
- var newmenu = [
- [% IF CAN_user_editcatalogue_edit_catalogue %]
- {text: _("New record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl" },
+<div id="toolbar" class="btn-toolbar">
+
+<form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
+
+[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ||
+CAN_user_serials_create_subscription ) %]
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
+ <li><a id="newbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl">New record</a></li>
[% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]
- {text: _("New item"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]#additema" },
+
+ [% IF ( CAN_user_editcatalogue_edit_items ) %]
+ <li><a id="newitem" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]#additema">New item</a></li>
[% END %]
[% IF ( CAN_user_serials_create_subscription ) %]
- {text: _("New subscription"), url: "/cgi-bin/koha/serials/subscription-add.pl?biblionumber_for_new_subscription=[% biblionumber %]"},
+ <li><a id="newsub" href="/cgi-bin/koha/serials/subscription-add.pl?biblionumber_for_new_subscription=[% biblionumber %]">New subscription</a></li>
[% END %]
+
[% IF ( EasyAnalyticalRecords && CAN_user_editcatalogue_edit_catalogue ) %]
- {text: _("Analyze items"), url: "/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&analyze=1" },
+ <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&analyze=1">Analyze items</a></li>
[% END %]
- [% IF CAN_user_editcatalogue_edit_catalogue %]
- {text: _("New child record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber %]" },
+ [% IF CAN_user_editcatalogue_edit_catalogue && ! EasyAnalyticalRecords %]
+ <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber %]">New child record</a></li>
[% END %]
- ];
- if(newmenu.length){
- new YAHOO.widget.Button({
- type: "menu",
- label: _("New"),
- id: "newmenuc",
- name: "newmenubutton",
- menu: newmenu,
- container: this
- });
- }
- var editmenu = [
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=" },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Edit items"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]" },[% END %]
- [% IF ( CAN_user_tools_items_batchmod ) %]{ text: _("Edit items in batch"), url: "/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber %]&src=CATALOGUING" },[% END %]
- [% IF ( CAN_user_tools_items_batchdel ) %]{ text: _("Delete items in batch"), url: "/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber %]&src=CATALOGUING" },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Attach item"), url: "/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]" },[% END %]
- [% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Link to host item"), url: "/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber %]" },[% END %][% END %]
- [% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]{ text: _("Upload image"), url: "/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image" },[% END %][% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as new (duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=duplicate" },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete record"), onclick: {fn: confirm_deletion }[% IF ( count || holdcount ) %],id:'disabled'[% END %] },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all items"), onclick: {fn: confirm_items_deletion }[% IF ( count < 1 || holdcount ) %],id:'disabled2'[% END %] },[% END %]
- ];
- if(editmenu.length){
- new YAHOO.widget.Button({
- type: "menu",
- label: _("Edit"),
- id: "editmenuc",
- name: "editmenubutton",
- menu: editmenu,
- container: this
- });
- }
- var savemenu = [
- { text: _("MODS (XML)"), url: "/cgi-bin/koha/catalogue/export.pl?format=mods&op=export&bib=[% biblionumber %]" },
- { text: _("Dublin Core (XML)"), url: "/cgi-bin/koha/catalogue/export.pl?format=dc&op=export&bib=[% biblionumber %]" },
- { text: _("MARCXML"), url: "/cgi-bin/koha/catalogue/export.pl?format=marcxml&op=export&bib=[% biblionumber %]" },
- { text: _("MARC (non-Unicode/MARC-8)"), url: "/cgi-bin/koha/catalogue/export.pl?format=marc8&op=export&bib=[% biblionumber %]" },
- { text: _("MARC (Unicode/UTF-8)"), url: "/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]" },
- { text: _("MARC (Unicode/UTF-8, Standard)"), url: "/cgi-bin/koha/catalogue/export.pl?format=marcstd&op=export&bib=[% biblionumber %]" }
- ];
+ </ul>
+ </div>
+[% END %]
- new YAHOO.widget.Button({
- type: "menu",
- label: _("Save"),
- id: "savemenuc",
- name: "savemenubutton",
- menu: savemenu,
- container: this
- });
+[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel ) or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
+ <li><a id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=">Edit record</a></li>
+ [% END %]
- var addtomenu = [
- { text: _("Cart"), onclick: { fn: addToCart } },
- { text: _("List"), onclick: { fn: addToShelf } }
- ];
+ [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
+ <li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]">Edit items</a></li>
+ [% END %]
- new YAHOO.widget.Button({
- type: "menu",
- label: _("Add to"),
- name: "addtomenubutton",
- menu: addtomenu,
- container: this
- });
+ [% IF ( CAN_user_tools_items_batchmod ) %]
+ [% IF ( count ) %]
+ <li><a id="batchedit" href="/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Edit items in batch</a></li>
+ [% ELSE %]
+ <li class="disabled"><a id="batchedit-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Edit items in batch</a></li>
+ [% END %]
+ [% END %]
- new YAHOO.widget.Button({
- id: "printbiblio",
- type: "button",
- label: _("Print"),
- container: this,
- onclick: {fn: printBiblio }
- });
- [% IF ( CAN_user_reserveforothers ) %][% UNLESS ( norequests ) %]
- [% IF ( holdfor ) %]
- // Create an array of YAHOO.widget.MenuItem configuration properties
- var onButtonClick = function () {
- location.href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]";
- }
- var HoldForButtonMenu = [
- { text: _("Place hold"), url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]" },
- { text: _("Place hold for")+ " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]&findborrower=[% holdfor_cardnumber %]" }
- ];
+ [% IF ( CAN_user_tools_items_batchdel ) %]
+ [% IF ( count ) %]
+ <li><a id="batchdelete" href="/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Delete items in a batch</a></li>
+ [% ELSE %]
+ <li class="disabled"><a id="batchdelete-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Delete items in a batch</a></li>
+ [% END %]
+ [% END %]
- // Instantiate a Split Button using the array of YAHOO.widget.MenuItem
- // configuration properties as the value for the "menu"
- // configuration attribute.
+ [% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]">Attach item</a></li>[% END %]
- var HoldForButton = new YAHOO.widget.Button({
- id: "holdfor",
- type: "split",
- label: _("Place hold"),
- name: "holdfor",
- menu: HoldForButtonMenu,
- container: this,
- onclick: { fn: onButtonClick }
- });
- [% ELSE %]
- new YAHOO.widget.Button({
- id: "placehold",
- type: "link",
- label: _("Place hold"),
- container: this,
- href: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]"
- });
- [% END %]
- [% END %][% END %]
+ [% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber %]">Link to host item</a>[% END %][% END %]
+ [% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image">Upload image</a>[% END %][% END %]
- });
- //]]>
- </script>
-
-<form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
+ <li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=duplicate">Edit as new (duplicate)</a></li>
+ <li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li>
+ [% END %]
-<ul class="toolbar" id="cattoolbar">
+ [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
+ [% IF ( count ) %]
+ <li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li>
+ [% ELSE %]
+ <li><a id="deletebiblio" href="#">Delete record</a></li>
+ [% END %]
+ [% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
- <li><a id="newbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl">New record</a></li>
- [% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]
- <li><a id="newitem" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]">New item</a></li>
- [% END %]
- [% IF ( CAN_user_serials_create_subscription ) %]
- <li><a id="newsub" href="/cgi-bin/koha/serials/subscription-add.pl?biblionumber_for_new_subscription=[% biblionumber %]">New subscription</a></li>
- [% END %]
+ [% IF CAN_user_editcatalogue_delete_all_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
+ [% IF ( count ) %]
+ <li><a href="#" id="deleteallitems">Delete all items</a></li>
+ [% ELSE %]
+ <li class="disabled"><a href="#" id="deleteallitems-disabled" data-toggle="tooltip" data-placement="left" title="This record has no items">Delete all items</a></li>
+ [% END %]
+ [% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
- <li><a id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=">Edit record</a></li>
- [% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]
- <li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]">Edit items</a></li>
- [% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
- <li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=duplicate">Duplicate record</a></li>
- [% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
- <li><a id="deletebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=[% biblionumber %]">Delete</a></li>
- [% END %]
+ </ul>
+ </div>
+[% END %]
- <li><a id="addtoshelf" href="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=[% biblionumber %]">Add to shelf</a></li>
- <li><span id="printbiblio"></span></li>
- [% IF ( CAN_user_reserveforothers ) %]
- [% UNLESS ( norequests ) %]<li><a id="placehold" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">Place hold</a></li>[% END %]
- [% END %]
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950Confirmed(); return false;" /></li>[% END %]
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt"></i> Save <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&op=export&bib=[% biblionumber %]">BIBTEX</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=dc&op=export&bib=[% biblionumber %]">Dublin Core (XML)</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcxml&op=export&bib=[% biblionumber %]">MARCXML</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marc8&op=export&bib=[% biblionumber %]">MARC (non-Unicode/MARC-8)</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]">MARC (Unicode/UTF-8)</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcstd&op=export&bib=[% biblionumber %]">MARC (Unicode/UTF-8, Standard)</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&op=export&bib=[% biblionumber %]">MODS (XML)</a></li>
+ <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&op=export&bib=[% biblionumber %]">RIS</a></li>
</ul>
+ </div>
+
+[% IF ( virtualshelves && intranetbookbag ) %]
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Add to <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#" id="addtocart">Cart</a></li>
+ <li><a href="#" id="addtoshelf">List</a></li>
+ </ul>
+ </div>
+[% ELSIF ( virtualshelves ) %]
+ <div class="btn-group"><a id="addtoshelf" class="btn btn-small"><i class="icon-list"></i> Add to list</a> </div>
+[% ELSIF ( intranetbookbag ) %]
+ <div class="btn-group"><a id="addtocart" class="btn btn-small"><i class="icon-shopping-cart"></i> Add to cart</a> </div>
+[% END %]
+
+ <div class="btn-group"><a id="printbiblio" class="btn btn-small"><i class="icon-print"></i> Print</a></div>
+
+[% IF ( CAN_user_reserveforothers ) %]
+ [% UNLESS ( norequests ) %]
+ [% IF ( holdfor ) %]
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">
+ <i class="icon-hold"></i>
+ Place hold
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">Place hold</a></li>
+ <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></li>
+ </ul>
+ </div>
+ [% ELSE %]
+ <div class="btn-group"><a id="placehold" class="btn btn-small" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]"><i class="icon-hold"></i> Place hold</a></div>
+ [% END %]
+ [% END %]
+[% END %]
+
</form>
</div>