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