authorities indexing: qualify indexes with ":w"
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 7 Feb 2008 06:11:34 +0000 (00:11 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 8 Feb 2008 11:48:54 +0000 (05:48 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl

index 14c9ed3..70b6f5c 100644 (file)
@@ -8,10 +8,10 @@
 
   <!-- Leader  -->
   <kohaidx:index_leader offset="5" length="1">
-    <kohaidx:target_index>Record-status</kohaidx:target_index>
+    <kohaidx:target_index>Record-status:w</kohaidx:target_index>
   </kohaidx:index_leader>
   <kohaidx:index_leader offset="17" length="1">
-    <kohaidx:target_index>Encoding-level</kohaidx:target_index>
+    <kohaidx:target_index>Encoding-level:w</kohaidx:target_index>
   </kohaidx:index_leader>
   
   <!-- Original record ID -->
   
   <!-- 008 -->
   <kohaidx:index_control_field tag="008" offset="9" length="1">
-    <kohaidx:target_index>Kind-of-record</kohaidx:target_index>
+    <kohaidx:target_index>Kind-of-record:w</kohaidx:target_index>
   </kohaidx:index_control_field>
   <kohaidx:index_control_field tag="008" offset="10" length="1">
-    <kohaidx:target_index>Descriptive-cataloging-rules</kohaidx:target_index>
+    <kohaidx:target_index>Descriptive-cataloging-rules:w</kohaidx:target_index>
   </kohaidx:index_control_field>
   <kohaidx:index_subject_thesaurus tag="008" offset="11" length="1" detail_tag="040" detail_subfields="f">
-    <kohaidx:target_index>Subject-heading-thesaurus</kohaidx:target_index>
+    <kohaidx:target_index>Subject-heading-thesaurus:w</kohaidx:target_index>
   </kohaidx:index_subject_thesaurus>
   <kohaidx:index_control_field tag="008" offset="14" length="1">
-    <kohaidx:target_index>Heading-use-main-or-added-entry</kohaidx:target_index>
+    <kohaidx:target_index>Heading-use-main-or-added-entry:w</kohaidx:target_index>
   </kohaidx:index_control_field>
   <kohaidx:index_control_field tag="008" offset="15" length="1">
-    <kohaidx:target_index>Heading-use-subject-added-entry</kohaidx:target_index>
+    <kohaidx:target_index>Heading-use-subject-added-entry:w</kohaidx:target_index>
   </kohaidx:index_control_field>
   <kohaidx:index_control_field tag="008" offset="16" length="1">
-    <kohaidx:target_index>Heading-use-series-added-entry</kohaidx:target_index>
+    <kohaidx:target_index>Heading-use-series-added-entry:w</kohaidx:target_index>
   </kohaidx:index_control_field>
   
   <!-- Personal name headings -->
   </kohaidx:index_heading>
   
   <kohaidx:index_subfields tag="942" subfields="a">
-    <kohaidx:target_index>authtype</kohaidx:target_index>
+    <kohaidx:target_index>authtype:w</kohaidx:target_index>
   </kohaidx:index_subfields>
 </kohaidx:index_defs>
index a062279..6c3a079 100644 (file)
     </z:record>
   </xslo:template>
   <xslo:template match="marc:leader">
-    <z:index name="Record-status">
+    <z:index name="Record-status:w">
       <xslo:value-of select="substring(., 6, 1)"/>
     </z:index>
-    <z:index name="Encoding-level">
+    <z:index name="Encoding-level:w">
       <xslo:value-of select="substring(., 18, 1)"/>
     </z:index>
   </xslo:template>
     </z:index>
   </xslo:template>
   <xslo:template match="marc:controlfield[@tag='008']">
-    <z:index name="Kind-of-record">
+    <z:index name="Kind-of-record:w">
       <xslo:value-of select="substring(., 10, 1)"/>
     </z:index>
-    <z:index name="Descriptive-cataloging-rules">
+    <z:index name="Descriptive-cataloging-rules:w">
       <xslo:value-of select="substring(., 11, 1)"/>
     </z:index>
-    <z:index name="Heading-use-main-or-added-entry">
+    <z:index name="Heading-use-main-or-added-entry:w">
       <xslo:value-of select="substring(., 15, 1)"/>
     </z:index>
-    <z:index name="Heading-use-subject-added-entry">
+    <z:index name="Heading-use-subject-added-entry:w">
       <xslo:value-of select="substring(., 16, 1)"/>
     </z:index>
-    <z:index name="Heading-use-series-added-entry">
+    <z:index name="Heading-use-series-added-entry:w">
       <xslo:value-of select="substring(., 17, 1)"/>
     </z:index>
   </xslo:template>
   <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
     <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('a', @code)">
-        <z:index name="authtype">
+        <z:index name="authtype:w">
           <xslo:value-of select="."/>
         </z:index>
       </xslo:if>
         </xslo:otherwise>
       </xslo:choose>
     </xslo:variable>
-    <z:index name="Subject-heading-thesaurus">
+    <z:index name="Subject-heading-thesaurus:w">
       <xslo:value-of select="$full_thesaurus_code"/>
     </z:index>
   </xslo:template>