Bug 10265: Keep punctuation for 8xx series added entry fields (MARC21)
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-idref.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Your search IDREF for ppn [% unimarc3 | html %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</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         <h1 class="role" title="Click to expand this role">[% role.role_name | html %] ([% role.count | html %])</h1>
27           <div class="docs">
28             <table>
29                 <caption class="sr-only">[% role.role_name | html %]</caption>
30               <thead>
31                 <tr>
32                   <th>Citation</th>
33                   <th>Koha</th>
34                   <th>Sudoc</th>
35                 </tr>
36               </thead>
37               <tbody>
38                 [% FOREACH doc IN role.docs %]
39                   <tr>
40                     <td>[% doc.citation | html %]</td>
41                     <td><a href="/cgi-bin/koha/opac-search.pl?q=ident:[% doc.ppn | uri %]" target="_blank">Koha</a></td>
42                     <td><a href="http://www.sudoc.fr/[% doc.ppn | uri %]" target="_blank" rel="noreferrer">Sudoc</a></td>
43                   </tr>
44                 [% END %]
45               </tbody>
46             </table>
47           </div>
48       </div>
49     [% END %]
50   [% END %]
51 </div>
52 [% BLOCK jsinclude %]
53 [% INCLUDE 'datatables.inc' %]
54 <script>
55   $(document).ready(function (){
56       $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
57           'filter': false,
58           'columnDefs': [
59               { 'targets': [-1, -2], 'sortable': false }
60           ],
61       }));
62
63       $(".role").click(function(){
64           var docs_node = $(this).parent().find("div.docs");
65           if ( $(docs_node).is(":visible") ) {
66               $(".docs").hide();
67           } else {
68               $(".docs").hide();
69               docs_node.show();
70           }
71       });
72       $(".docs").hide();
73   });
74 </script>
75 [% END %]
76
77 [% INCLUDE 'opac-bottom.inc' is_popup=1%]