Bug 8992: Add 7..$3 to the Indentifier-standard index
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 7 Jan 2015 15:12:04 +0000 (16:12 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Apr 2015 18:47:40 +0000 (15:47 -0300)
Signed-off-by: valerie bertrand <valerie.bertrand@univ-lyon3.fr>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/marc_defs/unimarc/biblios/record.abs

index 6b5bdae..85cc089 100644 (file)
     <target_index>Author:p</target_index>
   </index_subfields>
   <!--record.abs line 96: melm 700$9      Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="700" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="700" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
     <target_index>Personal-name:p</target_index>
   </index_data_field>
   <!--record.abs line 99: melm 701$9      Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="701" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="701" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
     <target_index>Personal-name:p</target_index>
   </index_data_field>
   <!--record.abs line 101: melm 702$9      Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="702" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="702" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
     <target_index>Personal-name:p</target_index>
   </index_data_field>
   <!--record.abs line 105: melm 710$9        Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="710" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="710" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
     <target_index>Conference-name:p</target_index>
   </index_data_field>
   <!--record.abs line 107: melm 711$9        Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="711" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="711" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
     <target_index>Conference-name:p</target_index>
   </index_data_field>
   <!--record.abs line 110: melm 712$9        Koha-Auth-Number,Koha-Auth-Number:n-->
+
+  <index_subfields tag="712" subfields="3">
+    <target_index>Identifier-standard:w</target_index>
+  </index_subfields>
   <index_subfields tag="712" subfields="9">
     <target_index>Koha-Auth-Number:w</target_index>
     <target_index>Koha-Auth-Number:n</target_index>
index 9aa1f76..c78e459 100644 (file)
@@ -642,6 +642,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
@@ -658,6 +665,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='701']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
@@ -667,6 +681,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='702']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
@@ -676,6 +697,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
@@ -685,6 +713,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
@@ -694,6 +729,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='712']">
     <xslo:for-each select="marc:subfield">
+      <xslo:if test="contains('3', @code)">
+        <z:index name="Identifier-standard:w">
+          <xslo:value-of select="."/>
+        </z:index>
+      </xslo:if>
+    </xslo:for-each>
+    <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('9', @code)">
         <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
           <xslo:value-of select="."/>
index 91cca14..ebcc956 100644 (file)
@@ -144,20 +144,27 @@ melm 200$f                Author:w,Author:p
 # other Authors
 melm 200$g             Author:w,Author:p
 # physical Author
+melm 700$3      Identifier-standard:w
 melm 700$9      Koha-Auth-Number,Koha-Auth-Number:n
 melm 700$a      Author,Personal-name,Author:p,Personal-name:p,Personal-name,Author:s
 melm 700        Author,Personal-name,Author:p,Personal-name:p,Personal-name:p
+melm 701$3      Identifier-standard:w
 melm 701$9      Koha-Auth-Number,Koha-Auth-Number:n
 melm 701        Author,Personal-name,Author:p,Personal-name:p,Personal-name:p
+melm 702$3      Identifier-standard:w
 melm 702$9      Koha-Auth-Number,Koha-Auth-Number:n
 melm 702        Author,Personal-name,Author:p,Personal-name:p,Personal-name:p
 
 # collective Author
+melm 710$3      Identifier-standard:w
 melm 710$9        Koha-Auth-Number,Koha-Auth-Number:n
 melm 710    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p
+
+melm 711$3      Identifier-standard:w
 melm 711$9        Koha-Auth-Number,Koha-Auth-Number:n
 melm 711    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p
 
+melm 712$3      Identifier-standard:w
 melm 712$9        Koha-Auth-Number,Koha-Auth-Number:n
 melm 712    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p