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