Browse Source

Bug 20245: Wrong language code for Slovak

This patch updates iso639_2_code value for Slovak language

Test plan:
1) Obtain a biblio record having 'slo' value in its language
   code (marc field 041a)
2) Try to find it through Advanced search + more options
   with language set to Slovak
3) Nothing is found
4) Apply this patch
5) Repeat steps 1 and 2
6) Record is found now

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Radek Šiman 6 years ago
committed by Jonathan Druart
parent
commit
28020fae2e
  1. 1
      installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql
  2. 2
      installer/data/mysql/mandatory/subtag_registry.sql

1
installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql

@ -0,0 +1 @@
UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'slo' WHERE iso639_2_code = 'slk' AND rfc4646_subtag = 'sk';

2
installer/data/mysql/mandatory/subtag_registry.sql

@ -922,7 +922,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sk', 'language', 'Slovak','2014-10-30');
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES ( 'sk','slk');
VALUES ( 'sk','slo');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES ( 'sk', 'language', 'sk', 'Slovenčina');

Loading…
Cancel
Save