+[% USE raw %]
+[% USE Asset %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Acquisitions › Search existing records</title>
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
-[% INCLUDE 'greybox.inc' %]
+[% Asset.css("css/datatables.css") | $raw %]
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
-<script type="text/javascript">
-//<![CDATA[
- $(document).ready(function() {
- var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
- 'bPaginate': false,
- 'bFilter': false,
- 'bInfo': false,
- 'bSort': false,
- } ) );
- });
- //]]>
-</script>
</head>
+
<body id="acq_neworderbiblio" class="acq">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?=[% basketno %]">Basket [% basketno %]</a> › Search existing records</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> › Search existing records</div>
<div id="doc3" class="yui-t2">
[% IF ( total ) %]
-<b>[% total %] results found </b>
-<div class="pages">[% pagination_bar %]</div>
+<b>[% total | html %] results found </b>
+<div class="pages">[% pagination_bar | $raw %]</div>
[% ELSE %]
<h3> No results found</h3>
<p>
- No results match your search for <span style="font-weight: bold;">“[% query %]”</span> in [% LibraryName %]
+ No results match your search for <span style="font-weight: bold;">“[% query | html %]”</span> in [% LibraryName | html %]
</p>
[% END %]
[% IF ( query_error ) %]
- <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
+ <div class="dialog alert"><p><strong>Error:</strong> [% query_error | html %]</p></div>
[% END %]
[% IF ( total ) %]
[% FOREACH biblio IN resultsloop %]
<tr>
<td>
- <p><span class="title">[% biblio.title |html %]</span>
- [% IF ( biblio.author ) %] by <span class="author">[% biblio.author %]</span>,[% END %]</p>
- <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
- [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
- [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
- [% IF ( biblio.size ) %] ; [% biblio.size %][% END %]
+ <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | html %]">[% biblio.title | html %]</a></span>
+ [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle.subfield | html %]</span>[% END %]
+ [% IF ( biblio.author ) %] by <span class="author">[% biblio.author | html %]</span>,[% END %]</p>
+ <p>[% IF ( biblio.isbn ) %] [% biblio.isbn | html %][% END %]
+ [% IF ( biblio.pages ) %] - [% biblio.pages | html %][% END %]
+ [% IF ( biblio.notes ) %] : [% biblio.notes | html %][% END %]
+ [% IF ( biblio.size ) %] ; [% biblio.size | html %][% END %]
</p>
</td>
<td>
- [% biblio.publishercode %]
- [% IF ( biblio.place ) %] ; [% biblio.place %][% END %]
+ [% biblio.publishercode | html %]
+ [% IF ( biblio.place ) %] ; [% biblio.place | html %][% END %]
</td>
<td>
- [% biblio.copyrightdate %]
+ [% biblio.copyrightdate | html %]
</td>
<td>
- <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">View MARC</a>
+ <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber | html %]&viewas=html" class="previewMARC">View MARC</a>
</td>
<td>
- <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&biblionumber=[% biblio.biblionumber %]" title="Order this one">
+ <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]&biblionumber=[% biblio.biblionumber | html %]" title="Order this one">
Order
</a>
</td>
[% END %]
</tbody>
</table>
+ <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
+ <h3 id="marcPreviewLabel">MARC preview</h3>
+ </div>
+ <div class="modal-body">
+ <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
+ </div>
+ <div class="modal-footer">
+ <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
[% END %]
[% INCLUDE 'acquisitions-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ [% Asset.js("js/acquisitions-menu.js") | $raw %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript">
+ $(document).ready(function() {
+ var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
+ 'sDom': 't',
+ 'bPaginate': false,
+ 'bFilter': false,
+ 'bInfo': false,
+ 'bSort': false,
+ } ) );
+ $(".previewMARC").on("click", function(e){
+ e.preventDefault();
+ var ltitle = $(this).text();
+ var page = $(this).attr("href");
+ $("#marcPreviewLabel").text(ltitle);
+ $("#marcPreview .modal-body").load(page + " table");
+ $('#marcPreview').modal({show:true});
+ });
+ $("#marcPreview").on("hidden", function(){
+ $("#marcPreviewLabel").html("");
+ $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
+ });
+ });
+ </script>
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]