[Koha-bugs] [Bug 26531] "add subfield" macro for Advanced Catalog Editor

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 12 06:29:57 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26531

Phil Ringnalda <phil at chetcolibrary.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phil at chetcolibrary.org

--- Comment #5 from Phil Ringnalda <phil at chetcolibrary.org> ---
The keyword "new" does exactly that: adds a new one of whatever you specify,
whether or not one already exists.

The syntax for subfields is "245h", so if you want to change the value of an
existing GMD or add a new one if there isn't one currently there, that would be
"245h=[videorecording]". If (as you probably don't since 245$h is
nonrepeatable) you want to add your subfield even if there is already one with
the same subfield code there, rather than changing the value of the existing
one, that would be "new 245h=[videorecording]".

Both ways, you'll be adding the subfield at the end of the field, which you
don't want. Since one of the reasons GMD has been replaced by a fistful of 300s
is its annoying variable position either between a and b or between a and c or
sometimes between n or p and c, or between n or p and b, and the resulting
punctuation troubles, you would need at least two macros, one named something
like "GMD no subtitle" that does "new 245h after a=[videorecording] /" and one
named something like "GMD with subtitle" that does "new 245h after
a=[videorecording] :". What a macro can't help you with is getting rid of the
existing : or / that's currently at the end of subfield a.

As for things with n and p... I'd just do them manually.

So, is this actually a Documentation bug, because the feature already exists
but isn't documented, or is there something else missing from the macro
language?

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


More information about the Koha-bugs mailing list