View | Details | Raw Unified | Return to bug 18098
Collapse All | Expand All

(-)a/etc/zebradb/biblios/etc/bib1.att (+1 lines)
Lines 220-225 att 9009 cn-prefix Link Here
220
att 9010    cn-suffix
220
att 9010    cn-suffix
221
att 9011    Suppress
221
att 9011    Suppress
222
att 9012    Identifier-other
222
att 9012    Identifier-other
223
att 9013    not-onloan-count
223
224
224
# Items Index
225
# Items Index
225
att 8001    withdrawn
226
att 8001    withdrawn
(-)a/etc/zebradb/ccl.properties (+1 lines)
Lines 994-999 date-entered-on-file 1=date-entered-on-file Link Here
994
extent 1=Extent
994
extent 1=Extent
995
llength 1=llength
995
llength 1=llength
996
Summary 1=Summary
996
Summary 1=Summary
997
not-onloan-count 1=9013 4=109
997
998
998
###
999
###
999
# Items Index
1000
# Items Index
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+4 lines)
Lines 1370-1375 Link Here
1370
    <target_index>Note:p</target_index>
1370
    <target_index>Note:p</target_index>
1371
  </index_subfields>
1371
  </index_subfields>
1372
1372
1373
  <index_subfields tag="999" subfields="x">
1374
    <target_index>not-onloan-count:n</target_index>
1375
  </index_subfields>
1376
1373
  <facet tag="100" subfields="a">
1377
  <facet tag="100" subfields="a">
1374
    <target_index>au:0</target_index>
1378
    <target_index>au:0</target_index>
1375
  </facet>
1379
  </facet>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (+7 lines)
Lines 1242-1247 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1242
        </z:index>
1242
        </z:index>
1243
      </xslo:if>
1243
      </xslo:if>
1244
    </xslo:for-each>
1244
    </xslo:for-each>
1245
    <xslo:for-each select="marc:subfield">
1246
      <xslo:if test="contains('x', @code)">
1247
        <z:index name="not-onloan-count:n">
1248
          <xslo:value-of select="."/>
1249
        </z:index>
1250
      </xslo:if>
1251
    </xslo:for-each>
1245
  </xslo:template>
1252
  </xslo:template>
1246
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1253
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1247
    <xslo:for-each select="marc:subfield">
1254
    <xslo:for-each select="marc:subfield">
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+4 lines)
Lines 969-974 Link Here
969
    <target_index>itype:w</target_index>
969
    <target_index>itype:w</target_index>
970
  </index_subfields>
970
  </index_subfields>
971
971
972
  <index_subfields tag="999" subfields="x">
973
    <target_index>not-onloan-count:n</target_index>
974
  </index_subfields>
975
972
  <facet tag="100" subfields="a">
976
  <facet tag="100" subfields="a">
973
    <target_index>au:0</target_index>
977
    <target_index>au:0</target_index>
974
  </facet>
978
  </facet>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (+7 lines)
Lines 760-765 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
760
        </z:index>
760
        </z:index>
761
      </xslo:if>
761
      </xslo:if>
762
    </xslo:for-each>
762
    </xslo:for-each>
763
    <xslo:for-each select="marc:subfield">
764
      <xslo:if test="contains('x', @code)">
765
        <z:index name="not-onloan-count:n">
766
          <xslo:value-of select="."/>
767
        </z:index>
768
      </xslo:if>
769
    </xslo:for-each>
763
  </xslo:template>
770
  </xslo:template>
764
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
771
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
765
    <xslo:for-each select="marc:subfield">
772
    <xslo:for-each select="marc:subfield">
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (+4 lines)
Lines 1444-1449 Link Here
1444
    <target_index>totalissues:s</target_index>
1444
    <target_index>totalissues:s</target_index>
1445
  </index_subfields>
1445
  </index_subfields>
1446
1446
1447
  <index_subfields tag="999" subfields="x">
1448
    <target_index>not-onloan-count:n</target_index>
1449
  </index_subfields>
1450
1447
  <facet tag="225" subfields="a">
1451
  <facet tag="225" subfields="a">
1448
    <target_index>se:0</target_index>
1452
    <target_index>se:0</target_index>
1449
  </facet>
1453
  </facet>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (+9 lines)
Lines 1880-1885 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1880
      </xslo:if>
1880
      </xslo:if>
1881
    </xslo:for-each>
1881
    </xslo:for-each>
1882
  </xslo:template>
1882
  </xslo:template>
1883
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1884
    <xslo:for-each select="marc:subfield">
1885
      <xslo:if test="contains('x', @code)">
1886
        <z:index name="not-onloan-count:n">
1887
          <xslo:value-of select="."/>
1888
        </z:index>
1889
      </xslo:if>
1890
    </xslo:for-each>
1891
  </xslo:template>
1883
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
1892
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
1884
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
1893
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
1885
      <xslo:variable name="raw_heading">
1894
      <xslo:variable name="raw_heading">
(-)a/misc/migration_tools/rebuild_zebra.pl (-9 / +15 lines)
Lines 635-653 sub generate_deleted_marc_records { Link Here
635
}
635
}
636
636
637
sub get_corrected_marc_record {
637
sub get_corrected_marc_record {
638
    my ($record_type, $record_number) = @_;
638
    my ( $record_type, $record_number ) = @_;
639
639
640
    my $marc = get_raw_marc_record($record_type, $record_number);
640
    my $marc = get_raw_marc_record( $record_type, $record_number );
641
641
642
    if (defined $marc) {
642
    if ( defined $marc ) {
643
        fix_leader($marc);
643
        fix_leader($marc);
644
        if ($record_type eq 'authority') {
644
        if ( $record_type eq 'authority' ) {
645
            fix_authority_id($marc, $record_number);
645
            fix_authority_id( $marc, $record_number );
646
        } elsif ($record_type eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) {
646
        }
647
            my $normalizer = Koha::RecordProcessor->new( { filters => 'EmbedSeeFromHeadings' } );
647
        elsif ( $record_type eq 'biblio' ) {
648
649
            my @filters;
650
            push @filters, 'EmbedItemsAvailability';
651
            push @filters, 'IncludeSeeFromInSearches'
652
                if C4::Context->preference('IncludeSeeFromInSearches');
653
654
            my $normalizer = Koha::RecordProcessor->new( { filters => \@filters } );
648
            $marc = $normalizer->process($marc);
655
            $marc = $normalizer->process($marc);
649
        }
656
        }
650
        if (C4::Context->preference("marcflavour") eq "UNIMARC") {
657
        if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
651
            fix_unimarc_100($marc);
658
            fix_unimarc_100($marc);
652
        }
659
        }
653
    }
660
    }
654
- 

Return to bug 18098