Koha/koha-tmpl/intranet-tmpl/lib/koha/cateditor
Nuño López Ansótegui 62b2fc31bd
Bug 27981: Add option to automatically set 001 to the biblionumber
This patch adds a new system preference:
autoControlNumber

The option "biblionumber" will set field 001 to the biblionumber when you create a new record
or edit an existing record and clear the 001 field.

If a value is present in 001 when saving the record it will be preserved.

If set to 'OFF' the 001 field wil not be touched

When duplicating a record the 001 will be removed if autoControlNumber is set

To test:
 1 - Apply patches and updatedatabase
 2 - Create a new record with no 001 field
 3 - Save and view the MAC, confirm there is no 001
 4 - Set the system preference to 'biblionumber'
 5 - Edit the record you created previously
 6 - Note the 001 is prepopulated with the biblionumber
 7 - Delete the field
 8 - Save the record
 9 - View the MARC, the 001 is filled with biblionumber
10 - Edit the record
11 - Set the 001 to a different value "Not the biblionumber"
12 - Save
13 - View the marc and confirm the value you entered is retained
14 - Edit a record with an existing 001 that is not the biblionumber
15 - Save and confirm 001 is not updated

To test duplication:
1 - Edit a record as duplicate when using the advanced editor
2 - Confirm the 001 does not load, but record saves correctly
3 - Edit the record
4 - Switch to 'basic editor'
5 - Save, then view record
6 - Edit as duplicate in basic editor
7 - Confirm the 001 is removed
8 - Confirm the 001 is added on save

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Thomas Klausner <domm@plix.at>

Signed-off-by: Andrew Nugged <nugged@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-12 15:17:36 -03:00
..
macros Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
koha-backend.js Bug 27981: Add option to automatically set 001 to the biblionumber 2022-09-12 15:17:36 -03:00
macros.js Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
marc-editor.js Bug 27308: Skip blank lines when inserting new 2021-01-12 16:03:03 +01:00
marc-mode.js Bug 24452: Advanced editor - show multiple spaces visually 2020-01-23 10:24:53 +00:00
marc-record.js Bug 15197: In Rancor, multiple &/</" characters not escaped on saving 2015-11-17 09:48:59 -03:00
preferences.js
resources.js Bug 17288 - Advanced Editor - Rancor - Helpers for 006 and 007 fields 2017-08-25 10:59:03 -03:00
search.js Bug 17515: Order Z3950 server by rank and preserve ordering 2020-11-02 11:03:09 +01:00
text-marc.js Bug 23045: Return record along with errors 2019-07-01 14:52:38 +01:00
widget.js Bug 30871: Add notes in advanced cataloging editor 2022-06-25 10:49:33 -03:00