From 53581a43bb2ce03aded332e926bfae25251d6405 Mon Sep 17 00:00:00 2001 From: djfiander Date: Wed, 4 Nov 2009 01:25:28 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm b/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm index ab6381292..a656e6032 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, -- 2.11.0