[Koha-bugs] [Bug 10986] Limit the list of languages in advanced search through system preferences

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 3 14:08:29 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10986

--- Comment #12 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
(In reply to Blou from comment #11)
> (In reply to Katrin Fischer from comment #10)
> > Not saying we should keep them - just that rewriting will need some thought
> > put into it. And I think this patch would be a nice enh.
> 
> Well, am I glad I made sure to not impact anything else.  I was first
> wondering if "just removing the language entries from a table would do it
> for the libraries", but then I saw the JOIN on the tables involved and
> decided not to touch it.  
> 
> If the language features have reached maturity, then it might be a good time
> to start thinking about refactoring it safely, now that all the pieces can
> be considered.  But the solution doesn't necessarily involve touching the
> tables if it is all nicely hidden behind a single and clear API.  And as
> they say : "if ain't broke, don't mess it" :)


Maybe we could fill the tables with all the 639-2 codes, and use your syspref
not for overriding the table, but for picking up in it the codes we want to
display in the dropdown list (and the order of the codes in the syspref would
alter the order of the list)?
If so, the syspref could have a defaut value the list of the codes currently
displayed.
That assume that all records are using iso 639-2, while technically it is not
the case for MARC21 records. But Koha is currently not making distinction
between iso 639-2 and MARC21 codes, so it could be a future enh.

Mathieu

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list