Bug 23903: Replace OPAC icons with Font Awesome
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / opac-detail-sidebar.inc
1 [% USE raw %]
2 [% USE Biblio %]
3 <ul id="action">
4     [% UNLESS ( norequests ) %]
5         [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
6             [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
7                 [% IF ( ReservableItems ) %]
8                     <li><a class="reserve btn btn-link btn-lg" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-bookmark"></i> Place hold</a></li>
9                 [% END %]
10             [% END %]
11         [% END %]
12     [% END %]
13
14     <li><a class="print-large btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-print"></i> Print</a></li>
15
16     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
17         [% IF artreqpossible %]
18             <li><a class="article_request btn btn-link btn-lg" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-file-text"></i> Request article</a></li>
19         [% END %]
20     [% END %]
21
22     [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
23         [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
24             <li><a class="addtoshelf btn btn-link btn-lg" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-list"></i> Save to your lists</a></li>
25         [% END %]
26     [% END %]
27
28     [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
29         [% IF ( incart ) %]
30             <li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart incart cart[% biblio.biblionumber | html %] addrecord btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-shopping-cart"></i> In your cart</a> <a data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
31         [% ELSE %]
32             <li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart cart[% biblio.biblionumber | html %] addrecord btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-shopping-cart"></i> Add to your cart</a>  <a style="display:none;" data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
33         [% END %]
34     [% END %]
35
36     [% IF ( OpacHighlightedWords && query_desc ) %]
37     <li>
38         <a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil"></i> Unhighlight</a>
39         <a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil"></i> Highlight</a>
40     </li>
41     [% END %]
42
43
44     [% IF ( Koha.Preference('OPACDetailQRCode' ) ) %]
45         <li>
46             <a class="show_qrcode btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-qrcode"></i> Send to device</a>
47             <div id="qrcode" class="hidden"></div>
48         </li>
49     [% END %]
50
51     [% SET export_options = Koha.Preference('OpacExportOptions').split(',') %]
52     [% IF export_options.size %]
53         <li>
54             <div id="export">
55                 <div class="dropdown">
56                     <a id="format" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download"></i> Save record <b class="caret"></b></a>
57                         <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="format">
58                             [% FOREACH option IN export_options %]
59                                 [% IF option == 'dc' %]
60                                     <li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
61                                 [% ELSE %]
62                                 <li>
63                                     <a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblio.biblionumber | html %]&amp;format=[% option | html %]">
64                                         [% SWITCH option %]
65                                             [% CASE 'bibtex' %]BIBTEX
66                                             [% CASE 'endnote' %]EndNote
67                                             [% CASE 'marcxml' %]MARCXML
68                                             [% CASE 'marc8' %]MARC (non-Unicode/MARC-8)
69                                             [% CASE 'utf8' %]MARC (Unicode/UTF-8)
70                                             [% CASE 'marcstd' %]MARC (Unicode/UTF-8, Standard)
71                                             [% CASE 'mods' %]MODS (XML)
72                                             [% CASE 'ris' %]RIS
73                                             [% CASE 'isbd' %]ISBD
74                                         [% END %]
75                                     </a>
76                                 </li>
77                                 [% END %]
78                             [% END %]
79                         </ul>
80                 </div>
81             </div>
82         </li>
83     [% END %]
84
85     [% IF ( OPACSearchForTitleIn ) %]
86         <li>
87             <div id="moresearches_menu">
88                 <div class="dropdown">
89                     <a id="furthersearches" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-search"></i> More searches <b class="caret"></b></a>
90                         <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="furthersearches">
91                             <li><a href="#" class="menu-inactive">Search for this title in:</a></li>
92                             [% OPACSearchForTitleIn | $raw %]
93                         </ul>
94                 </div>
95             </div>
96         </li>
97     [% END %]
98 </ul>
99
100 <!-- Dublin Core Modal Form -->
101 <div class="modal hide" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
102     <div class="modal-header">
103         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
104         <h3 class="modal-title" id="exportModalLabel">Exporting to Dublin Core...</h3>
105     </div>
106     <form method="get" action="/cgi-bin/koha/opac-export.pl">
107     <div class="modal-body">
108         <fieldset id="dc_fieldset">
109                 <input id="input-simple" type="radio" name="format" value="rdfdc">
110                 <label class="label_dc" for="input-simple">Simple DC-RDF</label>
111                 <br>
112                 <input id="input-oai" type="radio" name="format" value="oaidc" checked>
113                 <label class="label_dc" for="input-oai">OAI-DC</label>
114                 <br>
115                 <input id="input-srw" type="radio" name="format" value="srwdc">
116                 <label class="label_dc" for="input-srw">SRW-DC</label>
117                 <br>
118         <input type="hidden" name="op" value="export">
119         <input type="hidden" name="bib" value="[% biblio.biblionumber | html %]">
120         </fieldset>
121     </div>
122     <div class="modal-footer">
123         <button type="submit" class="btn">Export</button>
124         <button class="btn btn-link btn-lg" data-dismiss="modal" aria-hidden="true">Cancel</button>
125     </div>
126     </form>
127 </div>