Bug 16251: Fix value of material select for Rancor 008 widget
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 6 Mar 2019 07:58:03 +0000 (08:58 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 15 Mar 2019 03:36:26 +0000 (03:36 +0000)
commit5f858a9746c3210dacc7a3546409ef619379e854
tree3a90e60ca1630113fe6548695535ce675c3f6b66
parent4b04265188f32033d8c07774d547044aff2d1921
Bug 16251: Fix value of material select for Rancor 008 widget

The material type is selected in accordance with the leader (06-07)

Test plan:
1. Create a new record using the advanced editor
2. Set the leader 6th position to 'c'
3. Save the record and reload the page
4. 'Music' should be automatically selected for 008
5. Try other values for the leader 6th and 7th positions

See comment 0 of this bug for the complete mapping

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 926d7c4ba11ad6cd768c884ec4b2dc71d864b64c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d7988f672f68e0cc875eedce6bad0b634df8941c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/widget.js
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc