]> git.koha-community.org Git - koha.git/commit
Bug 25826: Forbid changing the hidden attributes for biblionumber
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Jul 2020 15:18:36 +0000 (12:18 -0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 21 Jan 2021 20:35:23 +0000 (21:35 +0100)
commitf3fb1f236992978848d9b7d71112d42c38eeef9c
treecfaaef3f55980c8b30a7ef205ad56c557bfbf465
parent7de1a7ba75caa43ee34520e19f8f753f11542b9a
Bug 25826: Forbid changing the hidden attributes for biblionumber

This patch tweaks the UI so it forbids changing the hidden values when
they are correct (i.e. when they are not hidden in OPAC and intranet).

To test:
1. Apply the first patch
2. Play with the hidden values of the subfield you have mapped to
   biblio.biblionumber in your picked framework. This is usually 999$c
   in MARC21, and 001 in UNIMARC.
=> SUCCESS: When you verify the about.pl, it mentions issues when you
hide in some of the interfaces
3. Apply this patch and reload everything
4. Repeat 2
=> SUCCESS: If your framework is 'ok', it prevents you from editing this
values, otherwise you can change them.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 155b2f65e04c2b3b8e9120308ee6603d44a9c01e)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
admin/marc_subfields_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt
koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js