Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt
Jonathan Druart 8a2139e495 Bug 8100: DataTables integration in acquisition module [8]
neworderbiblio.tt

http://bugs.koha-community.org/show_bug.cgi?id=8100

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixed bug number.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-06-20 19:26:52 +02:00

105 lines
3.5 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Search existing records</title>
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
[% INCLUDE 'greybox.inc' %]
[% 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> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Search existing records</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Search existing records</h1>
[% IF ( total ) %]
<b>[% total %] results found </b>
<div class="pages">[% pagination_bar %]</div>
[% ELSE %]
<h3> No results found</h3>
<p>
No results match your search for <span style="font-weight: bold;">&ldquo;[% query %]&rdquo;</span> in [% LibraryName %]
</p>
[% END %]
[% IF ( query_error ) %]
<div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
[% END %]
[% IF ( total ) %]
<div class="searchresults">
<table id="resultst">
<thead>
<tr>
<th>Summary</th>
<th>Publisher</th>
<th>Copyright</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
[% 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>
</td>
<td>
[% biblio.publishercode %]
[% IF ( biblio.place ) %] ; [% biblio.place %][% END %]
</td>
<td>
[% biblio.copyrightdate %]
</td>
<td>
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">View MARC</a>
</td>
<td>
<a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
Order
</a>
</td>
</tr>
[% END %]
</tbody>
</table>
</div>
[% END %]
[% INCLUDE 'acquisitions-add-to-basket.inc' %]
</div>
</div>
<div class="yui-b">
[% INCLUDE 'acquisitions-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]