From 7cfc2dcf3d652faab4f0d5595b9bb8c6794a5ded Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 28 Aug 2006 19:33:58 +0000 Subject: [PATCH] added custom copy flesh method git-svn-id: svn://svn.open-ils.org/ILS/trunk@5739 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../perlmods/OpenILS/Application/Search/Biblio.pm | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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; +} + + + -- 2.11.0