Bug 10855: Search subscriptions by additional fields
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / virtualshelves-toolbar.inc
1 <script type="text/javascript">
2 //<![CDATA[
3
4 [% IF ( viewshelf ) %]
5
6     function sendList(){
7         open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
8      }
9
10      $(document).ready(function() {
11         $("#sendlist").click(function(){
12             sendList();
13             return false;
14         });
15         $("#deleteshelf").click(function(e){
16             if(confirmDelete(_("Are you sure you want to delete this list?"))){
17                 return true;
18             } else {
19                 e.preventDefault();
20             }
21         });
22      });
23
24 [% END %]
25
26 //]]>
27 </script>
28
29 <div id="toolbar" class="btn-toolbar">
30     <div class="btn-group"><a id="newshelf" class="btn btn-small" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1"><i class="icon-plus"></i> New list</a></div>
31
32     [% IF ( viewshelf ) %]
33         [% IF ( manageshelf ) %]
34         <div class="btn-group">
35             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button>
36                 <ul class="dropdown-menu">
37                     <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?shelfnumber=[% shelfnumber %]&amp;op=modif&amp;display=viewshelf">Edit list</a></li>
38                     [% IF ( showprivateshelves ) %]
39                         <li><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves&amp;shelves=1&amp;DEL-[% shelfnumber %]=1">Delete list</a></li>
40                     [% ELSE %]
41                         <li><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-[% shelfnumber %]=1">Delete list</a></li>
42                     [% END %]
43                 </ul>
44         </div>
45         [% END %]
46
47         <div class="btn-group">
48             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download"></i> Download list <span class="caret"></span></button>
49                 <ul class="dropdown-menu">
50                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=iso2709&amp;shelfid=[% shelfnumber %]">iso2709</a></li>
51                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=ris&amp;shelfid=[% shelfnumber %]">RIS</a></li>
52                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=bibtex&amp;shelfid=[% shelfnumber %]">BibTex</a></li>
53                     [% FOREACH csv_profile IN csv_profiles %]
54                         <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=[% csv_profile.export_format_id %]&amp;shelfid=[% shelfnumber %]">CSV - [% csv_profile.profile %]</a></li>
55                     [% END %]
56                 </ul>
57         </div>
58         <div class="btn-group"><a class="btn btn-small" href="#" id="sendlist"><i class="icon-envelope"></i> Send list</a></div>
59         <div class="btn-group"><a class="btn btn-small" id="printlist" target="_blank" href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&amp;print=1"><i class="icon-print"></i> Print list</a></div>
60     [% END %]
61 </div>