Bug 5345: DataTables integration in acquisition module [16]
z3950_search.tt Signed-off-by: Owen Leonard <oleonard@myacpl.org>
This commit is contained in:
parent
468995e4b3
commit
53b5d0449b
1 changed files with 15 additions and 15 deletions
|
@ -1,20 +1,24 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title>
|
||||
[% INCLUDE 'greybox.inc' %]
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
||||
[% 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" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$.tablesorter.addParser({
|
||||
id: 'articles',
|
||||
is: function(s) {return false; },
|
||||
format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
|
||||
type: 'text'
|
||||
});
|
||||
$(document).ready(function(){
|
||||
|
||||
var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
||||
],
|
||||
"sPaginationType": "four_button"
|
||||
} ) );
|
||||
|
||||
$(document).ready(function(){
|
||||
$.tablesorter.defaults.widgets = ['zebra'];
|
||||
$("#CheckAll").click(function(){
|
||||
$(".checkboxed").checkCheckboxes();
|
||||
return false;
|
||||
|
@ -29,10 +33,6 @@ $.tablesorter.addParser({
|
|||
$("tr").removeClass("selected");
|
||||
});
|
||||
|
||||
$("#resultst").tablesorter({
|
||||
sortList: [[1,0]],
|
||||
headers: { 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
|
||||
});
|
||||
/* Inline edit/delete links */
|
||||
$("td").click(function(event){
|
||||
var $tgt = $(event.target);
|
||||
|
@ -136,7 +136,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
|
|||
<th>Author</th>
|
||||
<th>ISBN</th>
|
||||
<th>LCCN</th>
|
||||
<th colspan="2">Preview</th>
|
||||
<th>Preview</th>
|
||||
<th> </th>
|
||||
</tr></thead>
|
||||
<tbody>[% FOREACH breeding_loo IN breeding_loop %]
|
||||
|
@ -148,7 +148,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
|
|||
<td>[% breeding_loo.author %]</td>
|
||||
<td>[% breeding_loo.isbn %]</td>
|
||||
<td>[% breeding_loo.lccn %]</td>
|
||||
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a></td><td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
|
||||
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
|
||||
<td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a></td>
|
||||
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue