]> git.koha-community.org Git - koha.git/commit
Bug 8643: Add important constraint to marc subfields
authorsimith <simith@inlibro.com>
Fri, 18 Dec 2015 14:40:02 +0000 (11:40 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 11 Feb 2020 14:33:29 +0000 (14:33 +0000)
commit339c27ca807de2966101ec9d2cafc30dccdea332
treeb7a993e0332a39a43db1454783ca175feae2dc56
parent11b44869d95c47a7e6daec8dcb124762a9ee0026
Bug 8643: Add important constraint to marc subfields

This fix permits to add an "Important" option to the marc structure pages.

Testing:

1) Apply the patch
2) Run updatedatabase.pl
3) Regenerate CSS
4) Define 100 as an "important" field ( Administration » MARC bibliographic framework » MARC structure ( Default Frameword) » Edit )
5) Define 100$a as an "important" subfield (Administration » MARC bibliographic framework » MARC structure (Default Frameword) » Subfield » Onglet a)
6) Edit a record to clear the field 100 (subfields are all blank)
7) Save the record.
8) Validate the following message:

A few important fields are not filled:

    * tag 100 subfield a Nom de personne in tab
    * Field 100 is important, at least one of its subfields should be filled.

Are you sure you want to save?

Sponsored by the CCSR ( http://www.ccsr.qc.ca )
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
16 files changed:
C4/Biblio.pm
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
cataloguing/addbiblio.pl
cataloguing/additem.pl
installer/data/mysql/atomicupdate/bug-8643-add_important_constraint.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/css/right-to-left.css
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/includes/str/cataloging_additem.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
koha-tmpl/intranet-tmpl/prog/js/cataloging.js
koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js