[open-ils-commits] r17606 - trunk/Open-ILS/src/perlmods/OpenILS/Application (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Sep 11 15:39:29 EDT 2010
Author: miker
Date: 2010-09-11 15:39:24 -0400 (Sat, 11 Sep 2010)
New Revision: 17606
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm
Log:
add "type" (siss.holding_type) and "status" (sitem.status) filters; renaming the method to be explicit about the fact that it is for issuances with received (sitem.date_received IS NOT NULL) items /only/
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm 2010-09-11 18:35:46 UTC (rev 17605)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm 2010-09-11 19:39:24 UTC (rev 17606)
@@ -385,10 +385,12 @@
}
},
where => {
+ $$args{type} ? ( 'holding_type' => $$args{type} ) : (),
'+ssub' => { record_entry => $bib },
'+sitem' => {
# XXX should we also take specific item statuses into account?
- date_received => { '!=' => undef }
+ date_received => { '!=' => undef },
+ $$args{status} ? ( 'status' => $$args{status} ) : ()
},
$$args{ou} ? ( '+sdist' => {
holding_lib => {
@@ -412,7 +414,7 @@
}
__PACKAGE__->register_method(
method => 'received_siss_by_bib',
- api_name => 'open-ils.serial.siss.retrieve.by_bib',
+ api_name => 'open-ils.serial.received_siss.retrieve.by_bib',
api_level => 1,
argc => 1,
stream => 1,
@@ -431,6 +433,8 @@
offest := Number of issuance to skip before returning results. Useful for paging.
orgid := OU id used to scope retrieval, based on distribution.holding_lib
depth := OU depth used to range the scope of orgid
+ type := Holding type filter. Valid values are "basic", "supplement" and "index". Can be a scalar (one) or arrayref (one or more).
+ status := Item status filter. Valid values are "Bindery", "Bound", "Claimed", "Discarded", "Expected", "Not Held", "Not Published" and "Received". Can be a scalar (one) or arrayref (one or more).
/
}
]
More information about the open-ils-commits
mailing list