Lines 162-168
sub generate_subfield_form {
Link Here
|
162 |
my $CNsubfields = |
162 |
my $CNsubfields = |
163 |
substr( $pref_itemcallnumber_part, 3 ); # Any and all subfields |
163 |
substr( $pref_itemcallnumber_part, 3 ); # Any and all subfields |
164 |
$CNsubfields = undef if $CNsubfields eq ''; |
164 |
$CNsubfields = undef if $CNsubfields eq ''; |
165 |
my $temp2 = $marc_record->field($CNtag); |
165 |
my $temp2 = $marc_record ? $marc_record->field($CNtag) : undef; |
166 |
|
166 |
|
167 |
next unless $temp2; |
167 |
next unless $temp2; |
168 |
$value = $temp2->as_string( $CNsubfields, ' ' ); |
168 |
$value = $temp2->as_string( $CNsubfields, ' ' ); |
Lines 314-320
sub generate_subfield_form {
Link Here
|
314 |
); |
314 |
); |
315 |
my $pars = { |
315 |
my $pars = { |
316 |
dbh => $dbh, |
316 |
dbh => $dbh, |
317 |
record => $marc_record, |
317 |
record => $marc_record, #Note: could be undefined |
318 |
tagslib => $tagslib, |
318 |
tagslib => $tagslib, |
319 |
id => $subfield_data{id}, |
319 |
id => $subfield_data{id}, |
320 |
}; |
320 |
}; |
Lines 564-570
sub edit_form {
Link Here
|
564 |
value => $value, |
564 |
value => $value, |
565 |
tagslib => $tagslib, |
565 |
tagslib => $tagslib, |
566 |
libraries => $libraries, |
566 |
libraries => $libraries, |
567 |
marc_record => $marc_record, |
567 |
marc_record => $marc_record, #Note: could be undefined |
568 |
restricted_edition => $restricted_edition, |
568 |
restricted_edition => $restricted_edition, |
569 |
prefill_with_default_values => $prefill_with_default_values, |
569 |
prefill_with_default_values => $prefill_with_default_values, |
570 |
branch_limit => $branch_limit, |
570 |
branch_limit => $branch_limit, |