[Koha] Linking via 830$w

Thomas Klausner domm at plix.at
Wed Dec 22 04:07:36 NZDT 2021


We have encountered an interesting behaviour and are not sure if it's a 
bug in Koha, in our data, or something else:

We have a bibliographic record A where 830$w points to another record B 
(to the other records' 001 value, to be precise):

A: 830$w = 12345
B: 001 = 12345

When Koha renders record A, it produces a link to B, but with a bad param:

Changing the param from 'rcn' to 'control-number' finds the correct record:

We're using ElasticSearch with default mappings. Looking into those, I 
see that there are defintions for record-control-number (rcn) and 

control-number points to 001, and rcn to various 7/8nn$w fields. Now it 
makes sense that the search for rcn did not find the value stored in 
record B.001, and why chaning the search to control-number finds the 

Which leads to my question;

* Should we add 001 to the fields mapped to record-control-number?

* Should we use a different field than 830w$?
  We are quite sure that we shouldn't, as the DNB is also using 830$w:
  "Beziehungen: Die Andere Bibliothek ; Bd. 338", linking to 

* Should we change the template to produce a link using a different 
  param? Feels wrong, becuase it does make sense to link to 'rcn' and 
  not to 'control-number'. Also we don't want to mess with the core Koha

Any ideas / pointers?


#!/usr/bin/perl                             https://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

More information about the Koha mailing list