att 9010 cn-suffix
att 9011 Suppress
att 9012 Identifier-other
+att 9013 not-onloan-count
# Items Index
att 8001 withdrawn
extent 1=Extent
llength 1=llength
Summary 1=Summary
+not-onloan-count 1=9013 4=109
###
# Items Index
<target_index>Note:p</target_index>
</index_subfields>
+ <index_subfields tag="999" subfields="x">
+ <target_index>not-onloan-count:n</target_index>
+ </index_subfields>
+
<facet tag="100" subfields="a">
<target_index>au:0</target_index>
</facet>
</z:index>
</xslo:if>
</xslo:for-each>
+ <xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('x', @code)">
+ <z:index name="not-onloan-count:n">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
</xslo:template>
<xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
<xslo:for-each select="marc:subfield">
<target_index>itype:w</target_index>
</index_subfields>
+ <index_subfields tag="999" subfields="x">
+ <target_index>not-onloan-count:n</target_index>
+ </index_subfields>
+
<facet tag="100" subfields="a">
<target_index>au:0</target_index>
</facet>
</z:index>
</xslo:if>
</xslo:for-each>
+ <xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('x', @code)">
+ <z:index name="not-onloan-count:n">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
</xslo:template>
<xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
<xslo:for-each select="marc:subfield">
<target_index>totalissues:s</target_index>
</index_subfields>
+ <index_subfields tag="999" subfields="x">
+ <target_index>not-onloan-count:n</target_index>
+ </index_subfields>
+
<facet tag="225" subfields="a">
<target_index>se:0</target_index>
</facet>
</xslo:if>
</xslo:for-each>
</xslo:template>
+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
+ <xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('x', @code)">
+ <z:index name="not-onloan-count:n">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
+ </xslo:template>
<xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
<z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
<xslo:variable name="raw_heading">
}
sub get_corrected_marc_record {
- my ($record_type, $record_number) = @_;
+ my ( $record_type, $record_number ) = @_;
- my $marc = get_raw_marc_record($record_type, $record_number);
+ my $marc = get_raw_marc_record( $record_type, $record_number );
- if (defined $marc) {
+ if ( defined $marc ) {
fix_leader($marc);
- if ($record_type eq 'authority') {
- fix_authority_id($marc, $record_number);
- } elsif ($record_type eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) {
- my $normalizer = Koha::RecordProcessor->new( { filters => 'EmbedSeeFromHeadings' } );
+ if ( $record_type eq 'authority' ) {
+ fix_authority_id( $marc, $record_number );
+ }
+ elsif ( $record_type eq 'biblio' ) {
+
+ my @filters;
+ push @filters, 'EmbedItemsAvailability';
+ push @filters, 'IncludeSeeFromInSearches'
+ if C4::Context->preference('IncludeSeeFromInSearches');
+
+ my $normalizer = Koha::RecordProcessor->new( { filters => \@filters } );
$marc = $normalizer->process($marc);
}
- if (C4::Context->preference("marcflavour") eq "UNIMARC") {
+ if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
fix_unimarc_100($marc);
}
}