Bug 15395: Allow correct handling of plural translation
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / cat-toolbar.inc
blobe904dde1611c16b72a62e13cfb0654b50b427849
1 [% INCLUDE 'blocking_errors.inc' %]
2 <div id="toolbar" class="btn-toolbar">
4 [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ||
5 CAN_user_serials_create_subscription ) %]
6     <div class="btn-group">
7     <button class="btn btn-default btn-sm 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>
11             [% END %]
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>
15             [% END %]
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>
18             [% END %]
20             [% IF ( EasyAnalyticalRecords && CAN_user_editcatalogue_edit_catalogue ) %]
21                 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&amp;analyze=1">Analyze items</a></li>
22             [% END %]
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>
25             [% END %]
26     </ul>
27     </div>
28 [% END %]
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 btn-sm 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>
36             [% END %]
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>
40             [% END %]
42             [% IF ( CAN_user_tools_items_batchmod ) %]
43                 [% IF ( count ) %]
44                     <li><a id="batchedit" href="/cgi-bin/koha/tools/batchMod.pl?op=show&amp;biblionumber=[% biblionumber | html %]&amp;src=CATALOGUING">Edit items in batch</a></li>
45                 [% ELSE %]
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>
47                 [% END %]
48             [% END %]
50             [% IF ( CAN_user_tools_items_batchdel ) %]
51                 [% IF ( count ) %]
52                     <li><a id="batchdelete" href="/cgi-bin/koha/tools/batchMod.pl?del=1&amp;op=show&amp;biblionumber=[% biblionumber | html %]&amp;src=CATALOGUING">Delete items in a batch</a></li>
53                 [% ELSE %]
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>
55                 [% END %]
56             [% END %]
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 item</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 %]&amp;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 %]&amp;op=duplicate">Edit as new (duplicate)</a></li>
65                 <li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li>
66             [% END %]
68             [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
69                 [% IF ( count ) %]
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                 [% ELSE %]
72                     <li><a id="deletebiblio" data-order-manage="[% CAN_user_acquisition_order_manage | html %]" href="#">Delete record</a></li>
73                 [% END %]
74             [% END %]
76             [% IF CAN_user_editcatalogue_delete_all_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
77                 [% IF ( count ) %]
78                     <li><a href="#" id="deleteallitems">Delete all items</a></li>
79                 [% ELSE %]
80                     <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>
81                 [% END %]
82             [% END %]
84     </ul>
85     </div>
86 [% END %]
88     <div class="btn-group">
89     <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-download"></i> Save <span class="caret"></span></button>
90     <ul class="dropdown-menu">
91         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&amp;op=export&amp;bib=[% biblionumber | uri %]">BIBTEX</a></li>
92         <li><a href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
93         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcxml&amp;op=export&amp;bib=[% biblionumber | uri %]">MARCXML</a></li>
94         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marc8&amp;op=export&amp;bib=[% biblionumber | uri %]">MARC (non-Unicode/MARC-8)</a></li>
95         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=utf8&amp;op=export&amp;bib=[% biblionumber | uri %]">MARC (Unicode/UTF-8)</a></li>
96         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=marcstd&amp;op=export&amp;bib=[% biblionumber | uri %]">MARC (Unicode/UTF-8, Standard)</a></li>
97         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&amp;op=export&amp;bib=[% biblionumber | uri %]">MODS (XML)</a></li>
98         <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&amp;op=export&amp;bib=[% biblionumber | uri %]">RIS</a></li>
99     </ul>
100     </div>
102 [% IF ( virtualshelves && intranetbookbag ) %]
103     <div class="btn-group">
104     <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">Add to <span class="caret"></span></button>
105     <ul class="dropdown-menu">
106         <li><a href="#" id="addtocart">Cart</a></li>
107         <li><a href="#" id="addtoshelf">List</a></li>
108     </ul>
109     </div>
110 [% ELSIF ( virtualshelves ) %]
111     <div class="btn-group"><a id="addtoshelf" class="btn btn-default btn-sm"><i class="fa fa-list"></i> Add to list</a> </div>
112 [% ELSIF ( intranetbookbag ) %]
113     <div class="btn-group"><a id="addtocart" class="btn btn-default btn-sm"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div>
114 [% END %]
116     <div class="btn-group"><a id="printbiblio" class="btn btn-default btn-sm"><i class="fa fa-print"></i> Print</a></div>
118 [% IF ( CAN_user_reserveforothers ) %]
119     [% UNLESS ( norequests ) %]
120         [% IF ( holdfor ) %]
121             <div class="btn-group">
122                 <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
123                     <i class="fa fa-sticky-note-o"></i>
124                     Place hold
125                     <span class="caret"></span>
126                 </button>
127                 <ul class="dropdown-menu">
128                     <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">Place hold</a></li>
129                     <li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])</a></li>
130                 </ul>
131             </div>
132         [% ELSE %]
133             <div class="btn-group"><a id="placehold" class="btn btn-default btn-sm" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | html %]"><i class="fa fa-sticky-note-o"></i> Place hold</a></div>
134         [% END %]
135     [% END %]
136 [% END %]
138 [% IF Koha.Preference('ArticleRequests') %]
139     <div class="btn-group"><a id="placehold" class="btn btn-default btn-sm" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | html %]"><i class="fa fa-file-text-o"></i> Request article</a></div>
140 [% END %]
142 [% FOREACH p IN plugins %]
143     [% p.intranet_catalog_biblio_enhancements_toolbar_button | html %]
144 [% END %]
146 </div>
148     <!--Modal for Dublin Core-->
149     <div class="modal" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_" aria-hidden="true">
150         <div class="modal-dialog">
151         <div class="modal-content">
152         <div class="modal-header">
153             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
154             <h3 id="exportLabelexportModal_">Exporting to Dublin Core...</h3>
155         </div>
156         <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
157         <div class="modal-body">
158             <fieldset>
159                 <input id="input-simple" type="radio" name="format" value="rdfdc">
160                 <label for="input-simple">Simple DC-RDF</label>
161                 <br>
162                 <input id="input-oai" type="radio" name="format" value="oaidc" checked>
163                 <label for="input-oai">OAI-DC</label>
164                 <br>
165                 <input id="input-srw" type="radio" name="format" value="srwdc">
166                 <label for="input-srw">SRW-DC</label>
167                 <br>
168             </fieldset>
169         </div>
170         <div class="modal-footer">
171             <button type="submit" class="btn btn-default">Export</button>
172             <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
173         </div>
174         <input type="hidden" name="op" value="export" />
175         <input type="hidden" name="bib" value="[% biblionumber | html %]" />
176         </form>
177         </div>
178         </div>
179     </div>