Lines 918-923
sub marc_records_to_documents {
Link Here
|
918 |
} |
918 |
} |
919 |
} |
919 |
} |
920 |
|
920 |
|
|
|
921 |
if ( $self->index eq $AUTHORITIES_INDEX && scalar @{ $record_document->{'subject-heading-thesaurus'} } > 1 ) { |
922 |
|
923 |
# We should really only have two thesauri defined in the case where 008/_11 = 'z' and 040$f is defined |
924 |
# In that case, we should drop the z |
925 |
@{ $record_document->{'subject-heading-thesaurus'} } = |
926 |
map { $_ eq 'z' ? () : $_ } @{ $record_document->{'subject-heading-thesaurus'} }; |
927 |
} |
928 |
|
921 |
# Check if there is at least one available item |
929 |
# Check if there is at least one available item |
922 |
if ( $self->index eq $BIBLIOS_INDEX ) { |
930 |
if ( $self->index eq $BIBLIOS_INDEX ) { |
923 |
my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber'); |
931 |
my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber'); |
924 |
- |
|
|