Summary: | Standardize country information sent to Hea | ||
---|---|---|---|
Product: | Project Infrastructure | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Hea | Assignee: | Chris Cormack <chris> |
Status: | NEW --- | QA Contact: | Jonathan Druart <jonathan.druart> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | schodkowy.omegi-0r, victor |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35091 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36163 |
||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Katrin Fischer
2023-11-01 12:22:31 UTC
ok, so this is why the country list is so messy!! (also on the homepage: https://hea.koha-community.org/) Yeah it really should be using just the country code of some kind from the database as value being sent. Currently, even after the current set of fixes, you stop seeing the selected country value in the dropdown after changing intranet language. So three things would need to be done: - make Koha save the preference as country code (and on upgrade convert the currently saved prefs) - coerce all existing countries in Hea database into the country codes - Hea would need to map legacy translated values from legacy Koha versions to allow them to still be displayed on the site (because let's be real, nobody will update these installs for next 10 years) Problem: while languages are stored nicely in `language_descriptions` in the database, countries don't seem to have an equivalent; their current list is just in `country-list.inc` file. Simple alternative: always store and send the English name, display translated name in the UI only for the looks. The country list would still have to be stored in some nicer way probably, but at least it wouldn't require counterpart country codes list? Not sure if this would save much effort at all in the end. |