我使用以下程序https://wiki.koha-community.org/wiki/How_to_add_new_zebra_index和https://wiki.koha-community.org/wiki/Understanding_Zebra_indexing,但没有显示任何方面:
/etc/koha/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml:
<index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="380" subfields="a">
<target_index>FormOfWork:w</target_index>
</index_data_field>
/etc/koha/zebradb/biblios/etc/bib1.att:
att 10000 FormOfWork
/etc/koha/zebradb/ccl.properties:
FormOfWork 1=10000
lib/C4/Koha.pm,在子 getFacets 中,(非 unimarc):
{
idx => 'FormOfWork',
label => 'FormOfWork',
tags => [ qw/ 380a / ],
sep => '--',
},
opac/htdocs/opac-tmpl/bootstrap//includes/opac-facets.inc,在 [% FOREACH facets_loo IN facets_loop %] 之后:
[% IF facets_loo.type_label_FormOfWork %]<h5 id="facet-FormOfWork">Form of work</h5>[% END %]
lib/C4/Search.pm,在 sub getIndexesn 中我的 @indexes 添加:
'FormOfWork',
跑步:
xsltproc /etc/koha/zebradb/xsl/koha-indexdefs-to-zebra.xsl /etc/koha/zebradb/marc_defs/marc21/biblios/ biblio-koha-indexdefs.xml >/etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
koha-rebuild-zebra -b -f -v library
koha-restart-zebra
示例 MARC21 记录(无、同一记录中有一个或多个;存在于多个记录中):
380$a Play
380$a Screenplay
我究竟做错了什么?
谢谢,