Koha/koha-tmpl/intranet-tmpl/lib
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
..
bootstrap Bug 29277: Replace the use of jQueryUI tabs on item circulation alerts page 2022-02-10 14:44:23 -10:00
Chocolat Bug 28179: (follow-up) Updates to styling of lightbox controls 2021-05-10 15:52:53 +02:00
codemirror Bug 27643: Add CodeMirror custom syntax highlighting for SQL runtime parameters 2021-02-08 17:09:34 +01:00
d3c3 Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
datatables Bug 26471: Remove invalid Map URL 2021-05-10 10:28:00 +02:00
dayjs Bug 30650: Add dayjs customParseFormat plugin 2022-07-29 15:01:28 -03:00
flatpickr Bug 30523: Quiet console warning about missing shortcut-buttons map file 2022-06-02 09:51:09 -03:00
font-awesome Bug 18810: Update Font Awesome to 4.7.0 2017-09-19 09:22:45 -03:00
greybox
jquery Bug 30859: Upgrade jQuery Validation plugin from v1.19.1 to v1.19.4 2022-07-01 16:41:30 -03:00
js-cookie Bug 23944: Phase out use of jquery.cookie.js in favor of js.cookie.js 2020-01-29 09:08:30 +00:00
jsdiff
keyboard Bug 17178: (RM follow-up) Use latest version of library 2019-06-28 16:35:18 +01:00
koha/cateditor Bug 27981: Add option to automatically set 001 to the biblionumber 2022-09-12 15:17:36 -03:00
leaflet Bug 18066: Add the leaflet library 2017-03-23 00:10:46 +00:00
linters Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
moment Bug 24455: Add moment-timezone library in staff 2020-03-25 13:54:16 +00:00
select2 Bug 25727: Upgrade the Select2 JS lib to version 4 2020-08-24 11:19:03 +02:00
shortcut
tiny_mce Bug 26949: Upgrade TinyMCE in the staff interface from 5.0.16 to 5.9.2 2021-10-05 10:58:13 +02:00
filesaver.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00
hc-sticky.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
require.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00