Lines 85-92
sub transformMARCXML4XSLT {
Link Here
|
85 |
$value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib ) |
85 |
$value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib ) |
86 |
if $av->{ $tag }->{ $letter }; |
86 |
if $av->{ $tag }->{ $letter }; |
87 |
push( @new_subfields, $letter, $value ); |
87 |
push( @new_subfields, $letter, $value ); |
88 |
} |
88 |
} |
89 |
$field ->replace_with( MARC::Field->new( |
89 |
$field->replace_with( MARC::Field->new( |
90 |
$tag, |
90 |
$tag, |
91 |
$field->indicator(1), |
91 |
$field->indicator(1), |
92 |
$field->indicator(2), |
92 |
$field->indicator(2), |
Lines 212-218
sub XSLTParse4Display {
Link Here
|
212 |
next unless defined($sp); |
212 |
next unless defined($sp); |
213 |
$sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n"; |
213 |
$sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n"; |
214 |
} |
214 |
} |
|
|
215 |
|
215 |
$sysxml .= "</sysprefs>\n"; |
216 |
$sysxml .= "</sysprefs>\n"; |
|
|
217 |
|
218 |
## Non-syspref variables that need to be computed |
219 |
$sysxml .= "<OtherVars>"; |
220 |
|
221 |
# Fetch the authorised value description for 942$n ( supressed in opac ) for the value '1' |
222 |
# if 942$n is not mapped, the return value will be '1' which means even if the field is not |
223 |
# mapped in the framework, we will still get the correct value to compare against |
224 |
my $frameworkcode = GetFrameworkCode($biblionumber) || ''; |
225 |
my $tagslib = &GetMarcStructure(1,$frameworkcode); |
226 |
my $value = GetAuthorisedValueDesc( '942', 'n', '1', '', $tagslib ); |
227 |
$sysxml .= "<OtherVar name=\"Field942_1_True_Value\">$value</OtherVar>"; |
228 |
|
229 |
$sysxml .= "</OtherVars>\n"; |
230 |
## End non-syspref variables that need to be computed |
231 |
|
216 |
$xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; |
232 |
$xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; |
217 |
if ($fixamps) { # We need to correct the HTML entities that Zebra outputs |
233 |
if ($fixamps) { # We need to correct the HTML entities that Zebra outputs |
218 |
$xmlrecord =~ s/\&amp;/\&/g; |
234 |
$xmlrecord =~ s/\&amp;/\&/g; |