Bug 25166: Add "aria-hidden = true" to Font Awesome icons in the OPAC
[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" aria-hidden="true"></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" aria-hidden="true"></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" aria-hidden="true"></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" aria-hidden="true"></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" aria-hidden="true"></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" aria-hidden="true"></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 Koha.Preference('suggestion') %]
37         <li><a class="btn btn-link btn-lg" href="/cgi-bin/koha/opac-suggestions.pl?op=add&biblionumber=[% biblio.biblionumber | url %]"><i class="fa fa-fw fa-gift" aria-hidden="true"></i> Suggest for purchase</a></li>
38     [% END %]
39
40     [% IF ( OpacHighlightedWords && query_desc ) %]
41     <li>
42         <a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Unhighlight</a>
43         <a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Highlight</a>
44     </li>
45     [% END %]
46
47
48     [% IF ( Koha.Preference('OPACDetailQRCode' ) ) %]
49         <li>
50             <a class="show_qrcode btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-qrcode" aria-hidden="true"></i> Send to device</a>
51             <div id="qrcode" class="hidden"></div>
52         </li>
53     [% END %]
54
55     [% SET export_options = Koha.Preference('OpacExportOptions').split(',') %]
56     [% IF export_options.size %]
57         <li>
58             <div id="export">
59                 <div class="dropdown">
60                     <a id="format" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Save record <b class="caret"></b></a>
61                         <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="format">
62                             [% FOREACH option IN export_options %]
63                                 [% IF option == 'dc' %]
64                                     <li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
65                                 [% ELSE %]
66                                 <li>
67                                     <a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblio.biblionumber | html %]&amp;format=[% option | html %]">
68                                         [% SWITCH option %]
69                                             [% CASE 'bibtex' %]BIBTEX
70                                             [% CASE 'endnote' %]EndNote
71                                             [% CASE 'marcxml' %]MARCXML
72                                             [% CASE 'marc8' %]MARC (non-Unicode/MARC-8)
73                                             [% CASE 'utf8' %]MARC (Unicode/UTF-8)
74                                             [% CASE 'marcstd' %]MARC (Unicode/UTF-8, Standard)
75                                             [% CASE 'mods' %]MODS (XML)
76                                             [% CASE 'ris' %]RIS
77                                             [% CASE 'isbd' %]ISBD
78                                         [% END %]
79                                     </a>
80                                 </li>
81                                 [% END %]
82                             [% END %]
83                         </ul>
84                 </div>
85             </div>
86         </li>
87     [% END %]
88
89     [% IF ( OPACSearchForTitleIn ) %]
90         <li>
91             <div id="moresearches_menu">
92                 <div class="dropdown">
93                     <a id="furthersearches" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-search" aria-hidden="true"></i> More searches <b class="caret"></b></a>
94                         <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="furthersearches">
95                             <li><a href="#" class="menu-inactive">Search for this title in:</a></li>
96                             [% OPACSearchForTitleIn | $raw %]
97                         </ul>
98                 </div>
99             </div>
100         </li>
101     [% END %]
102 </ul>
103
104 <!-- Dublin Core Modal Form -->
105 <div class="modal hide" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
106     <div class="modal-header">
107         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
108         <h3 class="modal-title" id="exportModalLabel">Exporting to Dublin Core...</h3>
109     </div>
110     <form method="get" action="/cgi-bin/koha/opac-export.pl">
111     <div class="modal-body">
112         <fieldset id="dc_fieldset">
113                 <input id="input-simple" type="radio" name="format" value="rdfdc">
114                 <label class="label_dc" for="input-simple">Simple DC-RDF</label>
115                 <br>
116                 <input id="input-oai" type="radio" name="format" value="oaidc" checked>
117                 <label class="label_dc" for="input-oai">OAI-DC</label>
118                 <br>
119                 <input id="input-srw" type="radio" name="format" value="srwdc">
120                 <label class="label_dc" for="input-srw">SRW-DC</label>
121                 <br>
122         <input type="hidden" name="op" value="export">
123         <input type="hidden" name="bib" value="[% biblio.biblionumber | html %]">
124         </fieldset>
125     </div>
126     <div class="modal-footer">
127         <button type="submit" class="btn">Export</button>
128         <button class="btn btn-link btn-lg" data-dismiss="modal" aria-hidden="true">Cancel</button>
129     </div>
130     </form>
131 </div>