View | Details | Raw Unified | Return to bug 8992
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc (+7 lines)
Line 0 Link Here
1
<script type="text/javascript">
2
    var GB_ROOT_DIR = "[% interface %]/[% theme %]/lib/greybox/";
3
</script>
4
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/AJS.js"></script>
5
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/AJS_fx.js"></script>
6
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/gb_scripts.js"></script>
7
<link href="[% interface %]/[% theme %]/lib/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt (-1 / +68 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your search IDREF for ppn [% unimarc3 %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% BLOCK cssinclude %]
5
  <style type="text/css">ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }</style>
6
[% END %]
7
8
</head>
9
<body>
10
<div id="idref">
11
  [% IF error %]
12
    This ppn is not found on the idref service.
13
  [% ELSE %]
14
    [% FOREACH role IN content %]
15
      <div>
16
        <h2 class="role" title="Click to expand this role">[% role.role_name %] ([% role.count %])</h2>
17
          <div class="docs">
18
            <table>
19
              <thead>
20
                <th>Citation</th>
21
                <th>Koha</th>
22
                <th>Sudoc</th>
23
              </thead>
24
              <tbody>
25
                [% FOREACH doc IN role.docs %]
26
                  <tr>
27
                    <td>[% doc.citation %]</td>
28
                    <td><a href="/cgi-bin/koha/opac-search.pl?q=kw,phr=[% doc.ppn %]" target="_blank">Koha</a></td>
29
                    <td><a href="http://www.sudoc.fr/[% doc.ppn %]" target="_blank">Sudoc</a></td>
30
                  </tr>
31
                [% END %]
32
              </tbody>
33
            </table>
34
          </div>
35
      </div>
36
    [% END %]
37
  [% END %]
38
</div>
39
[% BLOCK jsinclude %]
40
[% INCLUDE 'datatables.inc' %]
41
<script type="text/javascript">
42
  $(document).ready(function (){
43
      $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
44
          "oLanguage": {
45
              "sSearch": _("Search all columns:")
46
          },
47
          'bFilter': false,
48
          'sPaginationType': 'four_button',
49
          'aoColumnDefs': [
50
              { 'aTargets': [-1, -2], 'bSortable': false }
51
          ],
52
          'aLengthMenu': [[10, 25, 50, 100, 250, 500, 1000, -1], [10, 25, 50, 100, 250, 500, 1000, _("All")]],
53
      }));
54
55
      $(".role").click(function(){
56
          var docs_node = $(this).parent().find("div.docs");
57
          if ( $(docs_node).is(":visible") ) {
58
              $(".docs").hide();
59
          } else {
60
              $(".docs").hide();
61
              docs_node.show();
62
          }
63
      });
64
      $(".docs").hide();
65
  });
66
</script>
67
[% END %]
68
[% INCLUDE 'opac-bottom.inc' %]

Return to bug 8992