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

(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xml (-60 / +72 lines)
Lines 665-953 Link Here
665
    <target_index>Title:w</target_index>
665
    <target_index>Title:w</target_index>
666
    <target_index>Title-other-variant:w</target_index>
666
    <target_index>Title-other-variant:w</target_index>
667
  </index_data_field>
667
  </index_data_field>
668
  <!--record.abs line 247: melm 773$t      Host-item-->
668
  <!--record.abs line 247: melm 773$a      Host-item-->
669
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="773" subfields="a">
670
    <target_index>Host-item:w</target_index>
671
  </index_subfields>
672
  <!--record.abs line 248: melm 773$9	    Host-Item-Number-->
673
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="773" subfields="9">
674
    <target_index>Host-Item-Number:w</target_index>
675
  </index_subfields>
676
  <!--record.abs line 249: melm 773$t      Host-item-->
669
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="773" subfields="t">
677
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="773" subfields="t">
670
    <target_index>Host-item:w</target_index>
678
    <target_index>Host-item:w</target_index>
671
  </index_subfields>
679
  </index_subfields>
672
  <!--record.abs line 248: melm 780$t      Title-->
680
  <!--record.abs line 250: melm 773$w      Record-control-number-->
681
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="773" subfields="w">
682
    <target_index>Record-control-number:w</target_index>
683
  </index_subfields>
684
  <!--record.abs line 251: melm 780$t      Title-->
673
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="780" subfields="t">
685
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="780" subfields="t">
674
    <target_index>Title:w</target_index>
686
    <target_index>Title:w</target_index>
675
  </index_subfields>
687
  </index_subfields>
676
  <!--record.abs line 249: melm 780        Title,Title-former,Related-periodical-->
688
  <!--record.abs line 252: melm 780        Title,Title-former,Related-periodical-->
677
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="780">
689
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="780">
678
    <target_index>Title:w</target_index>
690
    <target_index>Title:w</target_index>
679
    <target_index>Title-former:w</target_index>
691
    <target_index>Title-former:w</target_index>
680
    <target_index>Related-periodical:w</target_index>
692
    <target_index>Related-periodical:w</target_index>
681
  </index_data_field>
693
  </index_data_field>
682
  <!--record.abs line 250: melm 785        Related-periodical-->
694
  <!--record.abs line 253: melm 785        Related-periodical-->
683
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="785">
695
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="785">
684
    <target_index>Related-periodical:w</target_index>
696
    <target_index>Related-periodical:w</target_index>
685
  </index_data_field>
697
  </index_data_field>
686
  <!--record.abs line 252: melm 800$a      Name-and-title-->
698
  <!--record.abs line 255: melm 800$a      Name-and-title-->
687
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="a">
699
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="a">
688
    <target_index>Name-and-title:w</target_index>
700
    <target_index>Name-and-title:w</target_index>
689
  </index_subfields>
701
  </index_subfields>
690
  <!--record.abs line 254: melm 800$t      Author-title,Name-and-title,Title,Title-series-->
702
  <!--record.abs line 257: melm 800$t      Author-title,Name-and-title,Title,Title-series-->
691
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="t">
703
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="t">
692
    <target_index>Author-title:w</target_index>
704
    <target_index>Author-title:w</target_index>
693
    <target_index>Name-and-title:w</target_index>
705
    <target_index>Name-and-title:w</target_index>
694
    <target_index>Title:w</target_index>
706
    <target_index>Title:w</target_index>
695
    <target_index>Title-series:w</target_index>
707
    <target_index>Title-series:w</target_index>
696
  </index_subfields>
708
  </index_subfields>
697
  <!--record.abs line 255: melm 800$9      Koha-Auth-Number-->
709
  <!--record.abs line 258: melm 800$9      Koha-Auth-Number-->
698
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="9">
710
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="800" subfields="9">
699
    <target_index>Koha-Auth-Number:w</target_index>
711
    <target_index>Koha-Auth-Number:w</target_index>
700
  </index_subfields>
712
  </index_subfields>
701
  <!--record.abs line 256: melm 800        Author,Author-name-personal,Name,Personal-name-->
713
  <!--record.abs line 259: melm 800        Author,Author-name-personal,Name,Personal-name-->
702
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="800">
714
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="800">
703
    <target_index>Author:w</target_index>
715
    <target_index>Author:w</target_index>
704
    <target_index>Author-name-personal:w</target_index>
716
    <target_index>Author-name-personal:w</target_index>
705
    <target_index>Name:w</target_index>
717
    <target_index>Name:w</target_index>
706
    <target_index>Personal-name:w</target_index>
718
    <target_index>Personal-name:w</target_index>
707
  </index_data_field>
719
  </index_data_field>
708
  <!--record.abs line 257: melm 810$a      Name-and-title-->
720
  <!--record.abs line 260: melm 810$a      Name-and-title-->
709
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="a">
721
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="a">
710
    <target_index>Name-and-title:w</target_index>
722
    <target_index>Name-and-title:w</target_index>
711
  </index_subfields>
723
  </index_subfields>
712
  <!--record.abs line 258: melm 810$t      Author-title,Name-and-title,Title,Title-series-->
724
  <!--record.abs line 261: melm 810$t      Author-title,Name-and-title,Title,Title-series-->
713
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="t">
725
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="t">
714
    <target_index>Author-title:w</target_index>
726
    <target_index>Author-title:w</target_index>
715
    <target_index>Name-and-title:w</target_index>
727
    <target_index>Name-and-title:w</target_index>
716
    <target_index>Title:w</target_index>
728
    <target_index>Title:w</target_index>
717
    <target_index>Title-series:w</target_index>
729
    <target_index>Title-series:w</target_index>
718
  </index_subfields>
730
  </index_subfields>
719
  <!--record.abs line 259: melm 810$9      Koha-Auth-Number-->
731
  <!--record.abs line 262: melm 810$9      Koha-Auth-Number-->
720
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="9">
732
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="810" subfields="9">
721
    <target_index>Koha-Auth-Number:w</target_index>
733
    <target_index>Koha-Auth-Number:w</target_index>
722
  </index_subfields>
734
  </index_subfields>
723
  <!--record.abs line 260: melm 810        Author,Corporate-name,Author-name-corporate,Name-->
735
  <!--record.abs line 263: melm 810        Author,Corporate-name,Author-name-corporate,Name-->
724
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="810">
736
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="810">
725
    <target_index>Author:w</target_index>
737
    <target_index>Author:w</target_index>
726
    <target_index>Corporate-name:w</target_index>
738
    <target_index>Corporate-name:w</target_index>
727
    <target_index>Author-name-corporate:w</target_index>
739
    <target_index>Author-name-corporate:w</target_index>
728
    <target_index>Name:w</target_index>
740
    <target_index>Name:w</target_index>
729
  </index_data_field>
741
  </index_data_field>
730
  <!--record.abs line 261: melm 811$a      Name-and-title-->
742
  <!--record.abs line 264: melm 811$a      Name-and-title-->
731
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="a">
743
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="a">
732
    <target_index>Name-and-title:w</target_index>
744
    <target_index>Name-and-title:w</target_index>
733
  </index_subfields>
745
  </index_subfields>
734
  <!--record.abs line 262: melm 811$9      Koha-Auth-Number-->
746
  <!--record.abs line 265: melm 811$9      Koha-Auth-Number-->
735
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="9">
747
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="9">
736
    <target_index>Koha-Auth-Number:w</target_index>
748
    <target_index>Koha-Auth-Number:w</target_index>
737
  </index_subfields>
749
  </index_subfields>
738
  <!--record.abs line 264: melm 811$t      Author-title,Name-and-title,Title,Title-series-->
750
  <!--record.abs line 267: melm 811$t      Author-title,Name-and-title,Title,Title-series-->
739
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="t">
751
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="811" subfields="t">
740
    <target_index>Author-title:w</target_index>
752
    <target_index>Author-title:w</target_index>
741
    <target_index>Name-and-title:w</target_index>
753
    <target_index>Name-and-title:w</target_index>
742
    <target_index>Title:w</target_index>
754
    <target_index>Title:w</target_index>
743
    <target_index>Title-series:w</target_index>
755
    <target_index>Title-series:w</target_index>
744
  </index_subfields>
756
  </index_subfields>
745
  <!--record.abs line 265: melm 811        Author,Author-name-corporate,Name,Conference-name-->
757
  <!--record.abs line 268: melm 811        Author,Author-name-corporate,Name,Conference-name-->
746
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="811">
758
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="811">
747
    <target_index>Author:w</target_index>
759
    <target_index>Author:w</target_index>
748
    <target_index>Author-name-corporate:w</target_index>
760
    <target_index>Author-name-corporate:w</target_index>
749
    <target_index>Name:w</target_index>
761
    <target_index>Name:w</target_index>
750
    <target_index>Conference-name:w</target_index>
762
    <target_index>Conference-name:w</target_index>
751
  </index_data_field>
763
  </index_data_field>
752
  <!--record.abs line 266: melm 830$9      Koha-Auth-Number-->
764
  <!--record.abs line 269: melm 830$9      Koha-Auth-Number-->
753
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="830" subfields="9">
765
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="830" subfields="9">
754
    <target_index>Koha-Auth-Number:w</target_index>
766
    <target_index>Koha-Auth-Number:w</target_index>
755
  </index_subfields>
767
  </index_subfields>
756
  <!--record.abs line 267: melm 830        Title,Title-series-->
768
  <!--record.abs line 270: melm 830        Title,Title-series-->
757
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="830">
769
  <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="830">
758
    <target_index>Title:w</target_index>
770
    <target_index>Title:w</target_index>
759
    <target_index>Title-series:w</target_index>
771
    <target_index>Title-series:w</target_index>
760
  </index_data_field>
772
  </index_data_field>
761
  <!--record.abs line 272: melm 999$c      Local-Number:n,Local-Number:w,Local-Number:s-->
773
  <!--record.abs line 275: melm 999$c      Local-Number:n,Local-Number:w,Local-Number:s-->
762
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="999" subfields="c">
774
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="999" subfields="c">
763
    <target_index>Local-Number:n</target_index>
775
    <target_index>Local-Number:n</target_index>
764
    <target_index>Local-Number:w</target_index>
776
    <target_index>Local-Number:w</target_index>
765
    <target_index>Local-Number:s</target_index>
777
    <target_index>Local-Number:s</target_index>
766
  </index_subfields>
778
  </index_subfields>
767
  <!--record.abs line 273: melm 999$d      biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s-->
779
  <!--record.abs line 276: melm 999$d      biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s-->
768
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="999" subfields="d">
780
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="999" subfields="d">
769
    <target_index>biblioitemnumber:n</target_index>
781
    <target_index>biblioitemnumber:n</target_index>
770
    <target_index>biblioitemnumber:w</target_index>
782
    <target_index>biblioitemnumber:w</target_index>
771
    <target_index>biblioitemnumber:s</target_index>
783
    <target_index>biblioitemnumber:s</target_index>
772
  </index_subfields>
784
  </index_subfields>
773
  <!--record.abs line 274: melm 942$0      totalissues:n,totalissues:s-->
785
  <!--record.abs line 277: melm 942$0      totalissues:n,totalissues:s-->
774
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="0">
786
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="0">
775
    <target_index>totalissues:n</target_index>
787
    <target_index>totalissues:n</target_index>
776
    <target_index>totalissues:s</target_index>
788
    <target_index>totalissues:s</target_index>
777
  </index_subfields>
789
  </index_subfields>
778
  <!--record.abs line 275: melm 942$2      cn-bib-source-->
790
  <!--record.abs line 278: melm 942$2      cn-bib-source-->
779
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="2">
791
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="2">
780
    <target_index>cn-bib-source:w</target_index>
792
    <target_index>cn-bib-source:w</target_index>
781
  </index_subfields>
793
  </index_subfields>
782
  <!--record.abs line 276: melm 942$6      cn-bib-sort:n,cn-bib-sort:s-->
794
  <!--record.abs line 279: melm 942$6      cn-bib-sort:n,cn-bib-sort:s-->
783
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="6">
795
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="6">
784
    <target_index>cn-bib-sort:n</target_index>
796
    <target_index>cn-bib-sort:n</target_index>
785
    <target_index>cn-bib-sort:s</target_index>
797
    <target_index>cn-bib-sort:s</target_index>
786
  </index_subfields>
798
  </index_subfields>
787
  <!--record.abs line 277: melm 942$c      itemtype:w-->
799
  <!--record.abs line 280: melm 942$c      itemtype:w-->
788
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="c">
800
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="c">
789
    <target_index>itemtype:w</target_index>
801
    <target_index>itemtype:w</target_index>
790
  </index_subfields>
802
  </index_subfields>
791
  <!--record.abs line 278: melm 942$n      Suppress:w,Suppress:n-->
803
  <!--record.abs line 281: melm 942$n      Suppress:w,Suppress:n-->
792
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="n">
804
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="n">
793
    <target_index>Suppress:w</target_index>
805
    <target_index>Suppress:w</target_index>
794
    <target_index>Suppress:n</target_index>
806
    <target_index>Suppress:n</target_index>
795
  </index_subfields>
807
  </index_subfields>
796
  <!--record.abs line 281: melm 942$h      cn-class-->
808
  <!--record.abs line 284: melm 942$h      cn-class-->
797
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="h">
809
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="h">
798
    <target_index>cn-class:w</target_index>
810
    <target_index>cn-class:w</target_index>
799
  </index_subfields>
811
  </index_subfields>
800
  <!--record.abs line 282: melm 942$i      cn-item-->
812
  <!--record.abs line 285: melm 942$i      cn-item-->
801
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="i">
813
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="i">
802
    <target_index>cn-item:w</target_index>
814
    <target_index>cn-item:w</target_index>
803
  </index_subfields>
815
  </index_subfields>
804
  <!--record.abs line 283: melm 942$k      cn-prefix-->
816
  <!--record.abs line 286: melm 942$k      cn-prefix-->
805
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="k">
817
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="k">
806
    <target_index>cn-prefix:w</target_index>
818
    <target_index>cn-prefix:w</target_index>
807
  </index_subfields>
819
  </index_subfields>
808
  <!--record.abs line 284: melm 942$m      cn-suffix-->
820
  <!--record.abs line 287: melm 942$m      cn-suffix-->
809
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="m">
821
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="m">
810
    <target_index>cn-suffix:w</target_index>
822
    <target_index>cn-suffix:w</target_index>
811
  </index_subfields>
823
  </index_subfields>
812
  <!--record.abs line 287: melm 952$0      withdrawn:n,withdrawn:w-->
824
  <!--record.abs line 290: melm 952$0      withdrawn:n,withdrawn:w-->
813
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="0">
825
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="0">
814
    <target_index>withdrawn:n</target_index>
826
    <target_index>withdrawn:n</target_index>
815
    <target_index>withdrawn:w</target_index>
827
    <target_index>withdrawn:w</target_index>
816
  </index_subfields>
828
  </index_subfields>
817
  <!--record.abs line 288: melm 952$1      lost,lost:n-->
829
  <!--record.abs line 291: melm 952$1      lost,lost:n-->
818
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="1">
830
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="1">
819
    <target_index>lost:w</target_index>
831
    <target_index>lost:w</target_index>
820
    <target_index>lost:n</target_index>
832
    <target_index>lost:n</target_index>
821
  </index_subfields>
833
  </index_subfields>
822
  <!--record.abs line 289: melm 952$2      classification-source-->
834
  <!--record.abs line 292: melm 952$2      classification-source-->
823
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="2">
835
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="2">
824
    <target_index>classification-source:w</target_index>
836
    <target_index>classification-source:w</target_index>
825
  </index_subfields>
837
  </index_subfields>
826
  <!--record.abs line 290: melm 952$3      materials-specified-->
838
  <!--record.abs line 293: melm 952$3      materials-specified-->
827
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="3">
839
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="3">
828
    <target_index>materials-specified:w</target_index>
840
    <target_index>materials-specified:w</target_index>
829
  </index_subfields>
841
  </index_subfields>
830
  <!--record.abs line 291: melm 952$4      damaged:n,damaged:w-->
842
  <!--record.abs line 294: melm 952$4      damaged:n,damaged:w-->
831
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="4">
843
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="4">
832
    <target_index>damaged:n</target_index>
844
    <target_index>damaged:n</target_index>
833
    <target_index>damaged:w</target_index>
845
    <target_index>damaged:w</target_index>
834
  </index_subfields>
846
  </index_subfields>
835
  <!--record.abs line 292: melm 952$5      restricted:n,restricted:w-->
847
  <!--record.abs line 295: melm 952$5      restricted:n,restricted:w-->
836
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="5">
848
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="5">
837
    <target_index>restricted:n</target_index>
849
    <target_index>restricted:n</target_index>
838
    <target_index>restricted:w</target_index>
850
    <target_index>restricted:w</target_index>
839
  </index_subfields>
851
  </index_subfields>
840
  <!--record.abs line 293: melm 952$6      cn-sort:n,cn-sort:s-->
852
  <!--record.abs line 296: melm 952$6      cn-sort:n,cn-sort:s-->
841
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="6">
853
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="6">
842
    <target_index>cn-sort:n</target_index>
854
    <target_index>cn-sort:n</target_index>
843
    <target_index>cn-sort:s</target_index>
855
    <target_index>cn-sort:s</target_index>
844
  </index_subfields>
856
  </index_subfields>
845
  <!--record.abs line 294: melm 952$7      notforloan:n,notforloan:w-->
857
  <!--record.abs line 297: melm 952$7      notforloan:n,notforloan:w-->
846
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="7">
858
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="7">
847
    <target_index>notforloan:n</target_index>
859
    <target_index>notforloan:n</target_index>
848
    <target_index>notforloan:w</target_index>
860
    <target_index>notforloan:w</target_index>
849
  </index_subfields>
861
  </index_subfields>
850
  <!--record.abs line 295: melm 952$8      ccode-->
862
  <!--record.abs line 298: melm 952$8      ccode-->
851
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="8">
863
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="8">
852
    <target_index>ccode:w</target_index>
864
    <target_index>ccode:w</target_index>
853
  </index_subfields>
865
  </index_subfields>
854
  <!--record.abs line 296: melm 952$9      itemnumber:n,itemnumber:s-->
866
  <!--record.abs line 299: melm 952$9      itemnumber:n,itemnumber:s-->
855
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="9">
867
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="9">
856
    <target_index>itemnumber:n</target_index>
868
    <target_index>itemnumber:n</target_index>
857
    <target_index>itemnumber:s</target_index>
869
    <target_index>itemnumber:s</target_index>
858
  </index_subfields>
870
  </index_subfields>
859
  <!--record.abs line 297: melm 952$a      homebranch-->
871
  <!--record.abs line 300: melm 952$a      homebranch-->
860
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="a">
872
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="a">
861
    <target_index>homebranch:w</target_index>
873
    <target_index>homebranch:w</target_index>
862
  </index_subfields>
874
  </index_subfields>
863
  <!--record.abs line 298: melm 952$b      holdingbranch-->
875
  <!--record.abs line 301: melm 952$b      holdingbranch-->
864
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="b">
876
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="b">
865
    <target_index>holdingbranch:w</target_index>
877
    <target_index>holdingbranch:w</target_index>
866
  </index_subfields>
878
  </index_subfields>
867
  <!--record.abs line 299: melm 952$c      location-->
879
  <!--record.abs line 302: melm 952$c      location-->
868
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="c">
880
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="c">
869
    <target_index>location:w</target_index>
881
    <target_index>location:w</target_index>
870
  </index_subfields>
882
  </index_subfields>
871
  <!--record.abs line 302: melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s-->
883
  <!--record.abs line 305: melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s-->
872
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="d">
884
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="d">
873
    <target_index>Date-of-acquisition:w</target_index>
885
    <target_index>Date-of-acquisition:w</target_index>
874
    <target_index>Date-of-acquisition:d</target_index>
886
    <target_index>Date-of-acquisition:d</target_index>
875
    <target_index>Date-of-acquisition:s</target_index>
887
    <target_index>Date-of-acquisition:s</target_index>
876
  </index_subfields>
888
  </index_subfields>
877
  <!--record.abs line 303: melm 952$e      acqsource-->
889
  <!--record.abs line 306: melm 952$e      acqsource-->
878
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="e">
890
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="e">
879
    <target_index>acqsource:w</target_index>
891
    <target_index>acqsource:w</target_index>
880
  </index_subfields>
892
  </index_subfields>
881
  <!--record.abs line 304: melm 952$f      coded-location-qualifier-->
893
  <!--record.abs line 307: melm 952$f      coded-location-qualifier-->
882
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="f">
894
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="f">
883
    <target_index>coded-location-qualifier:w</target_index>
895
    <target_index>coded-location-qualifier:w</target_index>
884
  </index_subfields>
896
  </index_subfields>
885
  <!--record.abs line 305: melm 952$g      price-->
897
  <!--record.abs line 308: melm 952$g      price-->
886
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="g">
898
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="g">
887
    <target_index>price:w</target_index>
899
    <target_index>price:w</target_index>
888
  </index_subfields>
900
  </index_subfields>
889
  <!--record.abs line 308: melm 952$j      stack:n,stack:w-->
901
  <!--record.abs line 311: melm 952$j      stack:n,stack:w-->
890
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="j">
902
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="j">
891
    <target_index>stack:n</target_index>
903
    <target_index>stack:n</target_index>
892
    <target_index>stack:w</target_index>
904
    <target_index>stack:w</target_index>
893
  </index_subfields>
905
  </index_subfields>
894
  <!--record.abs line 310: melm 952$l      issues:n,issues:w,issues:s-->
906
  <!--record.abs line 313: melm 952$l      issues:n,issues:w,issues:s-->
895
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="l">
907
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="l">
896
    <target_index>issues:n</target_index>
908
    <target_index>issues:n</target_index>
897
    <target_index>issues:w</target_index>
909
    <target_index>issues:w</target_index>
898
    <target_index>issues:s</target_index>
910
    <target_index>issues:s</target_index>
899
  </index_subfields>
911
  </index_subfields>
900
  <!--record.abs line 311: melm 952$m      renewals:n,renewals:w-->
912
  <!--record.abs line 314: melm 952$m      renewals:n,renewals:w-->
901
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="m">
913
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="m">
902
    <target_index>renewals:n</target_index>
914
    <target_index>renewals:n</target_index>
903
    <target_index>renewals:w</target_index>
915
    <target_index>renewals:w</target_index>
904
  </index_subfields>
916
  </index_subfields>
905
  <!--record.abs line 312: melm 952$n      reserves:n,reserves:w-->
917
  <!--record.abs line 315: melm 952$n      reserves:n,reserves:w-->
906
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="n">
918
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="n">
907
    <target_index>reserves:n</target_index>
919
    <target_index>reserves:n</target_index>
908
    <target_index>reserves:w</target_index>
920
    <target_index>reserves:w</target_index>
909
  </index_subfields>
921
  </index_subfields>
910
  <!--record.abs line 313: melm 952$o      Local-classification:w,Local-classification:p,Local-classification:s-->
922
  <!--record.abs line 316: melm 952$o      Local-classification:w,Local-classification:p,Local-classification:s-->
911
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="o">
923
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="o">
912
    <target_index>Local-classification:w</target_index>
924
    <target_index>Local-classification:w</target_index>
913
    <target_index>Local-classification:p</target_index>
925
    <target_index>Local-classification:p</target_index>
914
    <target_index>Local-classification:s</target_index>
926
    <target_index>Local-classification:s</target_index>
915
  </index_subfields>
927
  </index_subfields>
916
  <!--record.abs line 314: melm 952$p      barcode,barcode:n-->
928
  <!--record.abs line 317: melm 952$p      barcode,barcode:n-->
917
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="p">
929
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="p">
918
    <target_index>barcode:w</target_index>
930
    <target_index>barcode:w</target_index>
919
    <target_index>barcode:n</target_index>
931
    <target_index>barcode:n</target_index>
920
  </index_subfields>
932
  </index_subfields>
921
  <!--record.abs line 315: melm 952$q      onloan:n,onloan:w-->
933
  <!--record.abs line 318: melm 952$q      onloan:n,onloan:w-->
922
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="q">
934
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="q">
923
    <target_index>onloan:n</target_index>
935
    <target_index>onloan:n</target_index>
924
    <target_index>onloan:w</target_index>
936
    <target_index>onloan:w</target_index>
925
  </index_subfields>
937
  </index_subfields>
926
  <!--record.abs line 316: melm 952$r      datelastseen-->
938
  <!--record.abs line 319: melm 952$r      datelastseen-->
927
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="r">
939
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="r">
928
    <target_index>datelastseen:w</target_index>
940
    <target_index>datelastseen:w</target_index>
929
  </index_subfields>
941
  </index_subfields>
930
  <!--record.abs line 317: melm 952$s      datelastborrowed-->
942
  <!--record.abs line 320: melm 952$s      datelastborrowed-->
931
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="s">
943
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="s">
932
    <target_index>datelastborrowed:w</target_index>
944
    <target_index>datelastborrowed:w</target_index>
933
  </index_subfields>
945
  </index_subfields>
934
  <!--record.abs line 318: melm 952$t      copynumber-->
946
  <!--record.abs line 321: melm 952$t      copynumber-->
935
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="t">
947
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="t">
936
    <target_index>copynumber:w</target_index>
948
    <target_index>copynumber:w</target_index>
937
  </index_subfields>
949
  </index_subfields>
938
  <!--record.abs line 319: melm 952$u      uri:u-->
950
  <!--record.abs line 322: melm 952$u      uri:u-->
939
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="u">
951
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="u">
940
    <target_index>uri:u</target_index>
952
    <target_index>uri:u</target_index>
941
  </index_subfields>
953
  </index_subfields>
942
  <!--record.abs line 320: melm 952$v      replacementprice-->
954
  <!--record.abs line 323: melm 952$v      replacementprice-->
943
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="v">
955
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="v">
944
    <target_index>replacementprice:w</target_index>
956
    <target_index>replacementprice:w</target_index>
945
  </index_subfields>
957
  </index_subfields>
946
  <!--record.abs line 321: melm 952$w      replacementpricedate-->
958
  <!--record.abs line 324: melm 952$w      replacementpricedate-->
947
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="w">
959
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="w">
948
    <target_index>replacementpricedate:w</target_index>
960
    <target_index>replacementpricedate:w</target_index>
949
  </index_subfields>
961
  </index_subfields>
950
  <!--record.abs line 323: melm 952$y      itype:w-->
962
  <!--record.abs line 326: melm 952$y      itype:w-->
951
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
963
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
952
    <target_index>itype:w</target_index>
964
    <target_index>itype:w</target_index>
953
  </index_subfields>
965
  </index_subfields>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (+21 lines)
Lines 616-627 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
616
  </xslo:template>
616
  </xslo:template>
617
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
617
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
618
    <xslo:for-each select="marc:subfield">
618
    <xslo:for-each select="marc:subfield">
619
      <xslo:if test="contains('a', @code)">
620
        <z:index name="Host-item:w">
621
          <xslo:value-of select="."/>
622
        </z:index>
623
      </xslo:if>
624
    </xslo:for-each>
625
    <xslo:for-each select="marc:subfield">
626
      <xslo:if test="contains('9', @code)">
627
        <z:index name="Host-Item-Number:w">
628
          <xslo:value-of select="."/>
629
        </z:index>
630
      </xslo:if>
631
    </xslo:for-each>
632
    <xslo:for-each select="marc:subfield">
619
      <xslo:if test="contains('t', @code)">
633
      <xslo:if test="contains('t', @code)">
620
        <z:index name="Host-item:w">
634
        <z:index name="Host-item:w">
621
          <xslo:value-of select="."/>
635
          <xslo:value-of select="."/>
622
        </z:index>
636
        </z:index>
623
      </xslo:if>
637
      </xslo:if>
624
    </xslo:for-each>
638
    </xslo:for-each>
639
    <xslo:for-each select="marc:subfield">
640
      <xslo:if test="contains('w', @code)">
641
        <z:index name="Record-control-number:w">
642
          <xslo:value-of select="."/>
643
        </z:index>
644
      </xslo:if>
645
    </xslo:for-each>
625
  </xslo:template>
646
  </xslo:template>
626
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
647
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
627
    <xslo:for-each select="marc:subfield">
648
    <xslo:for-each select="marc:subfield">
(-)a/etc/zebradb/marc_defs/normarc/biblios/record.abs (+3 lines)
Lines 244-250 melm 730$r Music-key Link Here
244
melm 730$9      Koha-Auth-Number
244
melm 730$9      Koha-Auth-Number
245
melm 730        Title,Title-uniform
245
melm 730        Title,Title-uniform
246
melm 740        Title,Title-other-variant
246
melm 740        Title,Title-other-variant
247
melm 773$a      Host-item
248
melm 773$9	    Host-Item-Number
247
melm 773$t      Host-item
249
melm 773$t      Host-item
250
melm 773$w      Record-control-number
248
melm 780$t      Title
251
melm 780$t      Title
249
melm 780        Title,Title-former,Related-periodical
252
melm 780        Title,Title-former,Related-periodical
250
melm 785        Related-periodical
253
melm 785        Related-periodical
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl (+66 lines)
Lines 14-19 Link Here
14
    <xsl:template match="marc:record">
14
    <xsl:template match="marc:record">
15
15
16
        <!-- Sysprefs -->
16
        <!-- Sysprefs -->
17
        <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
17
        <xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
18
        <xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
18
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
19
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
19
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
20
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
Lines 187-192 Link Here
187
	        </span>
188
	        </span>
188
        </xsl:if>
189
        </xsl:if>
189
190
191
        <!-- Analytics -->
192
        <xsl:if test="$leader7='s' or $leader7='c'">
193
        <span class="results_summary analytics"><span class="label">Analytics: </span>
194
            <a>
195
            <xsl:choose>
196
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
197
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
198
            </xsl:when>
199
            <xsl:otherwise>
200
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
201
            </xsl:otherwise>
202
            </xsl:choose>
203
            <xsl:text>Show analytics</xsl:text>
204
            </a>
205
        </span>
206
        </xsl:if>
207
208
        <!-- 773 - Links from child to parent -->
209
        <xsl:if test="marc:datafield[@tag=773]">
210
        <xsl:for-each select="marc:datafield[@tag=773]">
211
        <xsl:if test="@ind1=0">
212
        <span class="results_summary in"><span class="label">
213
        <xsl:choose>
214
        <xsl:when test="@ind2=' '">
215
            In:
216
        </xsl:when>
217
        <xsl:when test="@ind2=8">
218
            <xsl:if test="marc:subfield[@code='i']">
219
                <xsl:value-of select="marc:subfield[@code='i']"/>
220
            </xsl:if>
221
        </xsl:when>
222
        </xsl:choose>
223
        </span>
224
                <xsl:variable name="f773">
225
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
226
                        <xsl:with-param name="codes">at</xsl:with-param>
227
                    </xsl:call-template></xsl:with-param></xsl:call-template>
228
                </xsl:variable>
229
            <xsl:choose>
230
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
231
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
232
                        <xsl:value-of select="translate($f773, '()', '')"/>
233
                    </a>
234
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
235
                </xsl:when>
236
                <xsl:when test="marc:subfield[@code='0']">
237
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
238
                        <xsl:value-of select="$f773"/>
239
                    </a>
240
                </xsl:when>
241
                <xsl:otherwise>
242
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
243
                        <xsl:value-of select="$f773"/>
244
                    </a>
245
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
246
                </xsl:otherwise>
247
            </xsl:choose>
248
        </span>
249
        <xsl:if test="marc:subfield[@code='n']">
250
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
251
        </xsl:if>
252
        </xsl:if>
253
        </xsl:for-each>
254
        </xsl:if>
255
190
        <!-- Publisher Statement -->
256
        <!-- Publisher Statement -->
191
        
257
        
192
        <xsl:if test="marc:datafield[@tag=260]">
258
        <xsl:if test="marc:datafield[@tag=260]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl (-1 / +67 lines)
Lines 6-12 Link Here
6
  xmlns:items="http://www.koha-community.org/items"
6
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  exclude-result-prefixes="marc items">
8
  exclude-result-prefixes="marc items">
9
    <xsl:import href="MARC21slimUtils.xsl"/>
9
    <xsl:import href="NORMARCslimUtils.xsl"/>
10
    <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
10
    <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
11
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
11
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
12
    <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
12
    <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
Lines 16-21 Link Here
16
    </xsl:template>
16
    </xsl:template>
17
    <xsl:template match="marc:record">
17
    <xsl:template match="marc:record">
18
18
19
        <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
19
        <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
20
        <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
20
        <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
21
        <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
21
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
22
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
Lines 382-387 Link Here
382
	</span>
383
	</span>
383
    </xsl:if>
384
    </xsl:if>
384
385
386
        <!-- Analytics -->
387
        <xsl:if test="$leader7='s' or $leader7='c'">
388
        <span class="results_summary analytics"><span class="label">Analytics: </span>
389
            <a>
390
            <xsl:choose>
391
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
392
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
393
            </xsl:when>
394
            <xsl:otherwise>
395
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
396
            </xsl:otherwise>
397
            </xsl:choose>
398
            <xsl:text>Show analytics</xsl:text>
399
            </a>
400
        </span>
401
        </xsl:if>
402
403
        <!-- 773 - Links from child to parent -->
404
        <xsl:if test="marc:datafield[@tag=773]">
405
        <xsl:for-each select="marc:datafield[@tag=773]">
406
        <xsl:if test="@ind1=0">
407
        <span class="results_summary in"><span class="label">
408
        <xsl:choose>
409
        <xsl:when test="@ind2=' '">
410
            In:
411
        </xsl:when>
412
        <xsl:when test="@ind2=8">
413
            <xsl:if test="marc:subfield[@code='i']">
414
                <xsl:value-of select="marc:subfield[@code='i']"/>
415
            </xsl:if>
416
        </xsl:when>
417
        </xsl:choose>
418
        </span>
419
                <xsl:variable name="f773">
420
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
421
                        <xsl:with-param name="codes">at</xsl:with-param>
422
                    </xsl:call-template></xsl:with-param></xsl:call-template>
423
                </xsl:variable>
424
            <xsl:choose>
425
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
426
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
427
                        <xsl:value-of select="translate($f773, '()', '')"/>
428
                    </a>
429
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
430
                </xsl:when>
431
                <xsl:when test="marc:subfield[@code='0']">
432
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
433
                        <xsl:value-of select="$f773"/>
434
                    </a>
435
                </xsl:when>
436
                <xsl:otherwise>
437
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
438
                        <xsl:value-of select="$f773"/>
439
                    </a>
440
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
441
                </xsl:otherwise>
442
            </xsl:choose>
443
        </span>
444
        <xsl:if test="marc:subfield[@code='n']">
445
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
446
        </xsl:if>
447
        </xsl:if>
448
        </xsl:for-each>
449
        </xsl:if>
450
385
    <span class="results_summary">
451
    <span class="results_summary">
386
    <xsl:if test="$typeOf008!=''">
452
    <xsl:if test="$typeOf008!=''">
387
        <span class="label">Materialtype: </span>
453
        <span class="label">Materialtype: </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl (+19 lines)
Lines 67-72 Link Here
67
<xsl:text> </xsl:text>
67
<xsl:text> </xsl:text>
68
	</xsl:template>
68
	</xsl:template>
69
69
70
	<!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
71
	     Parameter: control number string.
72
	     Assumes LOC convention: (OrgCode)recordNumber.
73
	     If OrgCode is not present, return full string.
74
	     Additionally, handle various brackets/parentheses. Chop leading and trailing spaces.
75
	-->
76
	<xsl:template name="extractControlNumber">
77
	    <xsl:param name="subfieldW"/>
78
	    <xsl:variable name="tranW" select="translate($subfieldW,']})&gt;','))))')"/>
79
	    <xsl:choose>
80
	      <xsl:when test="contains($tranW,')')">
81
	        <xsl:value-of select="normalize-space(translate(substring-after($tranW,')'),'[]{}()&lt;&gt;',''))"/>
82
	      </xsl:when>
83
	      <xsl:otherwise>
84
	        <xsl:value-of select="normalize-space($subfieldW)"/>
85
	      </xsl:otherwise>
86
	    </xsl:choose>
87
	</xsl:template>
88
70
<xsl:template name="nameABCDQ">
89
<xsl:template name="nameABCDQ">
71
<xsl:call-template name="chopPunctuation">
90
<xsl:call-template name="chopPunctuation">
72
<xsl:with-param name="chopString">
91
<xsl:with-param name="chopString">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl (+66 lines)
Lines 17-22 Link Here
17
    <xsl:template match="marc:record">
17
    <xsl:template match="marc:record">
18
18
19
        <!-- Sysprefs -->
19
        <!-- Sysprefs -->
20
        <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
20
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
21
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
21
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
22
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
22
        <xsl:variable name="TracingQuotesLeft">
23
        <xsl:variable name="TracingQuotesLeft">
Lines 207-212 Link Here
207
	        </span>
208
	        </span>
208
        </xsl:if>
209
        </xsl:if>
209
210
211
        <!-- Analytics -->
212
        <xsl:if test="$leader7='s' or $leader7='c'">
213
        <span class="results_summary analytics"><span class="label">Analytics: </span>
214
            <a>
215
            <xsl:choose>
216
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
217
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
218
            </xsl:when>
219
            <xsl:otherwise>
220
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
221
            </xsl:otherwise>
222
            </xsl:choose>
223
            <xsl:text>Show analytics</xsl:text>
224
            </a>
225
        </span>
226
        </xsl:if>
227
228
        <!-- 773 - Links from child to parent -->
229
        <xsl:if test="marc:datafield[@tag=773]">
230
        <xsl:for-each select="marc:datafield[@tag=773]">
231
        <xsl:if test="@ind1=0">
232
        <span class="results_summary in"><span class="label">
233
        <xsl:choose>
234
        <xsl:when test="@ind2=' '">
235
            In:
236
        </xsl:when>
237
        <xsl:when test="@ind2=8">
238
            <xsl:if test="marc:subfield[@code='i']">
239
                <xsl:value-of select="marc:subfield[@code='i']"/>
240
            </xsl:if>
241
        </xsl:when>
242
        </xsl:choose>
243
        </span>
244
                <xsl:variable name="f773">
245
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
246
                        <xsl:with-param name="codes">at</xsl:with-param>
247
                    </xsl:call-template></xsl:with-param></xsl:call-template>
248
                </xsl:variable>
249
            <xsl:choose>
250
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
251
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
252
                        <xsl:value-of select="translate($f773, '()', '')"/>
253
                    </a>
254
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
255
                </xsl:when>
256
                <xsl:when test="marc:subfield[@code='0']">
257
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
258
                        <xsl:value-of select="$f773"/>
259
                    </a>
260
                </xsl:when>
261
                <xsl:otherwise>
262
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
263
                        <xsl:value-of select="$f773"/>
264
                    </a>
265
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
266
                </xsl:otherwise>
267
            </xsl:choose>
268
        </span>
269
        <xsl:if test="marc:subfield[@code='n']">
270
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
271
        </xsl:if>
272
        </xsl:if>
273
        </xsl:for-each>
274
        </xsl:if>
275
210
        <!-- Publisher Statement -->
276
        <!-- Publisher Statement -->
211
        
277
        
212
        <xsl:if test="marc:datafield[@tag=260]">
278
        <xsl:if test="marc:datafield[@tag=260]">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl (+67 lines)
Lines 18-23 Link Here
18
    </xsl:template>
18
    </xsl:template>
19
    <xsl:template match="marc:record">
19
    <xsl:template match="marc:record">
20
20
21
    <!-- System preferences -->
22
    <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
21
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
22
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
24
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
23
25
Lines 372-377 Link Here
372
	</span>
374
	</span>
373
    </xsl:if>
375
    </xsl:if>
374
376
377
        <!-- Analytics -->
378
        <xsl:if test="$leader7='s' or $leader7='c'">
379
        <span class="results_summary analytics"><span class="label">Analytics: </span>
380
            <a>
381
            <xsl:choose>
382
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
383
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
384
            </xsl:when>
385
            <xsl:otherwise>
386
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
387
            </xsl:otherwise>
388
            </xsl:choose>
389
            <xsl:text>Show analytics</xsl:text>
390
            </a>
391
        </span>
392
        </xsl:if>
393
394
        <!-- 773 - Links from child to parent -->
395
        <xsl:if test="marc:datafield[@tag=773]">
396
        <xsl:for-each select="marc:datafield[@tag=773]">
397
        <xsl:if test="@ind1=0">
398
        <span class="results_summary in"><span class="label">
399
        <xsl:choose>
400
        <xsl:when test="@ind2=' '">
401
            In:
402
        </xsl:when>
403
        <xsl:when test="@ind2=8">
404
            <xsl:if test="marc:subfield[@code='i']">
405
                <xsl:value-of select="marc:subfield[@code='i']"/>
406
            </xsl:if>
407
        </xsl:when>
408
        </xsl:choose>
409
        </span>
410
                <xsl:variable name="f773">
411
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
412
                        <xsl:with-param name="codes">at</xsl:with-param>
413
                    </xsl:call-template></xsl:with-param></xsl:call-template>
414
                </xsl:variable>
415
            <xsl:choose>
416
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
417
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
418
                        <xsl:value-of select="translate($f773, '()', '')"/>
419
                    </a>
420
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
421
                </xsl:when>
422
                <xsl:when test="marc:subfield[@code='0']">
423
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
424
                        <xsl:value-of select="$f773"/>
425
                    </a>
426
                </xsl:when>
427
                <xsl:otherwise>
428
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
429
                        <xsl:value-of select="$f773"/>
430
                    </a>
431
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
432
                </xsl:otherwise>
433
            </xsl:choose>
434
        </span>
435
        <xsl:if test="marc:subfield[@code='n']">
436
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
437
        </xsl:if>
438
        </xsl:if>
439
        </xsl:for-each>
440
        </xsl:if>
441
375
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
442
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
376
    <span class="results_summary">
443
    <span class="results_summary">
377
    <xsl:if test="$typeOf008!=''">
444
    <xsl:if test="$typeOf008!=''">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslimUtils.xsl (-1 / +19 lines)
Lines 68-73 Link Here
68
<xsl:text> </xsl:text>
68
<xsl:text> </xsl:text>
69
	</xsl:template>
69
	</xsl:template>
70
70
71
	<!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
72
	     Parameter: control number string.
73
	     Assumes LOC convention: (OrgCode)recordNumber.
74
	     If OrgCode is not present, return full string.
75
	     Additionally, handle various brackets/parentheses. Chop leading and trailing spaces.
76
	-->
77
	<xsl:template name="extractControlNumber">
78
	    <xsl:param name="subfieldW"/>
79
	    <xsl:variable name="tranW" select="translate($subfieldW,']})&gt;','))))')"/>
80
	    <xsl:choose>
81
	      <xsl:when test="contains($tranW,')')">
82
	        <xsl:value-of select="normalize-space(translate(substring-after($tranW,')'),'[]{}()&lt;&gt;',''))"/>
83
	      </xsl:when>
84
	      <xsl:otherwise>
85
	        <xsl:value-of select="normalize-space($subfieldW)"/>
86
	      </xsl:otherwise>
87
	    </xsl:choose>
88
	</xsl:template>
89
71
<xsl:template name="nameABCDQ">
90
<xsl:template name="nameABCDQ">
72
<xsl:call-template name="chopPunctuation">
91
<xsl:call-template name="chopPunctuation">
73
<xsl:with-param name="chopString">
92
<xsl:with-param name="chopString">
74
- 

Return to bug 9213