Bugzilla – Attachment 25365 Details for
Bug 8992
Add an interfacing with the idref webservice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8992: Interfacing with the Idref webservice - bootstrap theme
Bug-8992-Interfacing-with-the-Idref-webservice---b.patch (text/plain), 3.95 KB, created by
Jonathan Druart
on 2014-02-18 09:51:29 UTC
(
hide
)
Description:
Bug 8992: Interfacing with the Idref webservice - bootstrap theme
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-02-18 09:51:29 UTC
Size:
3.95 KB
patch
obsolete
>From 814b4e5dfa075869fb9fa70f32167184bbd6cf0b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 18 Feb 2014 10:45:56 +0100 >Subject: [PATCH] Bug 8992: Interfacing with the Idref webservice - bootstrap > theme > >This patch is the changes for the bootstrap theme at the OPAC. >The test plan is the same as for the first patch. >--- > .../opac-tmpl/bootstrap/en/includes/greybox.inc | 7 ++ > .../opac-tmpl/bootstrap/en/modules/opac-idref.tt | 68 ++++++++++++++++++++ > 2 files changed, 75 insertions(+) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc >new file mode 100644 >index 0000000..92ef62d >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc >@@ -0,0 +1,7 @@ >+<script type="text/javascript"> >+ var GB_ROOT_DIR = "[% interface %]/[% theme %]/lib/greybox/"; >+</script> >+<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/AJS.js"></script> >+<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/AJS_fx.js"></script> >+<script type="text/javascript" src="[% interface %]/[% theme %]/lib/greybox/gb_scripts.js"></script> >+<link href="[% interface %]/[% theme %]/lib/greybox/gb_styles.css" rel="stylesheet" type="text/css" /> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt >new file mode 100644 >index 0000000..05255db >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt >@@ -0,0 +1,68 @@ >+[% INCLUDE 'doc-head-open.inc' %] >+[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your search IDREF for ppn [% unimarc3 %] >+[% INCLUDE 'doc-head-close.inc' %] >+[% BLOCK cssinclude %] >+ <style type="text/css">ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a { padding:0.6em 1em; }</style> >+[% END %] >+ >+</head> >+<body> >+<div id="idref"> >+ [% IF error %] >+ This ppn is not found on the idref service. >+ [% ELSE %] >+ [% FOREACH role IN content %] >+ <div> >+ <h2 class="role" title="Click to expand this role">[% role.role_name %] ([% role.count %])</h2> >+ <div class="docs"> >+ <table> >+ <thead> >+ <th>Citation</th> >+ <th>Koha</th> >+ <th>Sudoc</th> >+ </thead> >+ <tbody> >+ [% FOREACH doc IN role.docs %] >+ <tr> >+ <td>[% doc.citation %]</td> >+ <td><a href="/cgi-bin/koha/opac-search.pl?q=kw,phr=[% doc.ppn %]" target="_blank">Koha</a></td> >+ <td><a href="http://www.sudoc.fr/[% doc.ppn %]" target="_blank">Sudoc</a></td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ </div> >+ </div> >+ [% END %] >+ [% END %] >+</div> >+[% BLOCK jsinclude %] >+[% INCLUDE 'datatables.inc' %] >+<script type="text/javascript"> >+ $(document).ready(function (){ >+ $("table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "oLanguage": { >+ "sSearch": _("Search all columns:") >+ }, >+ 'bFilter': false, >+ 'sPaginationType': 'four_button', >+ 'aoColumnDefs': [ >+ { 'aTargets': [-1, -2], 'bSortable': false } >+ ], >+ 'aLengthMenu': [[10, 25, 50, 100, 250, 500, 1000, -1], [10, 25, 50, 100, 250, 500, 1000, _("All")]], >+ })); >+ >+ $(".role").click(function(){ >+ var docs_node = $(this).parent().find("div.docs"); >+ if ( $(docs_node).is(":visible") ) { >+ $(".docs").hide(); >+ } else { >+ $(".docs").hide(); >+ docs_node.show(); >+ } >+ }); >+ $(".docs").hide(); >+ }); >+</script> >+[% END %] >+[% INCLUDE 'opac-bottom.inc' %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8992
:
13134
|
13142
|
21119
|
21182
|
21641
|
25358
|
25359
|
25365
|
25399
|
26998
|
26999
|
27000
|
27460
|
27462
|
27463
|
27464
|
29012
|
29165
|
29166
|
29167
|
29168
|
29169
|
30920
|
32123
|
35012
|
35013
|
35014
|
35015
|
35016
|
35017
|
35020
|
35022
|
35023
|
35024
|
35025
|
35026
|
35027
|
38639
|
39564
|
39565