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

(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (-1 / +40 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
3
  <!--record.abs line 64: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
4
  <!--record.abs line 64: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
4
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
5
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
5
    <target_index>llength:w</target_index>
6
    <target_index>llength:w</target_index>
Lines 963-966 Link Here
963
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
964
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="y">
964
    <target_index>itype:w</target_index>
965
    <target_index>itype:w</target_index>
965
  </index_subfields>
966
  </index_subfields>
967
968
  <facet tag="100" subfields="a">
969
    <target_index>au:0</target_index>
970
  </facet>
971
  <facet tag="110" subfields="a">
972
    <target_index>au:0</target_index>
973
  </facet>
974
  <facet tag="440" subfields="a">
975
    <target_index>se:0</target_index>
976
  </facet>
977
  <facet tag="490" subfields="a">
978
    <target_index>>se:0</target_index>
979
  </facet>
980
  <facet tag="630" subfields="a">
981
    <target_index>su-ut:0</target_index>
982
  </facet>
983
  <facet tag="650" subfields="a">
984
    <target_index>su-to:0</target_index>
985
  </facet>
986
  <facet tag="651" subfields="a">
987
    <target_index>su-geo:0</target_index>
988
  </facet>
989
  <facet tag="700" subfields="a">
990
    <target_index>au:0</target_index>
991
  </facet>
992
  <facet tag="942" subfields="c">
993
    <target_index>itype:0</target_index>
994
  </facet>
995
  <facet tag="952" subfields="a">
996
    <target_index>homebranch:0</target_index>
997
  </facet>
998
  <facet tag="952" subfields="b">
999
    <target_index>holdingbranch:0</target_index>
1000
  </facet>
1001
  <facet tag="952" subfields="c">
1002
    <target_index>location:0</target_index>
1003
  </facet>
1004
966
</kohaidx:index_defs>
1005
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (-1 / +78 lines)
Lines 12-17 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
12
  <xslo:template match="text()"/>
12
  <xslo:template match="text()"/>
13
  <xslo:template match="text()" mode="index_subfields"/>
13
  <xslo:template match="text()" mode="index_subfields"/>
14
  <xslo:template match="text()" mode="index_data_field"/>
14
  <xslo:template match="text()" mode="index_data_field"/>
15
  <xslo:template match="text()" mode="index_facets"/>
15
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading_conditional"/>
17
  <xslo:template match="text()" mode="index_heading_conditional"/>
17
  <xslo:template match="text()" mode="index_match_heading"/>
18
  <xslo:template match="text()" mode="index_match_heading"/>
Lines 35-40 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
35
      <xslo:apply-templates/>
36
      <xslo:apply-templates/>
36
      <xslo:apply-templates mode="index_subfields"/>
37
      <xslo:apply-templates mode="index_subfields"/>
37
      <xslo:apply-templates mode="index_data_field"/>
38
      <xslo:apply-templates mode="index_data_field"/>
39
      <xslo:apply-templates mode="index_facets"/>
38
      <xslo:apply-templates mode="index_heading"/>
40
      <xslo:apply-templates mode="index_heading"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
41
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
42
      <xslo:apply-templates mode="index_match_heading"/>
Lines 1769-1774 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1769
      <xslo:value-of select="normalize-space($raw_heading)"/>
1771
      <xslo:value-of select="normalize-space($raw_heading)"/>
1770
    </z:index>
1772
    </z:index>
1771
  </xslo:template>
1773
  </xslo:template>
1774
  <xslo:template mode="index_facets" match="marc:datafield[@tag='100']">
1775
    <xslo:if test="not(@ind1='z')">
1776
      <z:index name="au:0">
1777
        <xslo:value-of select="marc:subfield[@code='a']"/>
1778
      </z:index>
1779
    </xslo:if>
1780
  </xslo:template>
1781
  <xslo:template mode="index_facets" match="marc:datafield[@tag='110']">
1782
    <xslo:if test="not(@ind1='z')">
1783
      <z:index name="au:0">
1784
        <xslo:value-of select="marc:subfield[@code='a']"/>
1785
      </z:index>
1786
    </xslo:if>
1787
  </xslo:template>
1788
  <xslo:template mode="index_facets" match="marc:datafield[@tag='440']">
1789
    <xslo:if test="not(@ind1='z')">
1790
      <z:index name="se:0">
1791
        <xslo:value-of select="marc:subfield[@code='a']"/>
1792
      </z:index>
1793
    </xslo:if>
1794
  </xslo:template>
1795
  <xslo:template mode="index_facets" match="marc:datafield[@tag='490']">
1796
    <xslo:if test="not(@ind1='z')">
1797
      <z:index name="&gt;se:0">
1798
        <xslo:value-of select="marc:subfield[@code='a']"/>
1799
      </z:index>
1800
    </xslo:if>
1801
  </xslo:template>
1802
  <xslo:template mode="index_facets" match="marc:datafield[@tag='630']">
1803
    <xslo:if test="not(@ind1='z')">
1804
      <z:index name="su-ut:0">
1805
        <xslo:value-of select="marc:subfield[@code='a']"/>
1806
      </z:index>
1807
    </xslo:if>
1808
  </xslo:template>
1809
  <xslo:template mode="index_facets" match="marc:datafield[@tag='650']">
1810
    <xslo:if test="not(@ind1='z')">
1811
      <z:index name="su-to:0">
1812
        <xslo:value-of select="marc:subfield[@code='a']"/>
1813
      </z:index>
1814
    </xslo:if>
1815
  </xslo:template>
1816
  <xslo:template mode="index_facets" match="marc:datafield[@tag='651']">
1817
    <xslo:if test="not(@ind1='z')">
1818
      <z:index name="su-geo:0">
1819
        <xslo:value-of select="marc:subfield[@code='a']"/>
1820
      </z:index>
1821
    </xslo:if>
1822
  </xslo:template>
1823
  <xslo:template mode="index_facets" match="marc:datafield[@tag='700']">
1824
    <xslo:if test="not(@ind1='z')">
1825
      <z:index name="au:0">
1826
        <xslo:value-of select="marc:subfield[@code='a']"/>
1827
      </z:index>
1828
    </xslo:if>
1829
  </xslo:template>
1830
  <xslo:template mode="index_facets" match="marc:datafield[@tag='942']">
1831
    <xslo:if test="not(@ind1='z')">
1832
      <z:index name="itype:0">
1833
        <xslo:value-of select="marc:subfield[@code='c']"/>
1834
      </z:index>
1835
    </xslo:if>
1836
  </xslo:template>
1837
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
1838
    <xslo:if test="not(@ind1='z')">
1839
      <z:index name="homebranch:0">
1840
        <xslo:value-of select="marc:subfield[@code='a']"/>
1841
      </z:index>
1842
      <z:index name="holdingbranch:0">
1843
        <xslo:value-of select="marc:subfield[@code='b']"/>
1844
      </z:index>
1845
      <z:index name="location:0">
1846
        <xslo:value-of select="marc:subfield[@code='c']"/>
1847
      </z:index>
1848
    </xslo:if>
1849
  </xslo:template>
1772
  <xslo:template mode="index_all" match="text()">
1850
  <xslo:template mode="index_all" match="text()">
1773
    <z:index name="Any:w Any:p">
1851
    <z:index name="Any:w Any:p">
1774
      <xslo:value-of select="."/>
1852
      <xslo:value-of select="."/>
1775
- 

Return to bug 11232