Bug 29609: Centralized code to build the link to a biblio detail page
[srvgit] / koha-tmpl / opac-tmpl / bootstrap / en / includes / html_helpers.inc
1 [% BLOCK options_for_libraries %]
2     [% FOREACH l IN libraries %]
3         [% IF l.selected %]
4             <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
5         [% ELSE %]
6             <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
7         [% END%]
8     [% END %]
9 [% END %]
10
11 [% BLOCK koha_news_block %]
12     [% IF ( news.content && news.content.count > 0 ) %]
13         <div id="[% news.location | html %]">
14             [% FOREACH n IN news.content %]
15                 <div class="[% n.lang | html %]_item">
16                     [% IF ( n.title && news.blocktitle ) %]
17                         <h4 class="[% n.lang | html %]_header">[% n.title | html %]</h4>
18                     [% END %]
19                     <div class="[% n.lang | html %]_body">[% n.content | $raw %]</div>
20                 </div>
21             [% END %]
22         </div>
23     [% END %]
24 [% END %]
25
26 [% BLOCK biblio_a_href -%]
27     [%- IF Koha.Preference('BiblioDefaultView') == 'marc' -%]
28         [%- SET this_biblio_href = "/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=" -%]
29     [%- ELSIF Koha.Preference('BiblioDefaultView') == 'isbd' -%]
30         [%- SET this_biblio_href = "/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=" -%]
31     [%- ELSE -%]
32         [%- SET this_biblio_href = "/cgi-bin/koha/opac-detail.pl?biblionumber=" -%]
33     [%- END -%]
34     [%- this_biblio_href | url %][% biblionumber | url -%]
35 [%- END %]