[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 4b88afd34488a8f659dde45b57103a2d61316c08
Evergreen Git
git at git.evergreen-ils.org
Wed Aug 27 00:43:02 EDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 4b88afd34488a8f659dde45b57103a2d61316c08 (commit)
from ce45d4cf4466af277b3a681fb0964c430288694b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4b88afd34488a8f659dde45b57103a2d61316c08
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Fri May 23 15:40:23 2014 -0400
LP#1322341: Count part holds on records
Also fix a small mistake in metarecord matching
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Kathy Lussier <klussier at masslnc.org>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index 0939086..8b27917 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -4081,15 +4081,15 @@ __PACKAGE__->register_method(
}
);
-# XXX Need to add type I (and, soon, type P) holds to these counts
+# XXX Need to add type I holds to these counts
sub rec_hold_count {
my($self, $conn, $target_id, $args) = @_;
$args ||= {};
my $mmr_join = {
mmrsm => {
- field => 'id',
- fkey => 'source',
+ field => 'source',
+ fkey => 'id',
filter => {metarecord => $target_id}
}
};
@@ -4147,6 +4147,17 @@ sub rec_hold_count {
},
{
'-and' => {
+ hold_type => 'P',
+ target => {
+ in => {
+ select => {bmp => ['id']},
+ from => {bmp => $bre_join}
+ }
+ }
+ }
+ },
+ {
+ '-and' => {
hold_type => 'T',
target => $target_id
}
@@ -4157,7 +4168,7 @@ sub rec_hold_count {
};
if($self->api_name =~ /mmr/) {
- $query->{where}->{'+ahr'}->{'-or'}->[2] = {
+ $query->{where}->{'+ahr'}->{'-or'}->[3] = {
'-and' => {
hold_type => 'T',
target => {
@@ -4169,7 +4180,7 @@ sub rec_hold_count {
}
};
- $query->{where}->{'+ahr'}->{'-or'}->[3] = {
+ $query->{where}->{'+ahr'}->{'-or'}->[4] = {
'-and' => {
hold_type => 'M',
target => $target_id
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/lib/OpenILS/Application/Circ/Holds.pm | 21 +++++++++++++++----
1 files changed, 16 insertions(+), 5 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list