[open-ils-commits] r17257 - trunk/Open-ILS/src/perlmods/OpenILS/Application (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 18 23:35:56 EDT 2010
Author: dbs
Date: 2010-08-18 23:35:53 -0400 (Wed, 18 Aug 2010)
New Revision: 17257
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
Log:
Don't return deleted authority records in a browse list
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2010-08-19 01:26:33 UTC (rev 17256)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2010-08-19 03:35:53 UTC (rev 17257)
@@ -951,8 +951,11 @@
my $before = $_storage->request(
"open-ils.cstore.json_query.atomic",
{ select => { afr => [qw/record value/] },
- from => 'afr',
- where => { tag => $tag, subfield => $subfield, value => { '<' => lc($value) } },
+ from => { 'are', 'afr' },
+ where => {
+ '+afr' => { tag => $tag, subfield => $subfield, value => { '<' => lc($value) } },
+ '+are' => { 'deleted' => 'f' }
+ },
order_by => { afr => { value => 'desc' } },
limit => $before_limit,
offset => abs($page) * $page_size - $before_offset,
@@ -965,8 +968,11 @@
my $after = $_storage->request(
"open-ils.cstore.json_query.atomic",
{ select => { afr => [qw/record value/] },
- from => 'afr',
- where => { tag => $tag, subfield => $subfield, value => { '>=' => lc($value) } },
+ from => { 'are', 'afr' },
+ where => {
+ '+afr' => { tag => $tag, subfield => $subfield, value => { '>' => lc($value) } },
+ '+are' => { 'deleted' => 'f' }
+ },
order_by => { afr => { value => 'asc' } },
limit => $after_limit,
offset => abs($page) * $page_size - $after_offset,
More information about the open-ils-commits
mailing list