From: djfiander Date: Wed, 4 Nov 2009 01:25:28 +0000 (+0000) Subject: Initial support for displaying the type of unit (eg, 'playing X-Git-Tag: kcls-grey-screen-prod1~3102 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=53581a43bb2ce03aded332e926bfae25251d6405;p=evergreen%2Fequinox.git Initial support for displaying the type of unit (eg, 'playing cards'); deleted some vestigal code. git-svn-id: svn://svn.open-ils.org/ILS/trunk@14761 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm b/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm index ab63812922..a656e60326 100755 --- a/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm @@ -36,7 +36,6 @@ sub new { $self->{_mfhdh_SUBFIELDS}->{$key} = {HOLDINGS => $val, UNIT => undef,}; $last_enum = $key; - } elsif ($key =~ /[i-m]/) { } elsif ($key eq 'o') { warn '$o specified prior to first enumeration' unless defined($last_enum); @@ -119,6 +118,10 @@ sub format { my $caption = $self->{_mfhdh_CAPTION}; my $str = ''; + if ($caption->type_of_unit) { + $str = $caption->type_of_unit . ' '; + } + if ($caption->enumeration_is_chronology) { # if issues are identified by chronology only, then the # chronology data is stored in the enumeration subfields,