From: erickson Date: Mon, 28 Aug 2006 19:33:58 +0000 (+0000) Subject: added custom copy flesh method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7cfc2dcf3d652faab4f0d5595b9bb8c6794a5ded;p=evergreen%2Fpines.git added custom copy flesh method git-svn-id: svn://svn.open-ils.org/ILS/trunk@5739 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 1db0210f8d..57544be80a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -313,6 +313,30 @@ sub fleshed_copy_retrieve2 { } +__PACKAGE__->register_method( + method => 'flesh_copy_custom', + api_name => 'open-ils.search.asset.copy.fleshed.custom' +); + +sub flesh_copy_custom { + my( $self, $conn, $copyid, $fields ) = @_; + my $e = new_editor(); + my $copy = $e->retrieve_asset_copy( + [ + $copyid, + { + flesh => 1, + flesh_fields => { + acp => $fields, + } + } + ] + ) or return $e->event; + return $copy; +} + + +