From 7c38de866f3d5599f228b67b6452643fe2c6490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Marie=CC=81thoz?= Date: Tue, 27 Aug 2024 16:30:29 +0200 Subject: [PATCH] deposit: remove category MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adapts JSONSchema to the new angular 17 version. - Removes the category file subfield to be consistent with the document resource. Co-Authored-by: Johnny MarieĢthoz --- .../jsonschemas/classification-v1.0.0.json | 6 +- sonar/common/jsonschemas/language-v1.0.0.json | 3901 +++++++++-------- sonar/common/jsonschemas/license-v1.0.0.json | 5 +- sonar/common/jsonschemas/type-v1.0.0.json | 6 +- .../hepvs/projects/project-v1.0.0_src.json | 9 +- .../collections/collection-v1.0.0_src.json | 10 +- sonar/modules/deposits/api.py | 12 +- .../deposits/deposit-v1.0.0_src.json | 117 +- .../mappings/v7/deposits/deposit-v1.0.0.json | 6 +- sonar/modules/deposits/rest.py | 3 +- .../documents/document-v1.0.0_src.json | 22 +- .../organisation-v1.0.0_src.json | 8 + .../users/jsonschemas/users/user-v1.0.0.json | 2 +- .../projects/project-v1.0.0_src.json | 4 +- 14 files changed, 2011 insertions(+), 2100 deletions(-) diff --git a/sonar/common/jsonschemas/classification-v1.0.0.json b/sonar/common/jsonschemas/classification-v1.0.0.json index 46c018c0..c5696c44 100644 --- a/sonar/common/jsonschemas/classification-v1.0.0.json +++ b/sonar/common/jsonschemas/classification-v1.0.0.json @@ -92,9 +92,7 @@ ], "widget": { "formlyConfig": { - "wrappers": [ - "card" - ], + "type": "tree-select", "props": { "sort": false, "options": [ @@ -503,4 +501,4 @@ } } } -} \ No newline at end of file +} diff --git a/sonar/common/jsonschemas/language-v1.0.0.json b/sonar/common/jsonschemas/language-v1.0.0.json index f29c02b6..543b2bd3 100644 --- a/sonar/common/jsonschemas/language-v1.0.0.json +++ b/sonar/common/jsonschemas/language-v1.0.0.json @@ -492,1953 +492,1968 @@ "formlyConfig": { "props": { "sort": true, + "filter": true, + "filterBy": "label", + "group": true, "options": [ { - "label": "lang_aar", - "value": "aar" - }, - { - "label": "lang_abk", - "value": "abk" - }, - { - "label": "lang_ace", - "value": "ace" - }, - { - "label": "lang_ach", - "value": "ach" - }, - { - "label": "lang_ada", - "value": "ada" - }, - { - "label": "lang_ady", - "value": "ady" - }, - { - "label": "lang_afa", - "value": "afa" - }, - { - "label": "lang_afh", - "value": "afh" - }, - { - "label": "lang_afr", - "value": "afr" - }, - { - "label": "lang_ain", - "value": "ain" - }, - { - "label": "lang_aka", - "value": "aka" - }, - { - "label": "lang_akk", - "value": "akk" - }, - { - "label": "lang_alb", - "value": "alb" - }, - { - "label": "lang_ale", - "value": "ale" - }, - { - "label": "lang_alg", - "value": "alg" - }, - { - "label": "lang_alt", - "value": "alt" - }, - { - "label": "lang_amh", - "value": "amh" - }, - { - "label": "lang_ang", - "value": "ang" - }, - { - "label": "lang_anp", - "value": "anp" - }, - { - "label": "lang_apa", - "value": "apa" - }, - { - "label": "lang_ara", - "value": "ara" - }, - { - "label": "lang_arc", - "value": "arc" - }, - { - "label": "lang_arg", - "value": "arg" - }, - { - "label": "lang_arm", - "value": "arm" - }, - { - "label": "lang_arn", - "value": "arn" - }, - { - "label": "lang_arp", - "value": "arp" - }, - { - "label": "lang_art", - "value": "art" - }, - { - "label": "lang_arw", - "value": "arw" - }, - { - "label": "lang_asm", - "value": "asm" - }, - { - "label": "lang_ast", - "value": "ast" - }, - { - "label": "lang_ath", - "value": "ath" - }, - { - "label": "lang_aus", - "value": "aus" - }, - { - "label": "lang_ava", - "value": "ava" - }, - { - "label": "lang_ave", - "value": "ave" - }, - { - "label": "lang_awa", - "value": "awa" - }, - { - "label": "lang_aym", - "value": "aym" - }, - { - "label": "lang_aze", - "value": "aze" - }, - { - "label": "lang_bad", - "value": "bad" - }, - { - "label": "lang_bai", - "value": "bai" - }, - { - "label": "lang_bak", - "value": "bak" - }, - { - "label": "lang_bal", - "value": "bal" - }, - { - "label": "lang_bam", - "value": "bam" - }, - { - "label": "lang_ban", - "value": "ban" - }, - { - "label": "lang_baq", - "value": "baq" - }, - { - "label": "lang_bas", - "value": "bas" - }, - { - "label": "lang_bat", - "value": "bat" - }, - { - "label": "lang_bej", - "value": "bej" - }, - { - "label": "lang_bel", - "value": "bel" - }, - { - "label": "lang_bem", - "value": "bem" - }, - { - "label": "lang_ben", - "value": "ben" - }, - { - "label": "lang_ber", - "value": "ber" - }, - { - "label": "lang_bho", - "value": "bho" - }, - { - "label": "lang_bih", - "value": "bih" - }, - { - "label": "lang_bik", - "value": "bik" - }, - { - "label": "lang_bin", - "value": "bin" - }, - { - "label": "lang_bis", - "value": "bis" - }, - { - "label": "lang_bla", - "value": "bla" - }, - { - "label": "lang_bnt", - "value": "bnt" - }, - { - "label": "lang_bos", - "value": "bos" - }, - { - "label": "lang_bra", - "value": "bra" - }, - { - "label": "lang_bre", - "value": "bre" - }, - { - "label": "lang_btk", - "value": "btk" - }, - { - "label": "lang_bua", - "value": "bua" - }, - { - "label": "lang_bug", - "value": "bug" - }, - { - "label": "lang_bul", - "value": "bul" - }, - { - "label": "lang_bur", - "value": "bur" - }, - { - "label": "lang_byn", - "value": "byn" - }, - { - "label": "lang_cad", - "value": "cad" - }, - { - "label": "lang_cai", - "value": "cai" - }, - { - "label": "lang_car", - "value": "car" - }, - { - "label": "lang_cat", - "value": "cat" - }, - { - "label": "lang_cau", - "value": "cau" - }, - { - "label": "lang_ceb", - "value": "ceb" - }, - { - "label": "lang_cel", - "value": "cel" - }, - { - "label": "lang_cha", - "value": "cha" - }, - { - "label": "lang_chb", - "value": "chb" - }, - { - "label": "lang_che", - "value": "che" - }, - { - "label": "lang_chg", - "value": "chg" - }, - { - "label": "lang_chi", - "value": "chi" - }, - { - "label": "lang_chk", - "value": "chk" - }, - { - "label": "lang_chm", - "value": "chm" - }, - { - "label": "lang_chn", - "value": "chn" - }, - { - "label": "lang_cho", - "value": "cho" - }, - { - "label": "lang_chp", - "value": "chp" - }, - { - "label": "lang_chr", - "value": "chr" - }, - { - "label": "lang_chu", - "value": "chu" - }, - { - "label": "lang_chv", - "value": "chv" - }, - { - "label": "lang_chy", - "value": "chy" - }, - { - "label": "lang_cmc", - "value": "cmc" - }, - { - "label": "lang_cnr", - "value": "cnr" - }, - { - "label": "lang_cop", - "value": "cop" - }, - { - "label": "lang_cor", - "value": "cor" - }, - { - "label": "lang_cos", - "value": "cos" - }, - { - "label": "lang_cpe", - "value": "cpe" - }, - { - "label": "lang_cpf", - "value": "cpf" - }, - { - "label": "lang_cpp", - "value": "cpp" - }, - { - "label": "lang_cre", - "value": "cre" - }, - { - "label": "lang_crh", - "value": "crh" - }, - { - "label": "lang_crp", - "value": "crp" - }, - { - "label": "lang_csb", - "value": "csb" - }, - { - "label": "lang_cus", - "value": "cus" - }, - { - "label": "lang_cze", - "value": "cze" - }, - { - "label": "lang_dak", - "value": "dak" - }, - { - "label": "lang_dan", - "value": "dan" - }, - { - "label": "lang_dar", - "value": "dar" - }, - { - "label": "lang_day", - "value": "day" - }, - { - "label": "lang_del", - "value": "del" - }, - { - "label": "lang_den", - "value": "den" - }, - { - "label": "lang_dgr", - "value": "dgr" - }, - { - "label": "lang_din", - "value": "din" - }, - { - "label": "lang_div", - "value": "div" - }, - { - "label": "lang_doi", - "value": "doi" - }, - { - "label": "lang_dra", - "value": "dra" - }, - { - "label": "lang_dsb", - "value": "dsb" - }, - { - "label": "lang_dua", - "value": "dua" - }, - { - "label": "lang_dum", - "value": "dum" - }, - { - "label": "lang_dut", - "value": "dut" - }, - { - "label": "lang_dyu", - "value": "dyu" - }, - { - "label": "lang_dzo", - "value": "dzo" - }, - { - "label": "lang_efi", - "value": "efi" - }, - { - "label": "lang_egy", - "value": "egy" - }, - { - "label": "lang_eka", - "value": "eka" - }, - { - "label": "lang_elx", - "value": "elx" - }, - { - "label": "lang_eng", - "value": "eng", - "preferred": true - }, - { - "label": "lang_enm", - "value": "enm" - }, - { - "label": "lang_epo", - "value": "epo" - }, - { - "label": "lang_est", - "value": "est" - }, - { - "label": "lang_ewe", - "value": "ewe" - }, - { - "label": "lang_ewo", - "value": "ewo" - }, - { - "label": "lang_fan", - "value": "fan" - }, - { - "label": "lang_fao", - "value": "fao" - }, - { - "label": "lang_fat", - "value": "fat" - }, - { - "label": "lang_fij", - "value": "fij" - }, - { - "label": "lang_fil", - "value": "fil" - }, - { - "label": "lang_fin", - "value": "fin" - }, - { - "label": "lang_fiu", - "value": "fiu" - }, - { - "label": "lang_fon", - "value": "fon" - }, - { - "label": "lang_fre", - "value": "fre", - "preferred": true - }, - { - "label": "lang_frm", - "value": "frm" - }, - { - "label": "lang_fro", - "value": "fro" - }, - { - "label": "lang_frr", - "value": "frr" - }, - { - "label": "lang_frs", - "value": "frs" - }, - { - "label": "lang_fry", - "value": "fry" - }, - { - "label": "lang_ful", - "value": "ful" - }, - { - "label": "lang_fur", - "value": "fur" - }, - { - "label": "lang_gaa", - "value": "gaa" - }, - { - "label": "lang_gay", - "value": "gay" - }, - { - "label": "lang_gba", - "value": "gba" - }, - { - "label": "lang_gem", - "value": "gem" - }, - { - "label": "lang_geo", - "value": "geo" - }, - { - "label": "lang_ger", - "value": "ger", - "preferred": true - }, - { - "label": "lang_gez", - "value": "gez" - }, - { - "label": "lang_gil", - "value": "gil" - }, - { - "label": "lang_gla", - "value": "gla" - }, - { - "label": "lang_gle", - "value": "gle" - }, - { - "label": "lang_glg", - "value": "glg" - }, - { - "label": "lang_glv", - "value": "glv" - }, - { - "label": "lang_gmh", - "value": "gmh" - }, - { - "label": "lang_goh", - "value": "goh" - }, - { - "label": "lang_gon", - "value": "gon" - }, - { - "label": "lang_gor", - "value": "gor" - }, - { - "label": "lang_got", - "value": "got" - }, - { - "label": "lang_grb", - "value": "grb" - }, - { - "label": "lang_grc", - "value": "grc" - }, - { - "label": "lang_gre", - "value": "gre" - }, - { - "label": "lang_grn", - "value": "grn" - }, - { - "label": "lang_gsw", - "value": "gsw" - }, - { - "label": "lang_guj", - "value": "guj" - }, - { - "label": "lang_gwi", - "value": "gwi" - }, - { - "label": "lang_hai", - "value": "hai" - }, - { - "label": "lang_hat", - "value": "hat" - }, - { - "label": "lang_hau", - "value": "hau" - }, - { - "label": "lang_haw", - "value": "haw" - }, - { - "label": "lang_heb", - "value": "heb" - }, - { - "label": "lang_her", - "value": "her" - }, - { - "label": "lang_hil", - "value": "hil" - }, - { - "label": "lang_him", - "value": "him" - }, - { - "label": "lang_hin", - "value": "hin" - }, - { - "label": "lang_hit", - "value": "hit" - }, - { - "label": "lang_hmn", - "value": "hmn" - }, - { - "label": "lang_hmo", - "value": "hmo" - }, - { - "label": "lang_hrv", - "value": "hrv" - }, - { - "label": "lang_hsb", - "value": "hsb" - }, - { - "label": "lang_hun", - "value": "hun" - }, - { - "label": "lang_hup", - "value": "hup" - }, - { - "label": "lang_iba", - "value": "iba" - }, - { - "label": "lang_ibo", - "value": "ibo" - }, - { - "label": "lang_ice", - "value": "ice" - }, - { - "label": "lang_ido", - "value": "ido" - }, - { - "label": "lang_iii", - "value": "iii" - }, - { - "label": "lang_ijo", - "value": "ijo" - }, - { - "label": "lang_iku", - "value": "iku" - }, - { - "label": "lang_ile", - "value": "ile" - }, - { - "label": "lang_ilo", - "value": "ilo" - }, - { - "label": "lang_ina", - "value": "ina" - }, - { - "label": "lang_inc", - "value": "inc" - }, - { - "label": "lang_ind", - "value": "ind" - }, - { - "label": "lang_ine", - "value": "ine" - }, - { - "label": "lang_inh", - "value": "inh" - }, - { - "label": "lang_ipk", - "value": "ipk" - }, - { - "label": "lang_ira", - "value": "ira" - }, - { - "label": "lang_iro", - "value": "iro" - }, - { - "label": "lang_ita", - "value": "ita", - "preferred": true - }, - { - "label": "lang_jav", - "value": "jav" - }, - { - "label": "lang_jbo", - "value": "jbo" - }, - { - "label": "lang_jpn", - "value": "jpn" - }, - { - "label": "lang_jpr", - "value": "jpr" - }, - { - "label": "lang_jrb", - "value": "jrb" - }, - { - "label": "lang_kaa", - "value": "kaa" - }, - { - "label": "lang_kab", - "value": "kab" - }, - { - "label": "lang_kac", - "value": "kac" - }, - { - "label": "lang_kal", - "value": "kal" - }, - { - "label": "lang_kam", - "value": "kam" - }, - { - "label": "lang_kan", - "value": "kan" - }, - { - "label": "lang_kar", - "value": "kar" - }, - { - "label": "lang_kas", - "value": "kas" - }, - { - "label": "lang_kau", - "value": "kau" - }, - { - "label": "lang_kaw", - "value": "kaw" - }, - { - "label": "lang_kaz", - "value": "kaz" - }, - { - "label": "lang_kbd", - "value": "kbd" - }, - { - "label": "lang_kha", - "value": "kha" - }, - { - "label": "lang_khi", - "value": "khi" - }, - { - "label": "lang_khm", - "value": "khm" - }, - { - "label": "lang_kho", - "value": "kho" - }, - { - "label": "lang_kik", - "value": "kik" - }, - { - "label": "lang_kin", - "value": "kin" - }, - { - "label": "lang_kir", - "value": "kir" - }, - { - "label": "lang_kmb", - "value": "kmb" - }, - { - "label": "lang_kok", - "value": "kok" - }, - { - "label": "lang_kom", - "value": "kom" - }, - { - "label": "lang_kon", - "value": "kon" - }, - { - "label": "lang_kor", - "value": "kor" - }, - { - "label": "lang_kos", - "value": "kos" - }, - { - "label": "lang_kpe", - "value": "kpe" - }, - { - "label": "lang_krc", - "value": "krc" - }, - { - "label": "lang_krl", - "value": "krl" - }, - { - "label": "lang_kro", - "value": "kro" - }, - { - "label": "lang_kru", - "value": "kru" - }, - { - "label": "lang_kua", - "value": "kua" - }, - { - "label": "lang_kum", - "value": "kum" - }, - { - "label": "lang_kur", - "value": "kur" - }, - { - "label": "lang_kut", - "value": "kut" - }, - { - "label": "lang_lad", - "value": "lad" - }, - { - "label": "lang_lah", - "value": "lah" - }, - { - "label": "lang_lam", - "value": "lam" - }, - { - "label": "lang_lao", - "value": "lao" - }, - { - "label": "lang_lat", - "value": "lat" - }, - { - "label": "lang_lav", - "value": "lav" - }, - { - "label": "lang_lez", - "value": "lez" - }, - { - "label": "lang_lim", - "value": "lim" - }, - { - "label": "lang_lin", - "value": "lin" - }, - { - "label": "lang_lit", - "value": "lit" - }, - { - "label": "lang_lol", - "value": "lol" - }, - { - "label": "lang_loz", - "value": "loz" - }, - { - "label": "lang_ltz", - "value": "ltz" - }, - { - "label": "lang_lua", - "value": "lua" - }, - { - "label": "lang_lub", - "value": "lub" - }, - { - "label": "lang_lug", - "value": "lug" - }, - { - "label": "lang_lui", - "value": "lui" - }, - { - "label": "lang_lun", - "value": "lun" - }, - { - "label": "lang_luo", - "value": "luo" - }, - { - "label": "lang_lus", - "value": "lus" - }, - { - "label": "lang_mac", - "value": "mac" - }, - { - "label": "lang_mad", - "value": "mad" - }, - { - "label": "lang_mag", - "value": "mag" - }, - { - "label": "lang_mah", - "value": "mah" - }, - { - "label": "lang_mai", - "value": "mai" - }, - { - "label": "lang_mak", - "value": "mak" - }, - { - "label": "lang_mal", - "value": "mal" - }, - { - "label": "lang_man", - "value": "man" - }, - { - "label": "lang_mao", - "value": "mao" - }, - { - "label": "lang_map", - "value": "map" - }, - { - "label": "lang_mar", - "value": "mar" - }, - { - "label": "lang_mas", - "value": "mas" - }, - { - "label": "lang_may", - "value": "may" - }, - { - "label": "lang_mdf", - "value": "mdf" - }, - { - "label": "lang_mdr", - "value": "mdr" - }, - { - "label": "lang_men", - "value": "men" - }, - { - "label": "lang_mga", - "value": "mga" - }, - { - "label": "lang_mic", - "value": "mic" - }, - { - "label": "lang_min", - "value": "min" - }, - { - "label": "lang_mis", - "value": "mis" - }, - { - "label": "lang_mkh", - "value": "mkh" - }, - { - "label": "lang_mlg", - "value": "mlg" - }, - { - "label": "lang_mlt", - "value": "mlt" - }, - { - "label": "lang_mnc", - "value": "mnc" - }, - { - "label": "lang_mni", - "value": "mni" - }, - { - "label": "lang_mno", - "value": "mno" - }, - { - "label": "lang_moh", - "value": "moh" - }, - { - "label": "lang_mon", - "value": "mon" - }, - { - "label": "lang_mos", - "value": "mos" - }, - { - "label": "lang_mul", - "value": "mul" - }, - { - "label": "lang_mun", - "value": "mun" - }, - { - "label": "lang_mus", - "value": "mus" - }, - { - "label": "lang_mwl", - "value": "mwl" - }, - { - "label": "lang_mwr", - "value": "mwr" - }, - { - "label": "lang_myn", - "value": "myn" - }, - { - "label": "lang_myv", - "value": "myv" - }, - { - "label": "lang_nah", - "value": "nah" - }, - { - "label": "lang_nai", - "value": "nai" - }, - { - "label": "lang_nap", - "value": "nap" - }, - { - "label": "lang_nau", - "value": "nau" - }, - { - "label": "lang_nav", - "value": "nav" - }, - { - "label": "lang_nbl", - "value": "nbl" - }, - { - "label": "lang_nde", - "value": "nde" - }, - { - "label": "lang_ndo", - "value": "ndo" - }, - { - "label": "lang_nds", - "value": "nds" - }, - { - "label": "lang_nep", - "value": "nep" - }, - { - "label": "lang_new", - "value": "new" - }, - { - "label": "lang_nia", - "value": "nia" - }, - { - "label": "lang_nic", - "value": "nic" - }, - { - "label": "lang_niu", - "value": "niu" - }, - { - "label": "lang_nno", - "value": "nno" - }, - { - "label": "lang_nob", - "value": "nob" - }, - { - "label": "lang_nog", - "value": "nog" - }, - { - "label": "lang_non", - "value": "non" - }, - { - "label": "lang_nor", - "value": "nor" - }, - { - "label": "lang_nqo", - "value": "nqo" - }, - { - "label": "lang_nso", - "value": "nso" - }, - { - "label": "lang_nub", - "value": "nub" - }, - { - "label": "lang_nwc", - "value": "nwc" - }, - { - "label": "lang_nya", - "value": "nya" - }, - { - "label": "lang_nym", - "value": "nym" - }, - { - "label": "lang_nyn", - "value": "nyn" - }, - { - "label": "lang_nyo", - "value": "nyo" - }, - { - "label": "lang_nzi", - "value": "nzi" - }, - { - "label": "lang_oci", - "value": "oci" - }, - { - "label": "lang_oji", - "value": "oji" - }, - { - "label": "lang_ori", - "value": "ori" - }, - { - "label": "lang_orm", - "value": "orm" - }, - { - "label": "lang_osa", - "value": "osa" - }, - { - "label": "lang_oss", - "value": "oss" - }, - { - "label": "lang_ota", - "value": "ota" - }, - { - "label": "lang_oto", - "value": "oto" - }, - { - "label": "lang_paa", - "value": "paa" - }, - { - "label": "lang_pag", - "value": "pag" - }, - { - "label": "lang_pal", - "value": "pal" - }, - { - "label": "lang_pam", - "value": "pam" - }, - { - "label": "lang_pan", - "value": "pan" - }, - { - "label": "lang_pap", - "value": "pap" - }, - { - "label": "lang_pau", - "value": "pau" - }, - { - "label": "lang_peo", - "value": "peo" - }, - { - "label": "lang_per", - "value": "per" - }, - { - "label": "lang_phi", - "value": "phi" - }, - { - "label": "lang_phn", - "value": "phn" - }, - { - "label": "lang_pli", - "value": "pli" - }, - { - "label": "lang_pol", - "value": "pol" - }, - { - "label": "lang_pon", - "value": "pon" - }, - { - "label": "lang_por", - "value": "por" - }, - { - "label": "lang_pra", - "value": "pra" - }, - { - "label": "lang_pro", - "value": "pro" - }, - { - "label": "lang_pus", - "value": "pus" - }, - { - "label": "lang_que", - "value": "que" - }, - { - "label": "lang_raj", - "value": "raj" - }, - { - "label": "lang_rap", - "value": "rap" - }, - { - "label": "lang_rar", - "value": "rar" - }, - { - "label": "lang_roa", - "value": "roa" - }, - { - "label": "lang_roh", - "value": "roh" - }, - { - "label": "lang_rom", - "value": "rom" - }, - { - "label": "lang_rum", - "value": "rum" - }, - { - "label": "lang_run", - "value": "run" - }, - { - "label": "lang_rup", - "value": "rup" - }, - { - "label": "lang_rus", - "value": "rus" - }, - { - "label": "lang_sad", - "value": "sad" - }, - { - "label": "lang_sag", - "value": "sag" - }, - { - "label": "lang_sah", - "value": "sah" - }, - { - "label": "lang_sai", - "value": "sai" - }, - { - "label": "lang_sal", - "value": "sal" - }, - { - "label": "lang_sam", - "value": "sam" - }, - { - "label": "lang_san", - "value": "san" - }, - { - "label": "lang_sas", - "value": "sas" - }, - { - "label": "lang_sat", - "value": "sat" - }, - { - "label": "lang_scn", - "value": "scn" - }, - { - "label": "lang_sco", - "value": "sco" - }, - { - "label": "lang_sel", - "value": "sel" - }, - { - "label": "lang_sem", - "value": "sem" - }, - { - "label": "lang_sga", - "value": "sga" - }, - { - "label": "lang_sgn", - "value": "sgn" - }, - { - "label": "lang_shn", - "value": "shn" - }, - { - "label": "lang_sid", - "value": "sid" - }, - { - "label": "lang_sin", - "value": "sin" - }, - { - "label": "lang_sio", - "value": "sio" - }, - { - "label": "lang_sit", - "value": "sit" - }, - { - "label": "lang_sla", - "value": "sla" - }, - { - "label": "lang_slo", - "value": "slo" - }, - { - "label": "lang_slv", - "value": "slv" - }, - { - "label": "lang_sma", - "value": "sma" - }, - { - "label": "lang_sme", - "value": "sme" - }, - { - "label": "lang_smi", - "value": "smi" - }, - { - "label": "lang_smj", - "value": "smj" - }, - { - "label": "lang_smn", - "value": "smn" - }, - { - "label": "lang_smo", - "value": "smo" - }, - { - "label": "lang_sms", - "value": "sms" - }, - { - "label": "lang_sna", - "value": "sna" - }, - { - "label": "lang_snd", - "value": "snd" - }, - { - "label": "lang_snk", - "value": "snk" - }, - { - "label": "lang_sog", - "value": "sog" - }, - { - "label": "lang_som", - "value": "som" - }, - { - "label": "lang_son", - "value": "son" - }, - { - "label": "lang_sot", - "value": "sot" - }, - { - "label": "lang_spa", - "value": "spa" - }, - { - "label": "lang_srd", - "value": "srd" - }, - { - "label": "lang_srn", - "value": "srn" - }, - { - "label": "lang_srp", - "value": "srp" - }, - { - "label": "lang_srr", - "value": "srr" - }, - { - "label": "lang_ssa", - "value": "ssa" - }, - { - "label": "lang_ssw", - "value": "ssw" - }, - { - "label": "lang_suk", - "value": "suk" - }, - { - "label": "lang_sun", - "value": "sun" - }, - { - "label": "lang_sus", - "value": "sus" - }, - { - "label": "lang_sux", - "value": "sux" - }, - { - "label": "lang_swa", - "value": "swa" - }, - { - "label": "lang_swe", - "value": "swe" - }, - { - "label": "lang_syc", - "value": "syc" - }, - { - "label": "lang_syr", - "value": "syr" - }, - { - "label": "lang_tah", - "value": "tah" - }, - { - "label": "lang_tai", - "value": "tai" - }, - { - "label": "lang_tam", - "value": "tam" - }, - { - "label": "lang_tat", - "value": "tat" - }, - { - "label": "lang_tel", - "value": "tel" - }, - { - "label": "lang_tem", - "value": "tem" - }, - { - "label": "lang_ter", - "value": "ter" - }, - { - "label": "lang_tet", - "value": "tet" - }, - { - "label": "lang_tgk", - "value": "tgk" - }, - { - "label": "lang_tgl", - "value": "tgl" - }, - { - "label": "lang_tha", - "value": "tha" - }, - { - "label": "lang_tib", - "value": "tib" - }, - { - "label": "lang_tig", - "value": "tig" - }, - { - "label": "lang_tir", - "value": "tir" - }, - { - "label": "lang_tiv", - "value": "tiv" - }, - { - "label": "lang_tkl", - "value": "tkl" - }, - { - "label": "lang_tlh", - "value": "tlh" - }, - { - "label": "lang_tli", - "value": "tli" - }, - { - "label": "lang_tmh", - "value": "tmh" - }, - { - "label": "lang_tog", - "value": "tog" - }, - { - "label": "lang_ton", - "value": "ton" - }, - { - "label": "lang_tpi", - "value": "tpi" - }, - { - "label": "lang_tsi", - "value": "tsi" - }, - { - "label": "lang_tsn", - "value": "tsn" - }, - { - "label": "lang_tso", - "value": "tso" - }, - { - "label": "lang_tuk", - "value": "tuk" - }, - { - "label": "lang_tum", - "value": "tum" - }, - { - "label": "lang_tup", - "value": "tup" - }, - { - "label": "lang_tur", - "value": "tur" - }, - { - "label": "lang_tut", - "value": "tut" - }, - { - "label": "lang_tvl", - "value": "tvl" - }, - { - "label": "lang_twi", - "value": "twi" - }, - { - "label": "lang_tyv", - "value": "tyv" - }, - { - "label": "lang_udm", - "value": "udm" - }, - { - "label": "lang_uga", - "value": "uga" - }, - { - "label": "lang_uig", - "value": "uig" - }, - { - "label": "lang_ukr", - "value": "ukr" - }, - { - "label": "lang_umb", - "value": "umb" - }, - { - "label": "lang_und", - "value": "und" - }, - { - "label": "lang_urd", - "value": "urd" - }, - { - "label": "lang_uzb", - "value": "uzb" - }, - { - "label": "lang_vai", - "value": "vai" - }, - { - "label": "lang_ven", - "value": "ven" - }, - { - "label": "lang_vie", - "value": "vie" - }, - { - "label": "lang_vol", - "value": "vol" - }, - { - "label": "lang_vot", - "value": "vot" - }, - { - "label": "lang_wak", - "value": "wak" - }, - { - "label": "lang_wal", - "value": "wal" - }, - { - "label": "lang_war", - "value": "war" - }, - { - "label": "lang_was", - "value": "was" - }, - { - "label": "lang_wel", - "value": "wel" - }, - { - "label": "lang_wen", - "value": "wen" - }, - { - "label": "lang_wln", - "value": "wln" - }, - { - "label": "lang_wol", - "value": "wol" - }, - { - "label": "lang_xal", - "value": "xal" - }, - { - "label": "lang_xho", - "value": "xho" - }, - { - "label": "lang_yao", - "value": "yao" - }, - { - "label": "lang_yap", - "value": "yap" - }, - { - "label": "lang_yid", - "value": "yid" - }, - { - "label": "lang_yor", - "value": "yor" - }, - { - "label": "lang_ypk", - "value": "ypk" - }, - { - "label": "lang_zap", - "value": "zap" - }, - { - "label": "lang_zbl", - "value": "zbl" - }, - { - "label": "lang_zen", - "value": "zen" - }, - { - "label": "lang_zha", - "value": "zha" - }, - { - "label": "lang_znd", - "value": "znd" - }, - { - "label": "lang_zul", - "value": "zul" - }, - { - "label": "lang_zun", - "value": "zun" - }, - { - "label": "lang_zxx", - "value": "zxx" - }, - { - "label": "lang_zza", - "value": "zza" + "label": "Select an option...", + "value": "freq", + "items": [ + { + "label": "lang_eng", + "value": "eng", + "preferred": true + }, + { + "label": "lang_fre", + "value": "fre", + "preferred": true + }, + { + "label": "lang_ger", + "value": "ger", + "preferred": true + }, + { + "label": "lang_ita", + "value": "ita", + "preferred": true + } + ] + }, + { + "label": "------------", + "value": "sep", + "items": [ + { + "label": "lang_aar", + "value": "aar" + }, + { + "label": "lang_abk", + "value": "abk" + }, + { + "label": "lang_ace", + "value": "ace" + }, + { + "label": "lang_ach", + "value": "ach" + }, + { + "label": "lang_ada", + "value": "ada" + }, + { + "label": "lang_ady", + "value": "ady" + }, + { + "label": "lang_afa", + "value": "afa" + }, + { + "label": "lang_afh", + "value": "afh" + }, + { + "label": "lang_afr", + "value": "afr" + }, + { + "label": "lang_ain", + "value": "ain" + }, + { + "label": "lang_aka", + "value": "aka" + }, + { + "label": "lang_akk", + "value": "akk" + }, + { + "label": "lang_alb", + "value": "alb" + }, + { + "label": "lang_ale", + "value": "ale" + }, + { + "label": "lang_alg", + "value": "alg" + }, + { + "label": "lang_alt", + "value": "alt" + }, + { + "label": "lang_amh", + "value": "amh" + }, + { + "label": "lang_ang", + "value": "ang" + }, + { + "label": "lang_anp", + "value": "anp" + }, + { + "label": "lang_apa", + "value": "apa" + }, + { + "label": "lang_ara", + "value": "ara" + }, + { + "label": "lang_arc", + "value": "arc" + }, + { + "label": "lang_arg", + "value": "arg" + }, + { + "label": "lang_arm", + "value": "arm" + }, + { + "label": "lang_arn", + "value": "arn" + }, + { + "label": "lang_arp", + "value": "arp" + }, + { + "label": "lang_art", + "value": "art" + }, + { + "label": "lang_arw", + "value": "arw" + }, + { + "label": "lang_asm", + "value": "asm" + }, + { + "label": "lang_ast", + "value": "ast" + }, + { + "label": "lang_ath", + "value": "ath" + }, + { + "label": "lang_aus", + "value": "aus" + }, + { + "label": "lang_ava", + "value": "ava" + }, + { + "label": "lang_ave", + "value": "ave" + }, + { + "label": "lang_awa", + "value": "awa" + }, + { + "label": "lang_aym", + "value": "aym" + }, + { + "label": "lang_aze", + "value": "aze" + }, + { + "label": "lang_bad", + "value": "bad" + }, + { + "label": "lang_bai", + "value": "bai" + }, + { + "label": "lang_bak", + "value": "bak" + }, + { + "label": "lang_bal", + "value": "bal" + }, + { + "label": "lang_bam", + "value": "bam" + }, + { + "label": "lang_ban", + "value": "ban" + }, + { + "label": "lang_baq", + "value": "baq" + }, + { + "label": "lang_bas", + "value": "bas" + }, + { + "label": "lang_bat", + "value": "bat" + }, + { + "label": "lang_bej", + "value": "bej" + }, + { + "label": "lang_bel", + "value": "bel" + }, + { + "label": "lang_bem", + "value": "bem" + }, + { + "label": "lang_ben", + "value": "ben" + }, + { + "label": "lang_ber", + "value": "ber" + }, + { + "label": "lang_bho", + "value": "bho" + }, + { + "label": "lang_bih", + "value": "bih" + }, + { + "label": "lang_bik", + "value": "bik" + }, + { + "label": "lang_bin", + "value": "bin" + }, + { + "label": "lang_bis", + "value": "bis" + }, + { + "label": "lang_bla", + "value": "bla" + }, + { + "label": "lang_bnt", + "value": "bnt" + }, + { + "label": "lang_bos", + "value": "bos" + }, + { + "label": "lang_bra", + "value": "bra" + }, + { + "label": "lang_bre", + "value": "bre" + }, + { + "label": "lang_btk", + "value": "btk" + }, + { + "label": "lang_bua", + "value": "bua" + }, + { + "label": "lang_bug", + "value": "bug" + }, + { + "label": "lang_bul", + "value": "bul" + }, + { + "label": "lang_bur", + "value": "bur" + }, + { + "label": "lang_byn", + "value": "byn" + }, + { + "label": "lang_cad", + "value": "cad" + }, + { + "label": "lang_cai", + "value": "cai" + }, + { + "label": "lang_car", + "value": "car" + }, + { + "label": "lang_cat", + "value": "cat" + }, + { + "label": "lang_cau", + "value": "cau" + }, + { + "label": "lang_ceb", + "value": "ceb" + }, + { + "label": "lang_cel", + "value": "cel" + }, + { + "label": "lang_cha", + "value": "cha" + }, + { + "label": "lang_chb", + "value": "chb" + }, + { + "label": "lang_che", + "value": "che" + }, + { + "label": "lang_chg", + "value": "chg" + }, + { + "label": "lang_chi", + "value": "chi" + }, + { + "label": "lang_chk", + "value": "chk" + }, + { + "label": "lang_chm", + "value": "chm" + }, + { + "label": "lang_chn", + "value": "chn" + }, + { + "label": "lang_cho", + "value": "cho" + }, + { + "label": "lang_chp", + "value": "chp" + }, + { + "label": "lang_chr", + "value": "chr" + }, + { + "label": "lang_chu", + "value": "chu" + }, + { + "label": "lang_chv", + "value": "chv" + }, + { + "label": "lang_chy", + "value": "chy" + }, + { + "label": "lang_cmc", + "value": "cmc" + }, + { + "label": "lang_cnr", + "value": "cnr" + }, + { + "label": "lang_cop", + "value": "cop" + }, + { + "label": "lang_cor", + "value": "cor" + }, + { + "label": "lang_cos", + "value": "cos" + }, + { + "label": "lang_cpe", + "value": "cpe" + }, + { + "label": "lang_cpf", + "value": "cpf" + }, + { + "label": "lang_cpp", + "value": "cpp" + }, + { + "label": "lang_cre", + "value": "cre" + }, + { + "label": "lang_crh", + "value": "crh" + }, + { + "label": "lang_crp", + "value": "crp" + }, + { + "label": "lang_csb", + "value": "csb" + }, + { + "label": "lang_cus", + "value": "cus" + }, + { + "label": "lang_cze", + "value": "cze" + }, + { + "label": "lang_dak", + "value": "dak" + }, + { + "label": "lang_dan", + "value": "dan" + }, + { + "label": "lang_dar", + "value": "dar" + }, + { + "label": "lang_day", + "value": "day" + }, + { + "label": "lang_del", + "value": "del" + }, + { + "label": "lang_den", + "value": "den" + }, + { + "label": "lang_dgr", + "value": "dgr" + }, + { + "label": "lang_din", + "value": "din" + }, + { + "label": "lang_div", + "value": "div" + }, + { + "label": "lang_doi", + "value": "doi" + }, + { + "label": "lang_dra", + "value": "dra" + }, + { + "label": "lang_dsb", + "value": "dsb" + }, + { + "label": "lang_dua", + "value": "dua" + }, + { + "label": "lang_dum", + "value": "dum" + }, + { + "label": "lang_dut", + "value": "dut" + }, + { + "label": "lang_dyu", + "value": "dyu" + }, + { + "label": "lang_dzo", + "value": "dzo" + }, + { + "label": "lang_efi", + "value": "efi" + }, + { + "label": "lang_egy", + "value": "egy" + }, + { + "label": "lang_eka", + "value": "eka" + }, + { + "label": "lang_elx", + "value": "elx" + }, + { + "label": "lang_enm", + "value": "enm" + }, + { + "label": "lang_epo", + "value": "epo" + }, + { + "label": "lang_est", + "value": "est" + }, + { + "label": "lang_ewe", + "value": "ewe" + }, + { + "label": "lang_ewo", + "value": "ewo" + }, + { + "label": "lang_fan", + "value": "fan" + }, + { + "label": "lang_fao", + "value": "fao" + }, + { + "label": "lang_fat", + "value": "fat" + }, + { + "label": "lang_fij", + "value": "fij" + }, + { + "label": "lang_fil", + "value": "fil" + }, + { + "label": "lang_fin", + "value": "fin" + }, + { + "label": "lang_fiu", + "value": "fiu" + }, + { + "label": "lang_fon", + "value": "fon" + }, + { + "label": "lang_frm", + "value": "frm" + }, + { + "label": "lang_fro", + "value": "fro" + }, + { + "label": "lang_frr", + "value": "frr" + }, + { + "label": "lang_frs", + "value": "frs" + }, + { + "label": "lang_fry", + "value": "fry" + }, + { + "label": "lang_ful", + "value": "ful" + }, + { + "label": "lang_fur", + "value": "fur" + }, + { + "label": "lang_gaa", + "value": "gaa" + }, + { + "label": "lang_gay", + "value": "gay" + }, + { + "label": "lang_gba", + "value": "gba" + }, + { + "label": "lang_gem", + "value": "gem" + }, + { + "label": "lang_geo", + "value": "geo" + }, + { + "label": "lang_gez", + "value": "gez" + }, + { + "label": "lang_gil", + "value": "gil" + }, + { + "label": "lang_gla", + "value": "gla" + }, + { + "label": "lang_gle", + "value": "gle" + }, + { + "label": "lang_glg", + "value": "glg" + }, + { + "label": "lang_glv", + "value": "glv" + }, + { + "label": "lang_gmh", + "value": "gmh" + }, + { + "label": "lang_goh", + "value": "goh" + }, + { + "label": "lang_gon", + "value": "gon" + }, + { + "label": "lang_gor", + "value": "gor" + }, + { + "label": "lang_got", + "value": "got" + }, + { + "label": "lang_grb", + "value": "grb" + }, + { + "label": "lang_grc", + "value": "grc" + }, + { + "label": "lang_gre", + "value": "gre" + }, + { + "label": "lang_grn", + "value": "grn" + }, + { + "label": "lang_gsw", + "value": "gsw" + }, + { + "label": "lang_guj", + "value": "guj" + }, + { + "label": "lang_gwi", + "value": "gwi" + }, + { + "label": "lang_hai", + "value": "hai" + }, + { + "label": "lang_hat", + "value": "hat" + }, + { + "label": "lang_hau", + "value": "hau" + }, + { + "label": "lang_haw", + "value": "haw" + }, + { + "label": "lang_heb", + "value": "heb" + }, + { + "label": "lang_her", + "value": "her" + }, + { + "label": "lang_hil", + "value": "hil" + }, + { + "label": "lang_him", + "value": "him" + }, + { + "label": "lang_hin", + "value": "hin" + }, + { + "label": "lang_hit", + "value": "hit" + }, + { + "label": "lang_hmn", + "value": "hmn" + }, + { + "label": "lang_hmo", + "value": "hmo" + }, + { + "label": "lang_hrv", + "value": "hrv" + }, + { + "label": "lang_hsb", + "value": "hsb" + }, + { + "label": "lang_hun", + "value": "hun" + }, + { + "label": "lang_hup", + "value": "hup" + }, + { + "label": "lang_iba", + "value": "iba" + }, + { + "label": "lang_ibo", + "value": "ibo" + }, + { + "label": "lang_ice", + "value": "ice" + }, + { + "label": "lang_ido", + "value": "ido" + }, + { + "label": "lang_iii", + "value": "iii" + }, + { + "label": "lang_ijo", + "value": "ijo" + }, + { + "label": "lang_iku", + "value": "iku" + }, + { + "label": "lang_ile", + "value": "ile" + }, + { + "label": "lang_ilo", + "value": "ilo" + }, + { + "label": "lang_ina", + "value": "ina" + }, + { + "label": "lang_inc", + "value": "inc" + }, + { + "label": "lang_ind", + "value": "ind" + }, + { + "label": "lang_ine", + "value": "ine" + }, + { + "label": "lang_inh", + "value": "inh" + }, + { + "label": "lang_ipk", + "value": "ipk" + }, + { + "label": "lang_ira", + "value": "ira" + }, + { + "label": "lang_iro", + "value": "iro" + }, + { + "label": "lang_jav", + "value": "jav" + }, + { + "label": "lang_jbo", + "value": "jbo" + }, + { + "label": "lang_jpn", + "value": "jpn" + }, + { + "label": "lang_jpr", + "value": "jpr" + }, + { + "label": "lang_jrb", + "value": "jrb" + }, + { + "label": "lang_kaa", + "value": "kaa" + }, + { + "label": "lang_kab", + "value": "kab" + }, + { + "label": "lang_kac", + "value": "kac" + }, + { + "label": "lang_kal", + "value": "kal" + }, + { + "label": "lang_kam", + "value": "kam" + }, + { + "label": "lang_kan", + "value": "kan" + }, + { + "label": "lang_kar", + "value": "kar" + }, + { + "label": "lang_kas", + "value": "kas" + }, + { + "label": "lang_kau", + "value": "kau" + }, + { + "label": "lang_kaw", + "value": "kaw" + }, + { + "label": "lang_kaz", + "value": "kaz" + }, + { + "label": "lang_kbd", + "value": "kbd" + }, + { + "label": "lang_kha", + "value": "kha" + }, + { + "label": "lang_khi", + "value": "khi" + }, + { + "label": "lang_khm", + "value": "khm" + }, + { + "label": "lang_kho", + "value": "kho" + }, + { + "label": "lang_kik", + "value": "kik" + }, + { + "label": "lang_kin", + "value": "kin" + }, + { + "label": "lang_kir", + "value": "kir" + }, + { + "label": "lang_kmb", + "value": "kmb" + }, + { + "label": "lang_kok", + "value": "kok" + }, + { + "label": "lang_kom", + "value": "kom" + }, + { + "label": "lang_kon", + "value": "kon" + }, + { + "label": "lang_kor", + "value": "kor" + }, + { + "label": "lang_kos", + "value": "kos" + }, + { + "label": "lang_kpe", + "value": "kpe" + }, + { + "label": "lang_krc", + "value": "krc" + }, + { + "label": "lang_krl", + "value": "krl" + }, + { + "label": "lang_kro", + "value": "kro" + }, + { + "label": "lang_kru", + "value": "kru" + }, + { + "label": "lang_kua", + "value": "kua" + }, + { + "label": "lang_kum", + "value": "kum" + }, + { + "label": "lang_kur", + "value": "kur" + }, + { + "label": "lang_kut", + "value": "kut" + }, + { + "label": "lang_lad", + "value": "lad" + }, + { + "label": "lang_lah", + "value": "lah" + }, + { + "label": "lang_lam", + "value": "lam" + }, + { + "label": "lang_lao", + "value": "lao" + }, + { + "label": "lang_lat", + "value": "lat" + }, + { + "label": "lang_lav", + "value": "lav" + }, + { + "label": "lang_lez", + "value": "lez" + }, + { + "label": "lang_lim", + "value": "lim" + }, + { + "label": "lang_lin", + "value": "lin" + }, + { + "label": "lang_lit", + "value": "lit" + }, + { + "label": "lang_lol", + "value": "lol" + }, + { + "label": "lang_loz", + "value": "loz" + }, + { + "label": "lang_ltz", + "value": "ltz" + }, + { + "label": "lang_lua", + "value": "lua" + }, + { + "label": "lang_lub", + "value": "lub" + }, + { + "label": "lang_lug", + "value": "lug" + }, + { + "label": "lang_lui", + "value": "lui" + }, + { + "label": "lang_lun", + "value": "lun" + }, + { + "label": "lang_luo", + "value": "luo" + }, + { + "label": "lang_lus", + "value": "lus" + }, + { + "label": "lang_mac", + "value": "mac" + }, + { + "label": "lang_mad", + "value": "mad" + }, + { + "label": "lang_mag", + "value": "mag" + }, + { + "label": "lang_mah", + "value": "mah" + }, + { + "label": "lang_mai", + "value": "mai" + }, + { + "label": "lang_mak", + "value": "mak" + }, + { + "label": "lang_mal", + "value": "mal" + }, + { + "label": "lang_man", + "value": "man" + }, + { + "label": "lang_mao", + "value": "mao" + }, + { + "label": "lang_map", + "value": "map" + }, + { + "label": "lang_mar", + "value": "mar" + }, + { + "label": "lang_mas", + "value": "mas" + }, + { + "label": "lang_may", + "value": "may" + }, + { + "label": "lang_mdf", + "value": "mdf" + }, + { + "label": "lang_mdr", + "value": "mdr" + }, + { + "label": "lang_men", + "value": "men" + }, + { + "label": "lang_mga", + "value": "mga" + }, + { + "label": "lang_mic", + "value": "mic" + }, + { + "label": "lang_min", + "value": "min" + }, + { + "label": "lang_mis", + "value": "mis" + }, + { + "label": "lang_mkh", + "value": "mkh" + }, + { + "label": "lang_mlg", + "value": "mlg" + }, + { + "label": "lang_mlt", + "value": "mlt" + }, + { + "label": "lang_mnc", + "value": "mnc" + }, + { + "label": "lang_mni", + "value": "mni" + }, + { + "label": "lang_mno", + "value": "mno" + }, + { + "label": "lang_moh", + "value": "moh" + }, + { + "label": "lang_mon", + "value": "mon" + }, + { + "label": "lang_mos", + "value": "mos" + }, + { + "label": "lang_mul", + "value": "mul" + }, + { + "label": "lang_mun", + "value": "mun" + }, + { + "label": "lang_mus", + "value": "mus" + }, + { + "label": "lang_mwl", + "value": "mwl" + }, + { + "label": "lang_mwr", + "value": "mwr" + }, + { + "label": "lang_myn", + "value": "myn" + }, + { + "label": "lang_myv", + "value": "myv" + }, + { + "label": "lang_nah", + "value": "nah" + }, + { + "label": "lang_nai", + "value": "nai" + }, + { + "label": "lang_nap", + "value": "nap" + }, + { + "label": "lang_nau", + "value": "nau" + }, + { + "label": "lang_nav", + "value": "nav" + }, + { + "label": "lang_nbl", + "value": "nbl" + }, + { + "label": "lang_nde", + "value": "nde" + }, + { + "label": "lang_ndo", + "value": "ndo" + }, + { + "label": "lang_nds", + "value": "nds" + }, + { + "label": "lang_nep", + "value": "nep" + }, + { + "label": "lang_new", + "value": "new" + }, + { + "label": "lang_nia", + "value": "nia" + }, + { + "label": "lang_nic", + "value": "nic" + }, + { + "label": "lang_niu", + "value": "niu" + }, + { + "label": "lang_nno", + "value": "nno" + }, + { + "label": "lang_nob", + "value": "nob" + }, + { + "label": "lang_nog", + "value": "nog" + }, + { + "label": "lang_non", + "value": "non" + }, + { + "label": "lang_nor", + "value": "nor" + }, + { + "label": "lang_nqo", + "value": "nqo" + }, + { + "label": "lang_nso", + "value": "nso" + }, + { + "label": "lang_nub", + "value": "nub" + }, + { + "label": "lang_nwc", + "value": "nwc" + }, + { + "label": "lang_nya", + "value": "nya" + }, + { + "label": "lang_nym", + "value": "nym" + }, + { + "label": "lang_nyn", + "value": "nyn" + }, + { + "label": "lang_nyo", + "value": "nyo" + }, + { + "label": "lang_nzi", + "value": "nzi" + }, + { + "label": "lang_oci", + "value": "oci" + }, + { + "label": "lang_oji", + "value": "oji" + }, + { + "label": "lang_ori", + "value": "ori" + }, + { + "label": "lang_orm", + "value": "orm" + }, + { + "label": "lang_osa", + "value": "osa" + }, + { + "label": "lang_oss", + "value": "oss" + }, + { + "label": "lang_ota", + "value": "ota" + }, + { + "label": "lang_oto", + "value": "oto" + }, + { + "label": "lang_paa", + "value": "paa" + }, + { + "label": "lang_pag", + "value": "pag" + }, + { + "label": "lang_pal", + "value": "pal" + }, + { + "label": "lang_pam", + "value": "pam" + }, + { + "label": "lang_pan", + "value": "pan" + }, + { + "label": "lang_pap", + "value": "pap" + }, + { + "label": "lang_pau", + "value": "pau" + }, + { + "label": "lang_peo", + "value": "peo" + }, + { + "label": "lang_per", + "value": "per" + }, + { + "label": "lang_phi", + "value": "phi" + }, + { + "label": "lang_phn", + "value": "phn" + }, + { + "label": "lang_pli", + "value": "pli" + }, + { + "label": "lang_pol", + "value": "pol" + }, + { + "label": "lang_pon", + "value": "pon" + }, + { + "label": "lang_por", + "value": "por" + }, + { + "label": "lang_pra", + "value": "pra" + }, + { + "label": "lang_pro", + "value": "pro" + }, + { + "label": "lang_pus", + "value": "pus" + }, + { + "label": "lang_que", + "value": "que" + }, + { + "label": "lang_raj", + "value": "raj" + }, + { + "label": "lang_rap", + "value": "rap" + }, + { + "label": "lang_rar", + "value": "rar" + }, + { + "label": "lang_roa", + "value": "roa" + }, + { + "label": "lang_roh", + "value": "roh" + }, + { + "label": "lang_rom", + "value": "rom" + }, + { + "label": "lang_rum", + "value": "rum" + }, + { + "label": "lang_run", + "value": "run" + }, + { + "label": "lang_rup", + "value": "rup" + }, + { + "label": "lang_rus", + "value": "rus" + }, + { + "label": "lang_sad", + "value": "sad" + }, + { + "label": "lang_sag", + "value": "sag" + }, + { + "label": "lang_sah", + "value": "sah" + }, + { + "label": "lang_sai", + "value": "sai" + }, + { + "label": "lang_sal", + "value": "sal" + }, + { + "label": "lang_sam", + "value": "sam" + }, + { + "label": "lang_san", + "value": "san" + }, + { + "label": "lang_sas", + "value": "sas" + }, + { + "label": "lang_sat", + "value": "sat" + }, + { + "label": "lang_scn", + "value": "scn" + }, + { + "label": "lang_sco", + "value": "sco" + }, + { + "label": "lang_sel", + "value": "sel" + }, + { + "label": "lang_sem", + "value": "sem" + }, + { + "label": "lang_sga", + "value": "sga" + }, + { + "label": "lang_sgn", + "value": "sgn" + }, + { + "label": "lang_shn", + "value": "shn" + }, + { + "label": "lang_sid", + "value": "sid" + }, + { + "label": "lang_sin", + "value": "sin" + }, + { + "label": "lang_sio", + "value": "sio" + }, + { + "label": "lang_sit", + "value": "sit" + }, + { + "label": "lang_sla", + "value": "sla" + }, + { + "label": "lang_slo", + "value": "slo" + }, + { + "label": "lang_slv", + "value": "slv" + }, + { + "label": "lang_sma", + "value": "sma" + }, + { + "label": "lang_sme", + "value": "sme" + }, + { + "label": "lang_smi", + "value": "smi" + }, + { + "label": "lang_smj", + "value": "smj" + }, + { + "label": "lang_smn", + "value": "smn" + }, + { + "label": "lang_smo", + "value": "smo" + }, + { + "label": "lang_sms", + "value": "sms" + }, + { + "label": "lang_sna", + "value": "sna" + }, + { + "label": "lang_snd", + "value": "snd" + }, + { + "label": "lang_snk", + "value": "snk" + }, + { + "label": "lang_sog", + "value": "sog" + }, + { + "label": "lang_som", + "value": "som" + }, + { + "label": "lang_son", + "value": "son" + }, + { + "label": "lang_sot", + "value": "sot" + }, + { + "label": "lang_spa", + "value": "spa" + }, + { + "label": "lang_srd", + "value": "srd" + }, + { + "label": "lang_srn", + "value": "srn" + }, + { + "label": "lang_srp", + "value": "srp" + }, + { + "label": "lang_srr", + "value": "srr" + }, + { + "label": "lang_ssa", + "value": "ssa" + }, + { + "label": "lang_ssw", + "value": "ssw" + }, + { + "label": "lang_suk", + "value": "suk" + }, + { + "label": "lang_sun", + "value": "sun" + }, + { + "label": "lang_sus", + "value": "sus" + }, + { + "label": "lang_sux", + "value": "sux" + }, + { + "label": "lang_swa", + "value": "swa" + }, + { + "label": "lang_swe", + "value": "swe" + }, + { + "label": "lang_syc", + "value": "syc" + }, + { + "label": "lang_syr", + "value": "syr" + }, + { + "label": "lang_tah", + "value": "tah" + }, + { + "label": "lang_tai", + "value": "tai" + }, + { + "label": "lang_tam", + "value": "tam" + }, + { + "label": "lang_tat", + "value": "tat" + }, + { + "label": "lang_tel", + "value": "tel" + }, + { + "label": "lang_tem", + "value": "tem" + }, + { + "label": "lang_ter", + "value": "ter" + }, + { + "label": "lang_tet", + "value": "tet" + }, + { + "label": "lang_tgk", + "value": "tgk" + }, + { + "label": "lang_tgl", + "value": "tgl" + }, + { + "label": "lang_tha", + "value": "tha" + }, + { + "label": "lang_tib", + "value": "tib" + }, + { + "label": "lang_tig", + "value": "tig" + }, + { + "label": "lang_tir", + "value": "tir" + }, + { + "label": "lang_tiv", + "value": "tiv" + }, + { + "label": "lang_tkl", + "value": "tkl" + }, + { + "label": "lang_tlh", + "value": "tlh" + }, + { + "label": "lang_tli", + "value": "tli" + }, + { + "label": "lang_tmh", + "value": "tmh" + }, + { + "label": "lang_tog", + "value": "tog" + }, + { + "label": "lang_ton", + "value": "ton" + }, + { + "label": "lang_tpi", + "value": "tpi" + }, + { + "label": "lang_tsi", + "value": "tsi" + }, + { + "label": "lang_tsn", + "value": "tsn" + }, + { + "label": "lang_tso", + "value": "tso" + }, + { + "label": "lang_tuk", + "value": "tuk" + }, + { + "label": "lang_tum", + "value": "tum" + }, + { + "label": "lang_tup", + "value": "tup" + }, + { + "label": "lang_tur", + "value": "tur" + }, + { + "label": "lang_tut", + "value": "tut" + }, + { + "label": "lang_tvl", + "value": "tvl" + }, + { + "label": "lang_twi", + "value": "twi" + }, + { + "label": "lang_tyv", + "value": "tyv" + }, + { + "label": "lang_udm", + "value": "udm" + }, + { + "label": "lang_uga", + "value": "uga" + }, + { + "label": "lang_uig", + "value": "uig" + }, + { + "label": "lang_ukr", + "value": "ukr" + }, + { + "label": "lang_umb", + "value": "umb" + }, + { + "label": "lang_und", + "value": "und" + }, + { + "label": "lang_urd", + "value": "urd" + }, + { + "label": "lang_uzb", + "value": "uzb" + }, + { + "label": "lang_vai", + "value": "vai" + }, + { + "label": "lang_ven", + "value": "ven" + }, + { + "label": "lang_vie", + "value": "vie" + }, + { + "label": "lang_vol", + "value": "vol" + }, + { + "label": "lang_vot", + "value": "vot" + }, + { + "label": "lang_wak", + "value": "wak" + }, + { + "label": "lang_wal", + "value": "wal" + }, + { + "label": "lang_war", + "value": "war" + }, + { + "label": "lang_was", + "value": "was" + }, + { + "label": "lang_wel", + "value": "wel" + }, + { + "label": "lang_wen", + "value": "wen" + }, + { + "label": "lang_wln", + "value": "wln" + }, + { + "label": "lang_wol", + "value": "wol" + }, + { + "label": "lang_xal", + "value": "xal" + }, + { + "label": "lang_xho", + "value": "xho" + }, + { + "label": "lang_yao", + "value": "yao" + }, + { + "label": "lang_yap", + "value": "yap" + }, + { + "label": "lang_yid", + "value": "yid" + }, + { + "label": "lang_yor", + "value": "yor" + }, + { + "label": "lang_ypk", + "value": "ypk" + }, + { + "label": "lang_zap", + "value": "zap" + }, + { + "label": "lang_zbl", + "value": "zbl" + }, + { + "label": "lang_zen", + "value": "zen" + }, + { + "label": "lang_zha", + "value": "zha" + }, + { + "label": "lang_znd", + "value": "znd" + }, + { + "label": "lang_zul", + "value": "zul" + }, + { + "label": "lang_zun", + "value": "zun" + }, + { + "label": "lang_zxx", + "value": "zxx" + }, + { + "label": "lang_zza", + "value": "zza" + } + ] } ] } } } -} \ No newline at end of file +} diff --git a/sonar/common/jsonschemas/license-v1.0.0.json b/sonar/common/jsonschemas/license-v1.0.0.json index 8a0a5bff..1a104c82 100644 --- a/sonar/common/jsonschemas/license-v1.0.0.json +++ b/sonar/common/jsonschemas/license-v1.0.0.json @@ -18,9 +18,6 @@ "expressions": { "props.required": "true" }, - "wrappers": [ - "card" - ], "props": { "options": [ { @@ -63,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/sonar/common/jsonschemas/type-v1.0.0.json b/sonar/common/jsonschemas/type-v1.0.0.json index 09a8e9d1..2137bcd1 100644 --- a/sonar/common/jsonschemas/type-v1.0.0.json +++ b/sonar/common/jsonschemas/type-v1.0.0.json @@ -54,12 +54,10 @@ ], "widget": { "formlyConfig": { + "type": "tree-select", "expressions": { "props.required": "true" }, - "wrappers": [ - "card" - ], "props": { "sort": false, "options": [ @@ -283,4 +281,4 @@ } } } -} \ No newline at end of file +} diff --git a/sonar/dedicated/hepvs/projects/jsonschemas/hepvs/projects/project-v1.0.0_src.json b/sonar/dedicated/hepvs/projects/jsonschemas/hepvs/projects/project-v1.0.0_src.json index d5fd5bfb..d83937f3 100644 --- a/sonar/dedicated/hepvs/projects/jsonschemas/hepvs/projects/project-v1.0.0_src.json +++ b/sonar/dedicated/hepvs/projects/jsonschemas/hepvs/projects/project-v1.0.0_src.json @@ -73,7 +73,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" } @@ -88,7 +88,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" } @@ -160,7 +160,7 @@ "type": "string", "widget": { "formlyConfig": { - "type": "datepicker" + "type": "datePicker" } } }, @@ -540,7 +540,6 @@ ], "widget": { "formlyConfig": { - "type": "select", "props": { "options": [ { @@ -687,7 +686,6 @@ ], "widget": { "formlyConfig": { - "type": "select", "props": { "options": [ { @@ -943,7 +941,6 @@ ], "widget": { "formlyConfig": { - "type": "select", "expressions": { "hide": "!model || !model.choice" }, diff --git a/sonar/modules/collections/jsonschemas/collections/collection-v1.0.0_src.json b/sonar/modules/collections/jsonschemas/collections/collection-v1.0.0_src.json index 8ba54f70..6f897dc1 100644 --- a/sonar/modules/collections/jsonschemas/collections/collection-v1.0.0_src.json +++ b/sonar/modules/collections/jsonschemas/collections/collection-v1.0.0_src.json @@ -166,6 +166,11 @@ "type": "string", "minLength": 1 }, + "label": { + "title": "Label", + "type": "string", + "minLength": 1 + }, "mimetype": { "title": "Mimetype", "type": "string", @@ -183,6 +188,9 @@ "type": "integer" } }, + "propertiesOrder": [ + "label" + ], "required": [ "bucket", "file_id", @@ -199,4 +207,4 @@ "required": [ "name" ] -} \ No newline at end of file +} diff --git a/sonar/modules/deposits/api.py b/sonar/modules/deposits/api.py index 6a6785e5..e60babd8 100644 --- a/sonar/modules/deposits/api.py +++ b/sonar/modules/deposits/api.py @@ -456,20 +456,12 @@ def create_document(self): dbcommit=True, with_bucket=True) - current_order = 2 - for file in self.files: + for idx, file in enumerate(self.files, start=1): with file.file.storage().open() as pdf_file: content = pdf_file.read() - - if file.get('category', 'main') == 'main': - order = 1 - else: - order = current_order - current_order += 1 - kwargs = { 'label': file.get('label', file['key']), - 'order': order + 'order': file.get('order', idx) } if file.get('embargo', False) and file.get('embargoDate'): diff --git a/sonar/modules/deposits/jsonschemas/deposits/deposit-v1.0.0_src.json b/sonar/modules/deposits/jsonschemas/deposits/deposit-v1.0.0_src.json index 0632b5c6..ebcbbd9b 100644 --- a/sonar/modules/deposits/jsonschemas/deposits/deposit-v1.0.0_src.json +++ b/sonar/modules/deposits/jsonschemas/deposits/deposit-v1.0.0_src.json @@ -73,14 +73,12 @@ "type": "string", "minLength": 1 }, - "category": { - "title": "Type", - "type": "string", - "enum": [ - "main", - "additional" - ], - "default": "main" + "order": { + "title": "Position", + "description": "Position of the file, the first file in the list is the main file.", + "type": "integer", + "default": 1, + "minimum": 1 }, "type": { "title": "Type", @@ -324,14 +322,6 @@ "language": { "$ref": "language-v1.0.0.json" } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "language": { @@ -425,9 +415,7 @@ ], "widget": { "formlyConfig": { - "wrappers": [ - "card" - ], + "type": "tree-select", "props": { "options": [ { @@ -570,14 +558,6 @@ "type", "value" ] - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "publication": { @@ -739,11 +719,7 @@ "formlyConfig": { "expressions": { "hide": "field.parent.model && !['coar:c_3248', 'coar:c_5794', 'coar:c_6670', 'coar:c_3e5a', 'coar:c_ba08', 'coar:c_beb9', 'coar:c_6501', 'coar:c_816b', 'coar:c_998f', 'coar:c_dcae04bc'].includes(field.parent.model.documentType)" - }, - "wrappers": [ - "card" - ], - "props": {} + } } } }, @@ -790,14 +766,6 @@ } } } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "collections": { @@ -828,14 +796,6 @@ "required": [ "$ref" ] - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "classification": { @@ -874,14 +834,6 @@ } } } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "subjects": { @@ -916,14 +868,6 @@ } } } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "dissertation": { @@ -972,11 +916,7 @@ "formlyConfig": { "expressions": { "hide": "field.parent.model && !['coar:c_46ec', 'coar:c_7a1f', 'coar:c_db06', 'coar:c_bdcc', 'habilitation_thesis', 'advanced_studies_thesis', 'other_thesis'].includes(field.parent.model.documentType)" - }, - "wrappers": [ - "card" - ], - "props": {} + } } } }, @@ -1200,14 +1140,6 @@ } } } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } } } @@ -1271,9 +1203,6 @@ ], "widget": { "formlyConfig": { - "wrappers": [ - "card" - ], "props": { "options": [ { @@ -1329,14 +1258,6 @@ "minLength": 4 } } - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "projects": { @@ -1404,7 +1325,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" } @@ -1418,7 +1339,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" } @@ -1438,14 +1359,6 @@ ] } ] - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "diffusion": { @@ -1493,14 +1406,6 @@ "required": [ "$ref" ] - }, - "widget": { - "formlyConfig": { - "wrappers": [ - "card" - ], - "props": {} - } } }, "masked": { diff --git a/sonar/modules/deposits/mappings/v7/deposits/deposit-v1.0.0.json b/sonar/modules/deposits/mappings/v7/deposits/deposit-v1.0.0.json index 4e663303..2d040acd 100644 --- a/sonar/modules/deposits/mappings/v7/deposits/deposit-v1.0.0.json +++ b/sonar/modules/deposits/mappings/v7/deposits/deposit-v1.0.0.json @@ -41,12 +41,12 @@ "size": { "type": "integer" }, + "order": { + "type": "integer" + }, "label": { "type": "text" }, - "category": { - "type": "keyword" - }, "type": { "type": "keyword" }, diff --git a/sonar/modules/deposits/rest.py b/sonar/modules/deposits/rest.py index 55a17474..4606976e 100644 --- a/sonar/modules/deposits/rest.py +++ b/sonar/modules/deposits/rest.py @@ -66,7 +66,6 @@ def post(pid=None): # Store document deposit.files[key] = BytesIO(request.get_data()) deposit.files[key]['label'] = re.search(r'(.*)\..*$', key).group(1) - deposit.files[key]['category'] = request.args['type'] deposit.files[key]['type'] = 'file' deposit.commit() @@ -247,7 +246,7 @@ def extract_metadata(pid=None): main_file = [ file for file in deposit.files - if file['category'] == 'main' and file.mimetype == 'application/pdf' + if file['order'] == 1 and file.mimetype == 'application/pdf' ] if not main_file: diff --git a/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json b/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json index decb74b9..cc8966c8 100644 --- a/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json +++ b/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json @@ -296,8 +296,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -386,8 +385,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -1254,8 +1252,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -1287,8 +1284,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -1444,8 +1440,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -1609,8 +1604,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -1676,8 +1670,7 @@ "formlyConfig": { "wrappers": [ "hide" - ], - "props": {} + ] } } }, @@ -2168,6 +2161,7 @@ "pattern": "^https://sonar.ch/api/projects/.*?$", "widget": { "formlyConfig": { + "type": "remoteTypeahead", "props": { "remoteTypeahead": { "type": "projects", diff --git a/sonar/modules/organisations/jsonschemas/organisations/organisation-v1.0.0_src.json b/sonar/modules/organisations/jsonschemas/organisations/organisation-v1.0.0_src.json index b7127821..dfc90ac4 100644 --- a/sonar/modules/organisations/jsonschemas/organisations/organisation-v1.0.0_src.json +++ b/sonar/modules/organisations/jsonschemas/organisations/organisation-v1.0.0_src.json @@ -501,12 +501,20 @@ "type": "string", "minLength": 1 }, + "label": { + "title": "Label", + "type": "string", + "minLength": 1 + }, "size": { "title": "Size", "description": "Size of the file in bytes.", "type": "integer" } }, + "propertiesOrder": [ + "label" + ], "required": [ "bucket", "file_id", diff --git a/sonar/modules/users/jsonschemas/users/user-v1.0.0.json b/sonar/modules/users/jsonschemas/users/user-v1.0.0.json index c415b353..420dd3ae 100644 --- a/sonar/modules/users/jsonschemas/users/user-v1.0.0.json +++ b/sonar/modules/users/jsonschemas/users/user-v1.0.0.json @@ -46,7 +46,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker" + "type": "datePicker" } } }, diff --git a/sonar/resources/projects/jsonschemas/projects/project-v1.0.0_src.json b/sonar/resources/projects/jsonschemas/projects/project-v1.0.0_src.json index 0552710f..1c423177 100644 --- a/sonar/resources/projects/jsonschemas/projects/project-v1.0.0_src.json +++ b/sonar/resources/projects/jsonschemas/projects/project-v1.0.0_src.json @@ -72,7 +72,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" } @@ -87,7 +87,7 @@ "pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "widget": { "formlyConfig": { - "type": "datepicker", + "type": "datePicker", "props": { "placeholder": "Example: 2020-12-01" }