[open-ils-commits] r17553 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 9 17:09:31 EDT 2010
Author: erickson
Date: 2010-09-09 17:09:25 -0400 (Thu, 09 Sep 2010)
New Revision: 17553
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm
Log:
added alternate issuance flesh call that only fleshes the subscription; used for public/opac display
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm 2010-09-09 20:38:12 UTC (rev 17552)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm 2010-09-09 21:09:25 UTC (rev 17553)
@@ -320,7 +320,36 @@
});
}
+__PACKAGE__->register_method(
+ method => "pub_fleshed_serial_issuance_retrieve_batch",
+ api_name => "open-ils.serial.issuance.pub_fleshed.batch.retrieve",
+ signature => {
+ desc => q/
+ Public (i.e. OPAC) call for getting at the sub and
+ ultimately the record entry from an issuance
+ /,
+ params => [{name => 'ids', desc => 'Array of IDs', type => 'array'}],
+ return => {
+ desc => q/
+ issuance objects, fleshed with subscriptions
+ /,
+ class => 'siss'
+ }
+ }
+);
+sub pub_fleshed_serial_issuance_retrieve_batch {
+ my( $self, $client, $ids ) = @_;
+ return [] unless $ids and @$ids;
+ return new_editor()->search_serial_issuance([
+ { id => $ids },
+ {
+ flesh => 1,
+ flesh_fields => {siss => [ qw/subscription/ ]}
+ }
+ ]);
+}
+
##########################################################################
# unit methods
#
More information about the open-ils-commits
mailing list