[Koha] Batch modification: Possibility to copy subfield content to another field's fixed positions?

Thomas Klausner domm at plix.at
Sat Feb 19 00:31:00 NZDT 2022


Hi!

On Fri, Feb 18, 2022 at 11:12:22AM +0000, Bruns, Anke wrote:

> in order to be able to use the search index for publication year, the year
> must to my knowledge be mentioned in 008, positions 7-10.
> Is there a way to populate this with the content from 264$c which, in my
> case, is always a yyyy? In the templates for batch operations I can only
> find ways to copy into fields with subfields, not into fixed fields.

If you're using ElasticSearch, you could change the Elasticsearch
mappings to use 264$c for date-of-publication (instead of the default
008_/7-10). Though I haven't tested that yet, but we've just had a
meeting where we decided to try it this way... :-)

Not really an answer to your question, but if you're only asking the
question to get the data searchable, it should be still usable.

Greetings,
domm

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


More information about the Koha mailing list