authorities indexing: qualify indexes with ":w"

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-02-07 00:11:34 -06:00 committed by Joshua Ferraro
parent 32cf2af700
commit 6a26bcf517
2 changed files with 18 additions and 18 deletions

View 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 -->
@ -21,22 +21,22 @@
<!-- 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 -->
@ -506,6 +506,6 @@
</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>

View file

@ -30,10 +30,10 @@
</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>
@ -43,19 +43,19 @@
</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>
@ -134,7 +134,7 @@
<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>
@ -1822,7 +1822,7 @@
</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>