Lines 855-869
sub BuildSummary {
Link Here
|
855 |
# handle $authtypecode is NULL or eq "" |
855 |
# handle $authtypecode is NULL or eq "" |
856 |
if ($authtypecode) { |
856 |
if ($authtypecode) { |
857 |
my $authref = Koha::Authority::Types->find($authtypecode); |
857 |
my $authref = Koha::Authority::Types->find($authtypecode); |
858 |
$summary{authtypecode} = $authref->authtypecode; |
858 |
if ( $authref ) { |
859 |
$summary{type} = $authref->authtypetext; |
859 |
$summary{authtypecode} = $authref->authtypecode; |
860 |
$summary_template = $authref->summary; |
860 |
$summary{type} = $authref->authtypetext; |
861 |
# for MARC21, the authority type summary displays a label meant for |
861 |
$summary_template = $authref->summary; |
862 |
# display |
862 |
# for MARC21, the authority type summary displays a label meant for |
863 |
if (C4::Context->preference('marcflavour') ne 'UNIMARC') { |
863 |
# display |
864 |
$summary{label} = $authref->summary; |
864 |
if (C4::Context->preference('marcflavour') ne 'UNIMARC') { |
865 |
} else { |
865 |
$summary{label} = $authref->summary; |
866 |
$summary{summary} = $authref->summary; |
866 |
} else { |
|
|
867 |
$summary{summary} = $authref->summary; |
868 |
} |
867 |
} |
869 |
} |
868 |
} |
870 |
} |
869 |
my $marc21subfields = 'abcdfghjklmnopqrstuvxyz68'; |
871 |
my $marc21subfields = 'abcdfghjklmnopqrstuvxyz68'; |
870 |
- |
|
|