Bug 11620: Add dissertation-information index for MARC21 (502)
Bug 11202 introduced a new index 'dissertation-information' for UNIMARC. This patch adds the index also for MARC21 installations. http://www.loc.gov/marc/bibliographic/bd502.html To test: - Apply patch - Copy files in etc/zebradb changed by this patch to your corresponding directory (koha-dev..) - Make sure you have records with 502 - Reindex - Verify you can search the field contents with dissertation-information= and diss= Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Can find by dissertation-information, No errors Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
d49cba287e
commit
e799e1cbc3
|
|
@ -1133,6 +1133,7 @@ sub getIndexes{
|
|||
'Date-of-publication',
|
||||
'Dewey-classification',
|
||||
'Dissertation-information',
|
||||
'diss',
|
||||
'EAN',
|
||||
'extent',
|
||||
'fic',
|
||||
|
|
|
|||
|
|
@ -360,6 +360,7 @@ Date/time-last-modified 1=1012
|
|||
# publication connected with an
|
||||
# academic degree.
|
||||
Dissertation-information 1=1056
|
||||
diss Dissertation-information
|
||||
|
||||
#EAN 1214 European article number UNIMARC 073
|
||||
EAN 1=1214
|
||||
|
|
|
|||
|
|
@ -529,6 +529,8 @@
|
|||
<!--record.abs line 147: melm 502 Material-type-->
|
||||
<index_data_field tag="502">
|
||||
<target_index>Material-type:w</target_index>
|
||||
<target_index>Dissertation-information:p</target_index>
|
||||
<target_index>Dissertation-information:w</target_index>
|
||||
</index_data_field>
|
||||
<!--record.abs line 148: melm 505$r Author-->
|
||||
<index_subfields tag="505" subfields="r">
|
||||
|
|
|
|||
|
|
@ -1944,7 +1944,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
</z:index>
|
||||
</xslo:template>
|
||||
<xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
|
||||
<z:index name="Material-type:w">
|
||||
<z:index name="Material-type:w Dissertation-information:p Dissertation-information:w">
|
||||
<xslo:variable name="raw_heading">
|
||||
<xslo:for-each select="marc:subfield">
|
||||
<xslo:if test="position() > 1">
|
||||
|
|
|
|||
Loading…
Reference in New Issue