[Koha-bugs] [Bug 14198] RDA: Indexing 264 field (Zebra)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 8 04:37:30 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14198

Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |In Discussion

--- Comment #13 from Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> ---
(In reply to Katrin Fischer from comment #12)
> Comment on attachment 39791 [details] [review]

Hi Katrin

> One suggestion: could you squash your 2 patches? As they are not signed off
> yet, that will make it a little easier to handle and see the changes.

Yes, I will squash it.

> ::: etc/zebradb/ccl.properties
> @@ +584,4 @@
> >  #                           multiple indexes for            270$abcd
> >  #                           publication/production info.
> >  Provider 1=1225
> > +pv Provider Place-publication Publisher copydate
> 
> I am not sure what you are trying to achieve with this line. I would have
> expected just:
> pv Provider
> to crate a short index form for searching the Provider index. 
> I am not sure listing multiple works here.

Doing this let us have two indexes one just for 260 and the another for both
field (i.e., 260 and 264) since Publisher its just for 260. I just followed up
the yaz documentation at <http://www.indexdata.com/yaz/doc/tools.html#CCL> in
section 1.2.2.2 Qualifier alias. In this sense Provider will harvest the three
indexes for 260 (Place-publication, Publisher, and copydate) and the same
Provider index applied to all field in 260 and 264.

So let me do four prepositions:

1) Let me enumerate the above as the first one.
2) The second one:

In ccl.properties:
Provider 1=1225
pv Provider

and apply provider to all field in 260 and 264 in biblio-koha-indexdefs.xml
file as:
  <index_subfields tag="260" subfields="a">
    <target_index>pl:w</target_index>
    <target_index>pl:p</target_index>
  </index_subfields>
  <index_subfields tag="260" subfields="b">
    <target_index>Publisher:w</target_index>
    <target_index>Publisher:p</target_index>
  </index_subfields>
  <index_subfields tag="260" subfields="c">
    <target_index>copydate:w</target_index>
    <target_index>copydate:s</target_index>
  </index_subfields>

<index_data_field tag="260">
  <target_index>pl:w</target_index>
  <target_index>Provider:w</target_index>
</index_data_field>
<index_data_field tag="264">
  <target_index>Provider:w</target_index>
</index_data_field>

3) And the last one:
In ccl.properties:
Provider 1=1225
pv Provider

and apply the three indexes of 260 to 264, i.e., copying the indexes of 260 and
adding the tags for all field as follow:
<index_data_field tag="260">
  <target_index>pl:w</target_index>
  <target_index>Provider:w</target_index>
</index_data_field>
<index_data_field tag="264">
  <target_index>pl:w</target_index>
  <target_index>Provider:w</target_index>
</index_data_field>

And 4) do me a preposition to work with.

Finally I don't know if is Ok to choose to use "pv" or another one like
"provider" without capitalization in the alias for Provider index.


I will change the bug as In discussion status.


Regards

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list