Bug 40518

Summary: Add examples of leader fields to Advanced Editor section
Product: Koha Reporter: Philip Orr <philip.orr>
Component: DocumentationAssignee: Bugs List <koha-bugs>
Status: Needs documenting --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aude.charillon, david, holly, maxeinergl, philip.orr
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Philip Orr 2025-07-25 14:44:51 UTC
In the Koha Manual, for Macros in the Advanced Editor in this section:
https://koha-community.org/manual/latest/en/html/cataloging.html#advanced-editor-cataloging
All the examples show updating specific subfields, so you have to just guess that you can update the contents of a control field (MARC 00x$) by just leaving out the subfield codes.
(Like 000$, 001$... etc.)
We should add an example of one of these leader fields.
Comment 1 Gretchen Maxeiner 2025-10-09 22:02:17 UTC
+1. I had no idea! There is no hint that this can be done in the manual or in the macro wiki. It would be great to have it documented.
Comment 2 holly 2025-10-30 22:32:05 UTC
Phillip, could you add an example here? Are you adding/replacing an entire control field or are you editing specific character positions?
Comment 3 Philip Orr 2025-10-31 08:48:18 UTC
Hi Holly,
I think both would work. For example to add some values to the
000 leader field at certain positions, the macro would be:

000=     nam a22     7a 4500

No subfield mentioned, just "000".