Bug 31333: Add ability to make purchase suggestions by borrower type
[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( 'OPACHoldRequests' ) == 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     [% IF Koha.Preference('UseRecalls') %]
15         <li><a class="recall btn btn-link btn-lg" href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-bookmark-o" aria-hidden="true"></i>
16         Place recall</a></li>
17     [% END %]
18
19     <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>
20
21     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
22         [% IF artreqpossible %]
23             <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>
24         [% END %]
25     [% END %]
26
27     [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
28         [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
29             <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>
30         [% END %]
31     [% END %]
32
33     [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
34         [% IF ( incart ) %]
35             <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>
36         [% ELSE %]
37             <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>
38         [% END %]
39     [% END %]
40
41     [% IF ( suggestion ) %]
42         <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>
43     [% END %]
44
45     [% IF ( OpacHighlightedWords && query_desc ) %]
46     <li>
47         <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>
48         <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>
49     </li>
50     [% END %]
51
52
53     [% IF ( Koha.Preference('OPACDetailQRCode' ) ) %]
54         <li>
55             <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>
56             <div id="qrcode" class="d-none"></div>
57         </li>
58     [% END %]
59
60     [% SET export_options = Koha.Preference('OpacExportOptions').split(',') %]
61     [% IF export_options.size %]
62         <li>
63             <div id="export">
64                 <div class="dropdown">
65                     <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>
66                     <div class="dropdown-menu dropdown-menu-right" aria-labelledby="format">
67                         [% FOREACH option IN export_options %]
68                             [% IF option == 'dc' %]
69                                 <a class="dropdown-item" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a>
70                             [% ELSE %]
71                                 <a class="dropdown-item" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblio.biblionumber | html %]&amp;format=[% option | html %]">
72                                     [% SWITCH option %]
73                                         [% CASE 'bibtex' %]<span>BIBTEX</span>
74                                         [% CASE 'endnote' %]<span>EndNote</span>
75                                         [% CASE 'marcxml' %]<span>MARCXML</span>
76                                         [% CASE 'marc8' %]<span>MARC (non-Unicode/MARC-8)</span>
77                                         [% CASE 'utf8' %]<span>MARC (Unicode/UTF-8)</span>
78                                         [% CASE 'marcstd' %]<span>MARC (Unicode/UTF-8, Standard)</span>
79                                         [% CASE 'mods' %]<span>MODS (XML)</span>
80                                         [% CASE 'ris' %]<span>RIS</span>
81                                         [% CASE 'isbd' %]<span>ISBD</span>
82                                     [% END %]
83                                 </a>
84                             [% END %]
85                         [% END %]
86                     </div> <!-- /.dropdown-menu -->
87                 </div> <!-- /.dropdown -->
88             </div> <!-- /#export -->
89         </li>
90     [% END %]
91
92     [% IF ( OPACSearchForTitleIn ) %]
93         <li>
94             <div id="moresearches_menu">
95                 <div class="dropdown">
96                     <a id="furthersearches" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
97                         <i class="fa fa-fw fa-search" aria-hidden="true"></i> More searches
98                     </a>
99                     <div class="dropdown-menu dropdown-menu-right" aria-labelledby="furthersearches">
100                         <div class="dropdown-header">Search for this title in:</div>
101                         [% OPACSearchForTitleIn | $raw %]
102                     </div>
103                 </div>
104             </div>
105         </li>
106     [% END %]
107 </ul>
108
109 <!-- Dublin Core Modal Form -->
110 <div class="modal" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
111     <div class="modal-dialog">
112         <div class="modal-content">
113             <div class="modal-header">
114                 <h3 class="modal-title" id="exportModalLabel">Exporting to Dublin Core...</h3>
115                 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
116             </div>
117             <form method="get" action="/cgi-bin/koha/opac-export.pl">
118                 <div class="modal-body">
119                     <fieldset id="dc_fieldset">
120                         <input id="input-simple" type="radio" name="format" value="rdfdc">
121                         <label class="label_dc" for="input-simple">Simple DC-RDF</label>
122                         <br>
123                         <input id="input-oai" type="radio" name="format" value="oaidc" checked>
124                         <label class="label_dc" for="input-oai">OAI-DC</label>
125                         <br>
126                         <input id="input-srw" type="radio" name="format" value="srwdc">
127                         <label class="label_dc" for="input-srw">SRW-DC</label>
128                         <br>
129                         <input type="hidden" name="op" value="export">
130                         <input type="hidden" name="bib" value="[% biblio.biblionumber | html %]">
131                     </fieldset>
132                 </div>
133                 <div class="modal-footer">
134                     <button type="submit" class="btn btn-primary">Export</button>
135                     <button class="btn btn-link btn-lg" data-dismiss="modal" aria-hidden="true">Cancel</button>
136                 </div>
137             </form>
138         </div> <!-- /.modal-content -->
139     </div> <!-- /.modal-dialog -->
140 </div> <!-- /.modal -->