|
Lines 937-942
sub marc_records_to_documents {
Link Here
|
| 937 |
} |
937 |
} |
| 938 |
} |
938 |
} |
| 939 |
|
939 |
|
|
|
940 |
if ( $self->index eq $AUTHORITIES_INDEX |
| 941 |
&& exists $record_document->{'subject-heading-thesaurus'} |
| 942 |
&& scalar @{ $record_document->{'subject-heading-thesaurus'} } > 1 ) |
| 943 |
{ |
| 944 |
# We should really only have two thesauri defined in the case where 008/_11 = 'z' and 040$f is defined |
| 945 |
# In that case, we should drop the z |
| 946 |
@{ $record_document->{'subject-heading-thesaurus'} } = |
| 947 |
map { $_ eq 'z' ? () : $_ } @{ $record_document->{'subject-heading-thesaurus'} }; |
| 948 |
} |
| 949 |
|
| 940 |
# Check if there is at least one available item |
950 |
# Check if there is at least one available item |
| 941 |
if ( $self->index eq $BIBLIOS_INDEX ) { |
951 |
if ( $self->index eq $BIBLIOS_INDEX ) { |
| 942 |
my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber'); |
952 |
my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber'); |
| 943 |
- |
|
|