Bug 10715 - MARC21 007 Plugin Editor doesn't load position 01

This patch changes the MARC21 007 plugin editor so that it uses
1 character instead of 4 characters for position 01.

TEST PLAN:

1) Create new record/edit an existing record
2) Using the tag editor for the 007 field, choose "Videorecording"
3) Click OK
4) Change the second character in the 007 from "c" to "d"
5) Open the tag editor again
6) Note that position 01 will still say "c - Videocartridge" rather
than "d - Videodisc".
7) Exit tag editor

8) Apply patch

9) Reload the page (Shift + Refresh is always useful)
10) Open the tag editor again
11) Note that position 01 will now say "d - Videodisc"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 73ac970f73)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Fix worked as expected.
This commit is contained in:
David Cook 2013-08-13 12:16:28 +10:00 committed by Tomas Cohen Arazi
parent f21d18254f
commit 8a407d8d02
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ my ($template, $loggedinuser, $cookie)
});
$result = "ta" unless $result;
my $f0 = substr($result,0,1);
my $f1 = substr($result,1,4);
my $f1 = substr($result,1,1);
#added new parameters to allow for all material types
my $f2 = substr($result,2,1);
my $f3 = substr($result,3,1);