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

(-)a/C4/Koha.pm (+20 lines)
Lines 696-707 sub getFacets { Link Here
696
                label => 'Titles',
696
                label => 'Titles',
697
                tags  => [ qw/ 500a 501a 503a / ],
697
                tags  => [ qw/ 500a 501a 503a / ],
698
                sep   => ', ',
698
                sep   => ', ',
699
                zidx   => 'Title',
700
                zreg   => '0',
699
            },
701
            },
700
            {
702
            {
701
                idx   => 'au',
703
                idx   => 'au',
702
                label => 'Authors',
704
                label => 'Authors',
703
                tags  => [ qw/ 700ab 701ab 702ab / ],
705
                tags  => [ qw/ 700ab 701ab 702ab / ],
704
                sep   => C4::Context->preference("UNIMARCAuthorsFacetsSeparator"),
706
                sep   => C4::Context->preference("UNIMARCAuthorsFacetsSeparator"),
707
                zidx   => 'Author',
708
                zreg   => '0',
705
            },
709
            },
706
            {
710
            {
707
                idx   => 'se',
711
                idx   => 'se',
Lines 733-738 sub getFacets { Link Here
733
                label => 'Topics',
737
                label => 'Topics',
734
                tags  => [ qw/ 650a / ],
738
                tags  => [ qw/ 650a / ],
735
                sep   => '--',
739
                sep   => '--',
740
                zidx   => 'Subject-to',
741
                zreg   => '0',
736
            },
742
            },
737
            #        {
743
            #        {
738
            #        idx   => 'su-na',
744
            #        idx   => 'su-na',
Lines 745-779 sub getFacets { Link Here
745
                label => 'Places',
751
                label => 'Places',
746
                tags  => [ qw/ 651a / ],
752
                tags  => [ qw/ 651a / ],
747
                sep   => '--',
753
                sep   => '--',
754
                zidx   => 'Subject-geo',
755
                zreg   => '0',
748
            },
756
            },
749
            {
757
            {
750
                idx   => 'su-ut',
758
                idx   => 'su-ut',
751
                label => 'Titles',
759
                label => 'Titles',
752
                tags  => [ qw/ 630a / ],
760
                tags  => [ qw/ 630a / ],
753
                sep   => '--',
761
                sep   => '--',
762
                zidx   => 'Subject',
763
                zreg   => '0',
754
            },
764
            },
755
            {
765
            {
756
                idx   => 'au',
766
                idx   => 'au',
757
                label => 'Authors',
767
                label => 'Authors',
758
                tags  => [ qw/ 100a 110a 700a / ],
768
                tags  => [ qw/ 100a 110a 700a / ],
759
                sep   => ', ',
769
                sep   => ', ',
770
                zidx   => 'Author',
771
                zreg   => '0',
760
            },
772
            },
761
            {
773
            {
762
                idx   => 'se',
774
                idx   => 'se',
763
                label => 'Series',
775
                label => 'Series',
764
                tags  => [ qw/ 440a 490a / ],
776
                tags  => [ qw/ 440a 490a / ],
765
                sep   => ', ',
777
                sep   => ', ',
778
                zidx   => 'Title-series',
779
                zreg   => '0',
766
            },
780
            },
767
            {
781
            {
768
                idx   => 'itype',
782
                idx   => 'itype',
769
                label => 'ItemTypes',
783
                label => 'ItemTypes',
770
                tags  => [ qw/ 952y 942c / ],
784
                tags  => [ qw/ 952y 942c / ],
771
                sep   => ', ',
785
                sep   => ', ',
786
                zidx   => 'itype',
787
                zreg   => '0',
772
            },
788
            },
773
            {
789
            {
774
                idx => 'location',
790
                idx => 'location',
775
                label => 'Location',
791
                label => 'Location',
776
                tags => [ qw / 952c / ],
792
                tags => [ qw / 952c / ],
793
                zidx   => 'location',
794
                zreg   => '0',
777
            },
795
            },
778
            ];
796
            ];
779
797
Lines 783-788 sub getFacets { Link Here
783
                    idx  => 'branch',
801
                    idx  => 'branch',
784
                    label => 'Libraries',
802
                    label => 'Libraries',
785
                    tags        => [ qw / 952b / ],
803
                    tags        => [ qw / 952b / ],
804
                    zidx   => 'holdingbranch',
805
                    zreg   => '0',
786
                };
