Koha-clms/koha-tmpl/intranet-tmpl/lib
Janusz Kaczmarek 3a22c2efb2
Bug 40156: Advanced editor should not create empty fields and subfields
Currently, advanced bibliographic records editor creates empty
subfields (or even empty fields) when no content is placed after
‡<code> (or, in case of control fields, after <tag>).

Test plan:
==========
1. Enable EnableAdvancedCatalogingEditor (have StripWhitespaceChars
   set to "Don't strip" - the default setting).
2. Open a record in the advanced editor, create empty subfield and
   empty fields, e.g.:

007
500 _ _ ‡a
246 3 1 ‡aAdditional title :‡b

3. Save the record. Go to bibliographic record Normal view and in
   modal "MARC preview" notice that the fields / subfields you entered as
   empty exist in the record with no data. This is wrong.
4. Apply the patch ; restart_all.
5. Repeat p. 2 and 3. Note that empty fields/subfields have not been
   created.

Sponsored-by: Ignatianum University in Cracow
Signed-off-by: Wojciech Baran <wojciech.baran@ignatianum.edu.pl>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d56b15d29c)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-08-22 09:48:33 +02:00
..
Chocolat Bug 35633: (follow-up) Custom style updates 2024-03-22 10:35:26 +01:00
bootstrap Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
codemirror
…
d3c3
…
datatables Bug 36627: Fix typo "embeded" 2024-12-23 13:36:16 +01:00
dayjs Bug 34440: Add isSameOrBefore dayjs plugin 2024-08-30 16:41:28 +02:00
filesaver Bug 35640: Upgrade FileSaver JS library to v2.0.4 2024-03-22 10:35:27 +01:00
flatpickr
…
fontawesome
…
greybox
…
jquery Bug 36640: Remove jEditable 2024-11-14 14:19:37 +01:00
js-cookie
…
jsdiff Bug 40030: Escape values when displaying action logs comparison 2025-07-10 22:47:22 +02:00
keyboard
…
koha/cateditor Bug 40156: Advanced editor should not create empty fields and subfields 2025-08-22 09:48:33 +02:00
leaflet Bug 36151: Update leaflet.js 2024-05-07 15:53:50 +02:00
linters
…
maskito Bug 33703: Add Masikto core/kit for date masking 2024-04-26 17:06:08 +02:00
select2
…
shortcut
…
sortable
…
tiny_mce
…
vis-timeline Bug 35584: Add missing licenses to about page 2024-01-11 12:10:41 +01:00
require.js
…