2 [% INCLUDE 'blocking_errors.inc' %]
3 <div id="toolbar" class="btn-toolbar">
5 [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_serials_create_subscription ) %]
6 <div class="btn-group">
7 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New <span class="caret"></span></button>
8 <ul class="dropdown-menu">
9 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
10 <li><a id="newbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl">New record</a></li>
13 [% IF ( CAN_user_editcatalogue_edit_items ) %]
14 <li><a id="newitem" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]#additema">New item</a></li>
16 [% IF ( CAN_user_serials_create_subscription ) %]
17 <li><a id="newsub" href="/cgi-bin/koha/serials/subscription-add.pl?biblionumber_for_new_subscription=[% biblionumber | html %]">New subscription</a></li>
20 [% IF ( EasyAnalyticalRecords && CAN_user_editcatalogue_edit_catalogue ) %]
21 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&analyze=1">Analyze items</a></li>
23 [% IF CAN_user_editcatalogue_edit_catalogue && ! EasyAnalyticalRecords %]
24 <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]">New child record</a></li>
30 [% 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 ) %]
31 <div class="btn-group">
32 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
33 <ul class="dropdown-menu">
34 [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
35 <li><a id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | html %]">Edit record</a></li>
38 [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
39 <li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]">Edit items</a></li>
42 [% IF ( CAN_user_tools_items_batchmod ) %]
44 <li><a id="batchedit" href="/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber | html %]&src=CATALOGUING">Edit items in batch</a></li>
46 <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>
50 [% IF ( CAN_user_tools_items_batchdel ) %]
52 <li><a id="batchdelete" href="/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber | html %]&src=CATALOGUING">Delete items in a batch</a></li>
54 <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>
58 [% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber | uri %]">Attach item</a></li>[% END %]
60 [% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber | uri %]">Link to host record</a>[% END %][% END %]
61 [% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&filetype=image">Upload image</a>[% END %][% END %]
63 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
64 <li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | html %]&op=duplicate">Edit as new (duplicate)</a></li>
65 <li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li>
68 [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
70 <li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count | html %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li>
71 [% ELSIF ( biblio.subscriptions.count ) %]
72 <li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% biblio.subscriptions.count | html %] subscription(s) are attached to this record. You must delete all subscriptions before deleting this record." href="#">Delete record</a></li>
74 <li><a id="deletebiblio" data-order-manage="[% CAN_user_acquisition_order_manage | html %]" href="#">Delete record</a></li>
78 [% IF CAN_user_editcatalogue_delete_all_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
80 <li><a href="#" id="deleteallitems">Delete all items</a></li>
82 <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>
90 <div class="btn-group">
91 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-download"></i> Save <span class="caret"></span></button>
92 <ul class="dropdown-menu">
93 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&op=export&bib=[% biblionumber | uri %]">BIBTEX</a></li>
94 <li><a href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
95 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcxml&op=export&bib=[% biblionumber | uri %]">MARCXML</a></li>
96 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marc8&op=export&bib=[% biblionumber | uri %]">MARC (non-Unicode/MARC-8)</a></li>
97 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber | uri %]">MARC (Unicode/UTF-8)</a></li>
98 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcstd&op=export&bib=[% biblionumber | uri %]">MARC (Unicode/UTF-8, Standard)</a></li>
99 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&op=export&bib=[% biblionumber | uri %]">MODS (XML)</a></li>
100 <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&op=export&bib=[% biblionumber | uri %]">RIS</a></li>
104 [% IF (Koha.Preference("intranetbookbag")) %]
106 <div class="btn-group">
107 <a id="cart[% biblionumber | html %]" class="btn btn-default addtocart incart" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
109 <div class="btn-group">
110 <a id="cartR[% biblionumber | html %]" class="btn btn-default cartRemove incart" href="#"><i class="fa fa-shopping-cart"></i> Remove from cart</a>
113 <div class="btn-group">
114 <a id="cart[% biblionumber | html %]" class="btn btn-default addtocart" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
116 <div class="btn-group">
117 <a id="cartR[% biblionumber | html %]" class="btn btn-default cartRemove" href="#"><i class="fa fa-shopping-cart"></i> Remove from cart</a>
122 [% IF Koha.Preference('virtualshelves') %]
123 <div class="btn-group">
124 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
125 <i class="fa fa-list"></i> Add to list <span class="caret"></span>
127 <ul class="dropdown-menu">
128 [% IF add_to_some_private_shelves.count %]
129 <li class="dropdown-header">Your lists</li>
130 [% SET number_of_private_shelves = 0 %]
131 [% FOREACH s IN add_to_some_private_shelves %]
132 [% IF shelfnumber != s.shelfnumber %]
134 <a href="#" class="addtolist" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
136 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
137 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
141 [% IF add_to_some_public_shelves.count %]
142 <li class="dropdown-header">Public lists</li>
143 [% SET number_of_public_shelves = 0 %]
144 [% FOREACH s IN add_to_some_public_shelves %]
145 [% IF shelfnumber != s.shelfnumber %]
147 <a href="#" data-shelfnumber="[% s.shelfnumber | html %]" class="addtolist">[% s.shelfname | html %]</a>
149 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
150 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
154 <li role="separator" class="divider"></li>
155 [% IF ( add_to_some_private_shelves and add_to_some_private_shelves.count > 10 ) or ( add_to_some_public_shelves and add_to_some_public_shelves.count > 10 ) %]
157 <a href="#" class="addtolist morelists">More lists</a>
161 <a href="#" class="addtolist newlist">New list</a>
165 [% END # /IF virtualshelves %]
167 <div class="btn-group"><a id="printbiblio" class="btn btn-default"><i class="fa fa-print"></i> Print</a></div>
169 [% IF ( CAN_user_reserveforothers ) %]
170 [% SET items = biblio.items %]
171 [% IF Context.Scalar(Context.Scalar(items, "filter_by_for_hold"), "count") %]
173 <div class="btn-group">
174 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
175 <i class="fa fa-sticky-note-o"></i>
177 <span class="caret"></span>
179 <ul class="dropdown-menu">
180 <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">Place hold</a></li>
181 <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]&findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])</a></li>
185 <div class="btn-group"><a id="placehold" class="btn btn-default" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | html %]"><i class="fa fa-sticky-note-o"></i> Place hold</a></div>
190 [% IF Koha.Preference('ArticleRequests') %]
191 <div class="btn-group"><a id="placehold" class="btn btn-default" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | html %]"><i class="fa fa-file-text-o"></i> Request article</a></div>
194 [% IF ( CAN_user_acquisition_order_manage ) %]
195 [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
196 <div class="btn-group">
197 <a class="btn btn-default" href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&basketno=[% searchtoorder_basketno | uri %]&biblionumber=[% biblionumber | uri %]"><i class="fa fa-shopping-basket"></i> Add order</a>
202 [% FOREACH p IN plugins %]
203 [% p.intranet_catalog_biblio_enhancements_toolbar_button | $raw %]
208 <!--Modal for Dublin Core-->
209 <div class="modal" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_" aria-hidden="true">
210 <div class="modal-dialog">
211 <div class="modal-content">
212 <div class="modal-header">
213 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
214 <h3 id="exportLabelexportModal_">Exporting to Dublin Core...</h3>
216 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
217 <div class="modal-body">
219 <input id="input-simple" type="radio" name="format" value="rdfdc">
220 <label for="input-simple">Simple DC-RDF</label>
222 <input id="input-oai" type="radio" name="format" value="oaidc" checked>
223 <label for="input-oai">OAI-DC</label>
225 <input id="input-srw" type="radio" name="format" value="srwdc">
226 <label for="input-srw">SRW-DC</label>
230 <div class="modal-footer">
231 <button type="submit" class="btn btn-default">Export</button>
232 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
234 <input type="hidden" name="op" value="export" />
235 <input type="hidden" name="bib" value="[% biblionumber | html %]" />