806
                };
787
            }
807
            }
788
            push( @$facets, $library_facet );
808
            push( @$facets, $library_facet );
(-)a/C4/Search.pm (-1 / +120 lines)
Lines 39-44 use MARC::Field; Link Here
39
use utf8;
39
use utf8;
40
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
40
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
41
41
42
use Data::Dumper;
43
42
# set the version for version checking
44
# set the version for version checking
43
BEGIN {
45
BEGIN {
44
    $VERSION = 3.07.00.049;
46
    $VERSION = 3.07.00.049;
Lines 346-351 sub getRecords { Link Here
346
    my $facets         = getFacets();
348
    my $facets         = getFacets();
347
    my $facets_maxrecs = C4::Context->preference('maxRecordsForFacets')||20;
349
    my $facets_maxrecs = C4::Context->preference('maxRecordsForFacets')||20;
348
350
351
    my $zxpc = XML::LibXML::XPathContext->new;
352
    $zxpc->registerNs('z', 'http://www.indexdata.com/zebra/');
353
354
    my @facets_results; # stores rsults from facets query for corresponding server query (biblioserver only)
349
    my @facets_loop;    # stores the ref to array of hashes for template facets loop
355
    my @facets_loop;    # stores the ref to array of hashes for template facets loop
350
356
351
    ### LOOP THROUGH THE SERVERS
357
    ### LOOP THROUGH THE SERVERS
Lines 450-456 sub getRecords { Link Here
450
                else {
456
                else {
451
                    $times = $size;
457
                    $times = $size;
452
                }
458
                }
453
454
                for ( my $j = $offset ; $j < $times ; $j++ ) {
459
                for ( my $j = $offset ; $j < $times ; $j++ ) {
455
                    my $records_hash;
460
                    my $records_hash;
456
                    my $record;
461
                    my $record;
Lines 501-511 sub getRecords { Link Here
501
                $results_hashref->{ $servers[ $i - 1 ] } = $results_hash;
506
                $results_hashref->{ $servers[ $i - 1 ] } = $results_hash;
502
507
503
# Fill the facets while we're looping, but only for the biblioserver and not for a scan
508
# Fill the facets while we're looping, but only for the biblioserver and not for a scan
509
               
510
                
504
                if ( !$scan && $servers[ $i - 1 ] =~ /biblioserver/ ) {
511
                if ( !$scan && $servers[ $i - 1 ] =~ /biblioserver/ ) {
512
                    # query for all the facets using zebra::facet and index :0 setup for all desired facets at once
513
                    #TODO: build up element_set_all_indexes from getFacets @$facets data structure OR syspref if available
514
                    my $element_set_all_indexes = 'Subject-to:0,Subject-geo:0,Subject-ut:0,Author:0,Title-series:0,itype:0,location:0,holdingbranch:0';
515
                    my $element_set_all = 'zebra::facet::'.$element_set_all_indexes;
516
                    my $saved_zoptions = { "preferredRecordSyntax" => $results[$i - 1]->option("preferredRecordSyntax"),
517
                                           "elementSetName" => $results[$i - 1]->option("elementSetName")
518
                                         };
519
                    $results[ $i -1 ]->option(preferredRecordSyntax => 'XML');
520
                    $results[ $i -1 ]->option(elementSetName => $element_set_all);
521
                    my $rec = $results[ $i -1 ]->record(0);
522
# warn "Found ", $results[ $i -1 ]->size(), " records\n";
523
                    # If the elementSetName is not configured in the index configs we will get
524
                    # ERROR 25 - ZOOM error 25 "Specified element set name not valid for specified database" (addinfo: "F") from diag-set 'Bib-1' 
525
                    # and $rec will be undefined
526
527
                    my $facets_records_xml;
528
                    if (defined $rec) {
529
                       $facets_records_xml = $rec->raw();    #$results[ $i - 1 ]->record(1)->raw();
530
                       warn "FACET_RECORDS :".$facets_records_xml;
531
532
                       if ($rec->error()) {
533
                          my($code, $msg, $addinfo, $dset) = $rec->error();
534
                          warn "error $code, $msg ($addinfo) from $dset set\n";
535
                          #die $rec->exception();
536
                       }
537
#                      warn Dumper( $rec );
538
                    }
539
540
                    my $dom;
541
                    my $parser = XML::LibXML->new( ext_ent_handler => sub { die "External entities are not supported\n"; });
542
                    if ($facets_records_xml) {
543
                       # parse the query results posibly specifiy encoding utf-8
544
                       $dom = $parser->parse_string($facets_records_xml);
545
                    } else {
546
                       # query each facet index individually, building up a cumulative facet DOM xml
547
                       # This will make things more robust in case one index mentioned in element_set above is missing
548
                       # OR if the index is not present when none of the results has that facet.
549
550
                       my @zf_indexes = split(',', $element_set_all_indexes);
551
                       for my $element_index (@zf_indexes) {
552
                         my $element_set = 'zebra::facet::'.$element_index;
553
#                         warn "elem set: $element_set"; 
554
                         $results[ $i -1 ]->option(elementSetName => $element_set);
555
                         my $rec_chunk = $results[ $i -1 ]->record(0);
556
                         # If the elementSetName is not configured in the index configs we will get
557
                         # ERROR 25 - ZOOM error 25 "Specified element set name not valid for specified database" (addinfo: "F") from diag-set 'Bib-1' 
558
                         # and $rec_chunk will be undefined
559
                         my $facets_records_xml_chunk;
560
                         if (defined $rec_chunk) {
561
                            $facets_records_xml_chunk = $rec_chunk->raw();    #$results[ $i - 1 ]->record(1)->raw();
562
#                            warn "FACET_RECORDS_CHUNK :".$facets_records_xml_chunk if ($facets_records_xml_chunk);
563
564
                            if ($rec_chunk->error()) {
565
                               my($code, $msg, $addinfo, $dset) = $rec_chunk->error();
566
                               warn "error $code, $msg ($addinfo) from $dset set\n";
567
                               #die $rec->exception();
568
                               next; # skip this facet since no index available
569
                            }
570
                            
571
                            if (!$facets_records_xml && $facets_records_xml_chunk) {
572
                               $facets_records_xml = substr $facets_records_xml_chunk, 0 , -10; # drop  </record>
573
               #               warn "FRX:".$facets_records_xml;
574
                        #       $facets_records_xml = $facets_records_xml_chunk;
575
                            } else {
576
                               $facets_records_xml_chunk = substr $facets_records_xml_chunk, index($facets_records_xml_chunk,'<facet'), -10;
577
               #               warn "FRXX:".$facets_records_xml_chunk;
578
                               $facets_records_xml = $facets_records_xml . $facets_records_xml_chunk;
579
                            }
580
                         }
581
582
                       }
583
                       if ($facets_records_xml) {
584
                          $facets_records_xml = $facets_records_xml.'</record>';
585
#warn "FRXXXXX:".$facets_records_xml;
586
                          $dom = $parser->parse_string($facets_records_xml);
587
                       }
588
                    }
589
                   
590
                    # restore connection settings for later result queries 
591
                    $results[ $i -1 ]->option(preferredRecordSyntax => $saved_zoptions->{"preferredRecordSyntax"});
592
                    $results[ $i -1 ]->option(elementSetName => $saved_zoptions->{"elementSetName"});
505
593
506
                    my $jmax =
594
                    my $jmax =
507
                      $size > $facets_maxrecs ? $facets_maxrecs : $size;
595
                      $size > $facets_maxrecs ? $facets_maxrecs : $size;
508
                    for my $facet (@$facets) {
596
                    for my $facet (@$facets) {
597
                        my @facet_nodes = ();
598
                        if (defined $facet->{zidx} && 
599
                           (@facet_nodes = $zxpc->findnodes('//z:facet[@index="'.$facet->{zidx}.'"]',$dom)) ) {
600
#warn "ZIDX ".$facet->{zidx};
601
#my $fctcnt = @facet_nodes;
602
#warn "fctcnt=$fctcnt";
603
                           my $fnode = @facet_nodes[0]; # should be one facet node for this term
604
                           my $tnodes = $zxpc->findnodes('z:term',$fnode); # array of elements "terms" for this facet node
605
#my $tfncnt = $tnodes->size;
606
#warn "tfncnt=$tfncnt";
607
                           for ( my $j = 0 ; $j < $tnodes->size() && $j < $jmax ; $j++ ) {
608
                             # query zebra for this indexes facets for up to N max facet records
609
                             # done above so use xpath against the dom above
610
611
                             my $tfn = $tnodes->get_node($j); # should be Nth term 
612
#warn "ntype=$ntype";
613
                             my $occur = $tfn->getAttribute('occur');
614
#warn "occur=$occur";
615
                             my $tfntext = $tfn->textContent(); 
616
#warn "tfntext=$tfntext";
617
                             # TODO: could examine if "normalized" term matches to prior and skip this one
618
619
                             $facets_counter->{ $facet->{idx} }->{$tfntext} = $occur;
620
                           }
621
622
                        } else { # build facet from marc
623
509
                        for ( my $j = 0 ; $j < $jmax ; $j++ ) {
624
                        for ( my $j = 0 ; $j < $jmax ; $j++ ) {
510
625
511
                            my $marc_record = new_record_from_zebra (
626
                            my $marc_record = new_record_from_zebra (
Lines 534-545 sub getRecords { Link Here
534
                                    my $data = $field->as_string( $subfield_letters, $facet->{sep} );
649
                                    my $data = $field->as_string( $subfield_letters, $facet->{sep} );
535
650
536
                                    unless ( $data ~~ @used_datas ) {
651
                                    unless ( $data ~~ @used_datas ) {
652
#warn "TermData: $data";
537
                                        push @used_datas, $data;
653
                                        push @used_datas, $data;
538
                                        $facets_counter->{ $facet->{idx} }->{$data}++;
654
                                        $facets_counter->{ $facet->{idx} }->{$data}++;
539
                                    }
655
                                    }
540
                                } # fields
656
                                } # fields
541
                            }    # field codes
657
                            }    # field codes
542
                        }    # records
658
                        }    # records
659
660
                        }
661
543
                        $facets_info->{ $facet->{idx} }->{label_value} =
662
                        $facets_info->{ $facet->{idx} }->{label_value} =
544
                          $facet->{label};
663
                          $facet->{label};
545
                        $facets_info->{ $facet->{idx} }->{expanded} =
664
                        $facets_info->{ $facet->{idx} }->{expanded} =
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (-14 / +34 lines)
Lines 243-251 Link Here
243
  <!--record.abs line 91: melm 100$a      Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s-->
243
  <!--record.abs line 91: melm 100$a      Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s-->
244
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a">
244
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a">
245
    <target_index>Author:w</target_index>
245
    <target_index>Author:w</target_index>
246
    <target_index>Author:p</target_index>
246
    <target_index>Author:p</target_index> <target_index>Author:0</target_index>
247
    <target_index>Author:s</target_index>
247
    <target_index>Author:s</target_index> <target_index>Editor:w</target_index>
248
    <target_index>Editor:w</target_index>
249
    <target_index>Author-personal-bibliography:w</target_index>
248
    <target_index>Author-personal-bibliography:w</target_index>
250
    <target_index>Author-personal-bibliography:p</target_index>
249
    <target_index>Author-personal-bibliography:p</target_index>
251
    <target_index>Author-personal-bibliography:s</target_index>
250
    <target_index>Author-personal-bibliography:s</target_index>
Lines 268-274 Link Here
268
  <!--record.abs line 94: melm 110        Author,Author:p,Author:s,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name-->
267
  <!--record.abs line 94: melm 110        Author,Author:p,Author:s,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name-->
269
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="110">
268
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="110">
270
    <target_index>Author:w</target_index>
269
    <target_index>Author:w</target_index>
271
    <target_index>Author:p</target_index>
270
    <target_index>Author:p</target_index> <target_index>Author:0</target_index>
272
    <target_index>Author:s</target_index>
271
    <target_index>Author:s</target_index>
273
    <target_index>Author-title:w</target_index>
272
    <target_index>Author-title:w</target_index>
274
    <target_index>Author-name-corporate:w</target_index>
273
    <target_index>Author-name-corporate:w</target_index>
Lines 491-497 Link Here
491
  <!--record.abs line 139: melm 440$a      Title-series:w,Title-series:p-->
490
  <!--record.abs line 139: melm 440$a      Title-series:w,Title-series:p-->
492
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="440" subfields="a">
491
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="440" subfields="a">
493
    <target_index>Title-series:w</target_index>
492
    <target_index>Title-series:w</target_index>
494
    <target_index>Title-series:p</target_index>
493
    <target_index>Title-series:p</target_index> <target_index>Title-series:0</target_index>
495
  </index_subfields>
494
  </index_subfields>
496
  <!--record.abs line 140: melm 440$9      Koha-Auth-Number-->
495
  <!--record.abs line 140: melm 440$9      Koha-Auth-Number-->
497
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="440" subfields="9">
496
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="440" subfields="9">
Lines 502-513 Link Here
502
    <target_index>Title-series:w</target_index>
501
    <target_index>Title-series:w</target_index>
503
    <target_index>Title-series:p</target_index>
502
    <target_index>Title-series:p</target_index>
504
    <target_index>Title:w</target_index>
503
    <target_index>Title:w</target_index>
505
    <target_index>Title-series:w</target_index>
506
  </index_data_field>
504
  </index_data_field>
507
  <!--record.abs line 142: melm 490$a      Title-series:w,Title-series:p-->
505
  <!--record.abs line 142: melm 490$a      Title-series:w,Title-series:p-->
508
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="490" subfields="a">
506
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="490" subfields="a">
509
    <target_index>Title-series:w</target_index>
507
    <target_index>Title-series:w</target_index>
510
    <target_index>Title-series:p</target_index>
508
    <target_index>Title-series:p</target_index> <target_index>Title-series:0</target_index>
511
  </index_subfields>
509
  </index_subfields>
512
  <!--record.abs line 143: melm 490$9      Koha-Auth-Number-->
510
  <!--record.abs line 143: melm 490$9      Koha-Auth-Number-->
513
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="490" subfields="9">
511
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="490" subfields="9">
Lines 644-649 Link Here
644
    <target_index>Subject:w</target_index>
642
    <target_index>Subject:w</target_index>
645
    <target_index>Subject:p</target_index>
643
    <target_index>Subject:p</target_index>
646
  </index_data_field>
644
  </index_data_field>
645
  <!--record.abs line ???: melm ??630$a      Subject-ut,Subject:p-->
646
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="630" subfields="a">
647
<!--
648
    <target_index>Subject:w</target_index>
649
    <target_index>Subject:p</target_index> 
650
-->
651
    <target_index>Subject-ut:0</target_index>
652
  </index_subfields>
647
  <!--record.abs line 173: melm 630$n      Thematic-number,Subject,Subject:p-->
653
  <!--record.abs line 173: melm 630$n      Thematic-number,Subject,Subject:p-->
648
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="630" subfields="n">
654
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="630" subfields="n">
649
    <target_index>Thematic-number:w</target_index>
655
    <target_index>Thematic-number:w</target_index>
Lines 665-670 Link Here
665
    <target_index>Subject:w</target_index>
671
    <target_index>Subject:w</target_index>
666
    <target_index>Subject:p</target_index>
672
    <target_index>Subject:p</target_index>
667
  </index_data_field>
673
  </index_data_field>
674
  <!--record.abs line ???: melm 650?        Subject,Subject-to:p Subject-to -->
675
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="650" subfields="a">
676
    <target_index>Subject-to:0</target_index>
677
  </index_subfields>
668
  <!--record.abs line 177: melm 650$9      Koha-Auth-Number    -->
678
  <!--record.abs line 177: melm 650$9      Koha-Auth-Number    -->
669
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="650" subfields="9">
679
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="650" subfields="9">
670
    <target_index>Koha-Auth-Number:w</target_index>
680
    <target_index>Koha-Auth-Number:w</target_index>
Lines 674-679 Link Here
674
    <target_index>Subject:w</target_index>
684
    <target_index>Subject:w</target_index>
675
    <target_index>Subject:p</target_index>
685
    <target_index>Subject:p</target_index>
676
  </index_data_field>
686
  </index_data_field>
687
  <!--record.abs line ???: melm 651$a      Koha-Auth-Number    -->
688
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="651" subfields="a">
689
    <target_index>Subject-geo:0</target_index>
690
  </index_subfields>
677
  <!--record.abs line 179: melm 651$9      Koha-Auth-Number    -->
691
  <!--record.abs line 179: melm 651$9      Koha-Auth-Number    -->
678
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="651" subfields="9">
692
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="651" subfields="9">
679
    <target_index>Koha-Auth-Number:w</target_index>
693
    <target_index>Koha-Auth-Number:w</target_index>
Lines 776-782 Link Here
776
  <!--record.abs line 201: melm 700$a      Author,Author:p-->
790
  <!--record.abs line 201: melm 700$a      Author,Author:p-->
777
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="a">
791
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="a">
778
    <target_index>Author:w</target_index>
792
    <target_index>Author:w</target_index>
779
    <target_index>Author:p</target_index>
793
    <target_index>Author:p</target_index> <target_index>Author:0</target_index>
780
  </index_subfields>
794
  </index_subfields>
781
  <!--record.abs line 202: melm 700$n      Thematic-number-->
795
  <!--record.abs line 202: melm 700$n      Thematic-number-->
782
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="n">
796
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="n">
Lines 1039-1044 Link Here
1039
    <target_index>Name:w</target_index>
1053
    <target_index>Name:w</target_index>
1040
    <target_index>Conference-name:w</target_index>
1054
    <target_index>Conference-name:w</target_index>
1041
  </index_data_field>
1055
  </index_data_field>
1056
  <!--record.abs line ???: melm ??830$a    Subject-ut -->
1057
<!--
1058
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="830" subfields="a">
1059
    <target_index>Title-series:w</target_index>
1060
    <target_index>Title-series:p</target_index> <target_index>Title-series:0</target_index>
1061
  </index_subfields>
1062
-->
1042
  <!--record.abs line 261: melm 830$w      Record-control-number-->
1063
  <!--record.abs line 261: melm 830$w      Record-control-number-->
1043
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="830" subfields="w">
1064
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="830" subfields="w">
1044
    <target_index>Record-control-number:w</target_index>
1065
    <target_index>Record-control-number:w</target_index>
Lines 1090-1096 Link Here
1090
    <target_index>itemtype:w</target_index>
1111
    <target_index>itemtype:w</target_index>
1091
    <target_index>itemtype:p</target_index>
1112
    <target_index>itemtype:p</target_index>
1092
    <target_index>itype:w</target_index>
1113
    <target_index>itype:w</target_index>
1093
    <target_index>itype:p</target_index>
1114
    <target_index>itype:p</target_index> <target_index>itype:0</target_index>
1094
  </index_subfields>
1115
  </index_subfields>
1095
  <!--record.abs line 274: melm 942$n      Suppress:w,Suppress:n-->
1116
  <!--record.abs line 274: melm 942$n      Suppress:w,Suppress:n-->
1096
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="n">
1117
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="n">
Lines 1163-1177 Link Here
1163
  </index_subfields>
1184
  </index_subfields>
1164
  <!--record.abs line 293: melm 952$a      homebranch-->
1185
  <!--record.abs line 293: melm 952$a      homebranch-->
1165
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="a">
1186
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="a">
1166
    <target_index>homebranch:w</target_index>
1187
    <target_index>homebranch:w</target_index> <target_index>homebranch:0</target_index>
1167
  </index_subfields>
1188
  </index_subfields>
1168
  <!--record.abs line 294: melm 952$b      holdingbranch-->
1189
  <!--record.abs line 294: melm 952$b      holdingbranch-->
1169
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="b">
1190
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="b">
1170
    <target_index>holdingbranch:w</target_index>
1191
    <target_index>holdingbranch:w</target_index> <target_index>holdingbranch:0</target_index>
1171
  </index_subfields>
1192
  </index_subfields>
1172
  <!--record.abs line 295: melm 952$c      location-->
1193
  <!--record.abs line 295: melm 952$c      location-->
1173
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="c">
1194
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="c">
1174
    <target_index>location:w</target_index>
1195
    <target_index>location:w</target_index> <target_index>location:0</target_index>
1175
  </index_subfields>
1196
  </index_subfields>
1176
  <!--record.abs line 298: melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s-->
1197
  <!--record.abs line 298: melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s-->
1177
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="d">
1198
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="d">
Lines 1259-1265 Link Here
1259
  <!--record.abs line 319: melm 952$y      itype:w,itype:p-->
1280
  <!--record.abs line 319: melm 952$y      itype:w,itype:p-->
1260
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
1281
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
1261
    <target_index>itype:w</target_index>
1282
    <target_index>itype:w</target_index>
1262
    <target_index>itype:p</target_index>
1283
    <target_index>itype:p</target_index> <target_index>itype:0</target_index>
1263
  </index_subfields>
1284
  </index_subfields>
1264
  <!--record.abs line 320: melm 952$z      Note:w,Note:p-->
1285
  <!--record.abs line 320: melm 952$z      Note:w,Note:p-->
1265
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="z">
1286
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="z">
1266
- 

Return to bug 11232