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

(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+38 lines)
Lines 963-966 Link Here
963
  <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">
964
    <target_index>itype:w</target_index>
964
    <target_index>itype:w</target_index>
965
  </index_subfields>
965
  </index_subfields>
966
967
  <facet tag="100" subfields="a">
968
    <target_index>au:0</target_index>
969
  </facet>
970
  <facet tag="110" subfields="a">
971
    <target_index>au:0</target_index>
972
  </facet>
973
  <facet tag="440" subfields="a">
974
    <target_index>se:0</target_index>
975
  </facet>
976
  <facet tag="490" subfields="a">
977
    <target_index>>se:0</target_index>
978
  </facet>
979
  <facet tag="630" subfields="a">
980
    <target_index>su-ut:0</target_index>
981
  </facet>
982
  <facet tag="650" subfields="a">
983
    <target_index>su-to:0</target_index>
984
  </facet>
985
  <facet tag="651" subfields="a">
986
    <target_index>su-geo:0</target_index>
987
  </facet>
988
  <facet tag="700" subfields="a">
989
    <target_index>au:0</target_index>
990
  </facet>
991
  <facet tag="942" subfields="c">
992
    <target_index>itype:0</target_index>
993
  </facet>
994
  <facet tag="952" subfields="a">
995
    <target_index>homebranch:0</target_index>
996
  </facet>
997
  <facet tag="952" subfields="b">
998
    <target_index>holdingbranch:0</target_index>
999
  </facet>
1000
  <facet tag="952" subfields="c">
1001
    <target_index>location:0</target_index>
1002
  </facet>
1003
966
</kohaidx:index_defs>
1004
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (-1 / +86 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
    </xslo:if>
1843
  </xslo:template>
1844
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
1845
    <xslo:if test="not(@ind1='z')">
1846
      <z:index name="holdingbranch:0">
1847
        <xslo:value-of select="marc:subfield[@code='b']"/>
1848
      </z:index>
1849
    </xslo:if>
1850
  </xslo:template>
1851
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
1852
    <xslo:if test="not(@ind1='z')">
1853
      <z:index name="location:0">
1854
        <xslo:value-of select="marc:subfield[@code='c']"/>
1855
      </z:index>
1856
    </xslo:if>
1857
  </xslo:template>
1772
  <xslo:template mode="index_all" match="text()">
1858
  <xslo:template mode="index_all" match="text()">
1773
    <z:index name="Any:w Any:p">
1859
    <z:index name="Any:w Any:p">
1774
      <xslo:value-of select="."/>
1860
      <xslo:value-of select="."/>
1775
- 

Return to bug 11232