[open-ils-commits] r17005 - trunk/Open-ILS/src/perlmods/OpenILS/SIP (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 21 17:17:06 EDT 2010


Author: erickson
Date: 2010-07-21 17:17:00 -0400 (Wed, 21 Jul 2010)
New Revision: 17005

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm
Log:
add collection code as non-i18n version of shelving location

Modified: trunk/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm	2010-07-21 21:16:59 UTC (rev 17004)
+++ trunk/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm	2010-07-21 21:17:00 UTC (rev 17005)
@@ -127,6 +127,13 @@
     $self->{call_number} = $copy->call_number->label;
     $self->{mods} = $U->record_to_mvr($self->{record}) if $self->{record}->marc;
 
+    # use the non-translated version of the copy location as the
+    # collection code, since it may be used for additional routing
+    # purposes by the SIP client.  Config option?
+    $self->{collection_code} = 
+        $e->retrieve_asset_copy_location([
+            $copy->location, {no_i18n => 1}])->name;
+
     if ($copy->status->id == OILS_COPY_STATUS_IN_TRANSIT) {
         my $transit = $e->search_action_transit_copy([
             {



More information about the open-ils-commits mailing list