Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-idref.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your search IDREF for ppn [% unimarc3 | html %]</title>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %]
6   <style>
7     ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }
8     #idref h2.role {
9         background-color: #DDDEEE;
10         cursor: pointer;
11     }
12     #idref table {
13         margin: 0;
14     }
15   </style>
16 [% END %]
17
18 </head>
19 [% INCLUDE 'bodytag.inc' bodyid='idref' bodyclass='scrollto' %]
20 <div class="main">
21   [% IF error %]
22     This ppn is not found on the idref service.
23   [% ELSE %]
24     [% FOREACH role IN content %]
25       <div>
26         <h2 class="role" title="Click to expand this role">[% role.role_name | html %] ([% role.count | html %])</h2>
27           <div class="docs">
28             <table>
29               <thead>
30                 <tr>
31                   <th>Citation</th>
32                   <th>Koha</th>
33                   <th>Sudoc</th>
34                 </tr>
35               </thead>
36               <tbody>
37                 [% FOREACH doc IN role.docs %]
38                   <tr>
39                     <td>[% doc.citation | html %]</td>
40                     <td><a href="/cgi-bin/koha/opac-search.pl?q=ident:[% doc.ppn | html %]" target="_blank">Koha</a></td>
41                     <td><a href="http://www.sudoc.fr/[% doc.ppn | html %]" target="_blank" rel="noreferrer">Sudoc</a></td>
42                   </tr>
43                 [% END %]
44               </tbody>
45             </table>
46           </div>
47       </div>
48     [% END %]
49   [% END %]
50 </div>
51 [% BLOCK jsinclude %]
52 [% INCLUDE 'datatables.inc' %]
53 <script>
54   $(document).ready(function (){
55       $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
56           'filter': false,
57           'columnDefs': [
58               { 'targets': [-1, -2], 'sortable': false }
59           ],
60       }));
61
62       $(".role").click(function(){
63           var docs_node = $(this).parent().find("div.docs");
64           if ( $(docs_node).is(":visible") ) {
65               $(".docs").hide();
66           } else {
67               $(".docs").hide();
68               docs_node.show();
69           }
70       });
71       $(".docs").hide();
72   });
73 </script>
74 [% END %]
75
76 [% INCLUDE 'opac-bottom.inc' is_popup=1%]