Lines 143-154
sub generate_subfield_form {
Link Here
|
143 |
my $username=(C4::Context->userenv?C4::Context->userenv->{'surname'}:"superlibrarian"); |
143 |
my $username=(C4::Context->userenv?C4::Context->userenv->{'surname'}:"superlibrarian"); |
144 |
$value=~s/<<USER>>/$username/g; |
144 |
$value=~s/<<USER>>/$username/g; |
145 |
} |
145 |
} |
146 |
} else { |
|
|
147 |
$value =~ s/"/"/g; |
148 |
} |
146 |
} |
149 |
|
147 |
|
150 |
$subfield_data{visibility} = "display:none;" if (($subfieldlib->{hidden} > 4) || ($subfieldlib->{hidden} <= -4)); |
148 |
$subfield_data{visibility} = "display:none;" if (($subfieldlib->{hidden} > 4) || ($subfieldlib->{hidden} <= -4)); |
151 |
|
149 |
|
152 |
my $pref_itemcallnumber = C4::Context->preference('itemcallnumber'); |
150 |
my $pref_itemcallnumber = C4::Context->preference('itemcallnumber'); |
153 |
if (!$value && $subfieldlib->{kohafield} eq 'items.itemcallnumber' && $pref_itemcallnumber) { |
151 |
if (!$value && $subfieldlib->{kohafield} eq 'items.itemcallnumber' && $pref_itemcallnumber) { |
154 |
my $CNtag = substr($pref_itemcallnumber, 0, 3); |
152 |
my $CNtag = substr($pref_itemcallnumber, 0, 3); |