[Koha-patches] [PATCH] Adding table sorter to holding table on detail.pl
Owen Leonard
oleonard at myacpl.org
Wed Oct 15 16:04:45 CEST 2008
---
.../prog/en/modules/catalogue/detail.tmpl | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
index 97f3185..86273fc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
@@ -1,6 +1,6 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Catalog › Details for <!-- TMPL_VAR NAME="title" escape="html" --></title>
-<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --><script type="text/JavaScript" language="JavaScript">
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --><script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script><script type="text/JavaScript" language="JavaScript">
//<![CDATA[
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
function verify_images() {
@@ -31,6 +31,10 @@ function verify_images() {
}
$(document).ready(function() {
$('#bibliodetails > ul').tabs();
+ $("#holdingst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
+ dateFormat: 'uk',<!-- /TMPL_IF -->
+ sortList: [[1,0]]
+ });
});
<!-- TMPL_IF NAME="AmazonContent" -->$(window).load(function() {
verify_images();
@@ -155,8 +159,8 @@ function verify_images() {
<div id="holdings">
<!-- TMPL_IF name="count" -->
- <table>
- <tr>
+ <table id="holdingst">
+ <thead> <tr>
<!-- TMPL_IF NAME="item-level_itypes" --><th>Item type</th><!-- /TMPL_IF -->
<th>Location</th>
<!-- TMPL_IF NAME="itemdata_ccode" --><th>Collection</th><!-- /TMPL_IF -->
@@ -166,8 +170,8 @@ function verify_images() {
<th>Barcode</th>
<!-- TMPL_IF NAME="volinfo" --><th>Publication Details</th><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="itemdata_copynumber" --><th>Copy No.</th><!-- /TMPL_IF -->
- </tr>
- <!-- TMPL_LOOP NAME="itemloop" -->
+ </tr></thead>
+ <tbody><!-- TMPL_LOOP NAME="itemloop" -->
<tr>
<!-- TMPL_IF NAME="item-level_itypes" --><td class="itype"><!-- TMPL_IF NAME="noItemTypeImages" --><!-- TMPL_VAR NAME="description" --><!-- TMPL_ELSE --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --></td><!-- /TMPL_IF -->
<td class="location"><!-- TMPL_UNLESS NAME="singlebranchmode" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="location" --> </td>
@@ -264,6 +268,7 @@ function verify_images() {
</tr>
<!-- /TMPL_LOOP -->
+ </tbody>
</table>
<!-- TMPL_IF NAME="debug_display" -->
<br /><br />
--
1.5.5.GIT
More information about the Koha-patches
mailing list