From 653d4b18e9281b1fb9dafcd4fe0842b9452ca80a Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 28 Feb 2013 15:32:07 -0500 Subject: [PATCH] Fix holding lib for certain distribution svrs On a serial virtual record (svr), the holding lib is expected to be just an ID. In one logic branch, Search/Serial.pm was attaching the entire aou object, and we should instead attach just the ID of this object. Signed-off-by: Dan Wells Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm index 27c92066f1..d8e010a3b7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm @@ -170,7 +170,7 @@ sub bib_to_svr { $svr->sre_id(-1); } $svr->location($_->holding_lib->name); - $svr->owning_lib($_->holding_lib); + $svr->owning_lib($_->holding_lib->id); $svr->basic_holdings([]); $svr->supplement_holdings([]); $svr->index_holdings([]); -- 2.11.0