[Koha-patches] [PATCH] Bug 3294 Use cn_sort field to sort inventory list output
Jane Wagner
jwagner at ptfs.com
Thu Jan 21 21:33:23 CET 2010
The inventory tool was using itemcallnumber, title to sort; modified
Items.pm to use cn_sort, itemcallnumber, title so that call numbers
sorted on the padded sort field instead.
---
C4/Items.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Items.pm b/C4/Items.pm
index 3f550ef..8f3d734 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -1065,7 +1065,7 @@ END_SQL
$query .= 'WHERE ';
$query .= join ' AND ', @where_strings;
}
- $query .= ' ORDER BY itemcallnumber, title';
+ $query .= ' ORDER BY items.cn_sort, itemcallnumber, title';
my $sth = $dbh->prepare($query);
$sth->execute( @bind_params );
--
1.5.6.5
More information about the Koha-patches
mailing list