Bug 26922: Regression tests
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / opac-detail-sidebar.inc
bloba110d73a2af5ce850f2af5fac0acde27998a313d
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 %]
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>
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 %]
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 %]
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 %]
36     [% IF Koha.Preference('suggestion') %]
37         <li><a class="suggest_for_purchase 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 %]
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 %]
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="d-none"></div>
52         </li>
53     [% END %]
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                     <div class="dropdown-menu dropdown-menu-right" aria-labelledby="format">
62                         [% FOREACH option IN export_options %]
63                             [% IF option == 'dc' %]
64                                 <a class="dropdown-item" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a>
65                             [% ELSE %]
66                                 <a class="dropdown-item" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblio.biblionumber | html %]&amp;format=[% option | html %]">
67                                     [% SWITCH option %]
68                                         [% CASE 'bibtex' %]BIBTEX
69                                         [% CASE 'endnote' %]EndNote
70                                         [% CASE 'marcxml' %]MARCXML
71                                         [% CASE 'marc8' %]MARC (non-Unicode/MARC-8)
72                                         [% CASE 'utf8' %]MARC (Unicode/UTF-8)
73                                         [% CASE 'marcstd' %]MARC (Unicode/UTF-8, Standard)
74                                         [% CASE 'mods' %]MODS (XML)
75                                         [% CASE 'ris' %]RIS
76                                         [% CASE 'isbd' %]ISBD
77                                     [% END %]
78                                 </a>
79                             [% END %]
80                         [% END %]
81                     </div> <!-- /.dropdown-menu -->
82                 </div> <!-- /.dropdown -->
83             </div> <!-- /#export -->
84         </li>
85     [% END %]
87     [% IF ( OPACSearchForTitleIn ) %]
88         <li>
89             <div id="moresearches_menu">
90                 <div class="dropdown">
91                     <a id="furthersearches" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
92                         <i class="fa fa-fw fa-search" aria-hidden="true"></i> More searches
93                     </a>
94                     <div class="dropdown-menu dropdown-menu-right" aria-labelledby="furthersearches">
95                         <div class="dropdown-header">Search for this title in:</div>
96                         [% OPACSearchForTitleIn | $raw %]
97                     </div>
98                 </div>
99             </div>
100         </li>
101     [% END %]
102 </ul>
104 <!-- Dublin Core Modal Form -->
105 <div class="modal" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
106     <div class="modal-dialog">
107         <div class="modal-content">
108             <div class="modal-header">
109                 <h3 class="modal-title" id="exportModalLabel">Exporting to Dublin Core...</h3>
110                 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
111             </div>
112             <form method="get" action="/cgi-bin/koha/opac-export.pl">
113                 <div class="modal-body">
114                     <fieldset id="dc_fieldset">
115                         <input id="input-simple" type="radio" name="format" value="rdfdc">
116                         <label class="label_dc" for="input-simple">Simple DC-RDF</label>
117                         <br>
118                         <input id="input-oai" type="radio" name="format" value="oaidc" checked>
119                         <label class="label_dc" for="input-oai">OAI-DC</label>
120                         <br>
121                         <input id="input-srw" type="radio" name="format" value="srwdc">
122                         <label class="label_dc" for="input-srw">SRW-DC</label>
123                         <br>
124                         <input type="hidden" name="op" value="export">
125                         <input type="hidden" name="bib" value="[% biblio.biblionumber | html %]">
126                     </fieldset>
127                 </div>
128                 <div class="modal-footer">
129                     <button type="submit" class="btn btn-primary">Export</button>
130                     <button class="btn btn-link btn-lg" data-dismiss="modal" aria-hidden="true">Cancel</button>
131                 </div>
132             </form>
133         </div> <!-- /.modal-content -->
134     </div> <!-- /.modal-dialog -->
135 </div> <!-- /.modal -->