[Bug 14252] New: Moving the OPAC language switcher to masthead navbar
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bug ID: 14252 Summary: Moving the OPAC language switcher to masthead navbar Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: trivial Priority: P3 Component: OPAC Assignee: oleonard@myacpl.org Reporter: indradg@gmail.com QA Contact: testopia@bugs.koha-community.org Created attachment 39369 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39369&action=edit The suggested placement at 1366x768 resolution The OPAC language switcher takes up a lot of space at the bottom of the browser. it also has issues of being not always visible (being worked on by Bernardo - http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11057). Discussed this with @bgkriegel and @drojf on #koha. The common opinion seemed to be that this might not be a bad idea to explore, provided it doesn't blow up on handhelds. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=11057 Patch complexity|--- |Trivial patch Severity|trivial |normal Assignee|oleonard@myacpl.org |indradg@gmail.com CC| |bgkriegel@gmail.com, | |mirko@abunchofthings.net -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #1 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39433 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39433&action=edit Bug 14252 - Move OPAC lang switcher to masthead navbar The OPAC language switcher takes up a lot of space at the bottom of the browser. It also has issues of being not always visible. This patch adds the switcher to the masthead navbar and removes from the opac-bottom.inc navbar. Test plan ========= 1/ Apply patch 2/ Set opaclanguagesdisplay syspref to 'show'. 3/ Add a few languages i.e. es-ES, fr-FR and de-DE $ cd misc/translator $ perl translate <langcode> 4/ Enable installed languages for OPAC use by checking on 'opaclanguages' under I18N/L10N sysprefs 5/ Go to the OPAC, you should have a "Languages" dropdown on the masthead navbar, the opac-bottom.inc navbar should no longer be there. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #2 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39434 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39434&action=edit Display check on smaller devices Tested on a 4.3 inch 540x960 pixel display (reference device Moto E generation 1) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 - low -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff --- Comment #3 from Indranil Das Gupta <indradg@gmail.com> --- Please particularly review the language / language grouping loop code. I'm not entirely sure if my understanding of C4/Languages.pm was up to the mark. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtompset@hotmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch --- Comment #4 from Marc Véron <veron@veron.ch> --- Created attachment 39436 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39436&action=edit Sub-languages not selectable (e.g. de-DE and de-CH) I like the idea very much. However if two sublanguages are installed (e.g. de-DE and de-CH), they are no longer selectable. I would prefer to have them on the same level (see screenshots and mockup attached). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #5 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Marc Véron from comment #4)
Created attachment 39436 [details] Sub-languages not selectable (e.g. de-DE and de-CH)
I like the idea very much. However if two sublanguages are installed (e.g. de-DE and de-CH), they are no longer selectable.
I would prefer to have them on the same level (see screenshots and mockup attached).
Would you be adverse to displaying the code (en, fr-FR, etc.) regardless of language subgroup? It makes the coding simpler. ;) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #6 from Indranil Das Gupta <indradg@gmail.com> --- In reply to comment 4 and comment 5 Yes, what you say makes sense. Will be re-working the patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39433|0 |1 is obsolete| | --- Comment #7 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39443 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39443&action=edit [SIGNED-OFF] Bug 14252 - Move OPAC lang switcher to masthead navbar The OPAC language switcher takes up a lot of space at the bottom of the browser. It also has issues of being not always visible. This patch adds the switcher to the masthead navbar and removes from the opac-bottom.inc navbar. Test plan ========= 1/ Apply patch 2/ Set opaclanguagesdisplay syspref to 'show'. 3/ Add a few languages i.e. es-ES, fr-FR and de-DE $ cd misc/translator $ perl translate <langcode> 4/ Enable installed languages for OPAC use by checking on 'opaclanguages' under I18N/L10N sysprefs 5/ Go to the OPAC, you should have a "Languages" dropdown on the masthead navbar, the opac-bottom.inc navbar should no longer be there. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works, no koha-qa errors. Followup fix language chooser for sublanguages -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #8 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39444 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39444&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39444|0 |1 is obsolete| | --- Comment #9 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39445 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39445&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #10 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Hi, followup fixes the display of sublanguages. First patch signed. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39445|0 |1 is obsolete| | --- Comment #11 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39446 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39446&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 3rd version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39446|0 |1 is obsolete| | --- Comment #12 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39447 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39447&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 4th version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) Added language sort using rfc4646 subtag -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #13 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39448 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39448&action=edit View on movil View on small device -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39447|0 |1 is obsolete| | --- Comment #14 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39449 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39449&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 4th version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) Added language sort using rfc4646 subtag Signed-off-by: Indranil Das Gupta <indradg@gmail.com> Followup fixes the issue with lang group dropdowns. Works well across standard desktop as well as mobile device with small screens (checked on 4.3" / 4.7" / 5") -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #15 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to Bernardo Gonzalez Kriegel from comment #12)
Created attachment 39447 [details] [review] Bug 14252: (followup) fix lang chooser for sublanguages
This quick fix disables sublanguages dropdown, show all sublanguages on same level.
Thanks Bernardo for the quickfix :-) It was just to hot to work today (RealFeel was about 50 deg C). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m --- Comment #16 from Jonathan Druart <jonathan.druart@biblibre.com> --- Indranil, Could you please sent an email on koha or koha-devel to get opinion on this new placement? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #17 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to Jonathan Druart from comment #16)
Indranil, Could you please sent an email on koha or koha-devel to get opinion on this new placement?
Jonathan, Done! Posted a followup to my previous mail on both lists - http://lists.koha-community.org/pipermail/koha-devel/2015-May/041465.html -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com --- Comment #18 from Josef Moravec <josef.moravec@gmail.com> --- I think it's not good idea to have the dropdown list for language switcher titled "Language". It's always going to be in the actual language and the user may not be able to recognize this as language switcher. If we want the dropdown, it's a bit better to call it by active language. But best approach is always to have links (or bottom bar, like in Koha) of available languages. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #19 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to Josef Moravec from comment #18)
I think it's not good idea to have the dropdown list for language switcher titled "Language". It's always going to be in the actual language and the user may not be able to recognize this as language switcher.
^^^ that is a function of the specific language's translation team working under the Koha translation project to provide. It is not a function of a patch for this bug.
If we want the dropdown, it's a bit better to call it by active language.
e.g. when es-ES-opac-bootstrap.po is re-generated with the entry for "Languages" in masthead.inc and translated by the Spanish L10N team, the dropdown's text will read "Idiomas" when switched to es-ES hope that helps :-) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #20 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I think I understand Josef's point and agree. Currently the language names are clearly visible in their own language - with this patch they would get hidden in a menu labelled in a language I might not speak or understand. Example: If I don't know any Spanish, but end up on a Spanish website, I will look for a clear icon or better the terms 'english' or 'german' or 'Deutsch' to switch it. I won't recognize that the 'idiomas' menu is what I am looking for easily. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #21 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Katrin Fischer from comment #20)
I think I understand Josef's point and agree.
Currently the language names are clearly visible in their own language - with this patch they would get hidden in a menu labelled in a language I might not speak or understand.
The other thing people tend to look for are pretty little flags. ;) That could easily be added to the patch, I think. And that would solve the "Where do I fix my language setting mix up?" problem. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #22 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hm, I think flags are problematic in other ways, because picking one is not always easy for any language. Also - as long as it's a menu, that won't change the problem. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #23 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- I like the new position for Languages too. But it gets kind of crowdy on that top bar (when the user is logged in and has a longer name..) Imo Languages has more rights to be there than e.g. Search history. Could we move Search history now to the bar with Advanced Search and Authority Search? Could we also combine "Welcome, Marcel.." and Logout ? Only Show the name and provide a dropdown with User options and Logout ? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #24 from Mirko Tietgen <mirko@abunchofthings.net> --- (In reply to Katrin Fischer from comment #20)
I think I understand Josef's point and agree.
Currently the language names are clearly visible in their own language -
Unfortunately, everything is invisible right now, unless you know you have to scroll down to find the language names. It confused me more than once. And on mobile, I'd expect to find an option to switch languages in the header. I agree with the points of Josef (visible language names) and Katrin (no flags). We could hide the language names behind a universal "language switcher" symbol in the header, but there is none. Things I have seen used were a globe symbol, a flag symbol (unspecified), Fontawesome has this http://fontawesome.io/icon/language/ and there are probably more. Showing the language code of the language in use is also a way of doing things, but you need people to be able to read the script in use and recognize it as something representing a language. I found this to be an interesting read on the topic. http://flagsarenotlanguages.com/blog/2013/10/case-study-onefinestay-com-and-... Having thought about it a little more, I'd say moving the switcher is the wrong way to go. A switcher in the header should be an addition, not a replacement for the one in the footer. And the one in the footer should be visible without any scrolling, as it used to be, at least on a desktop size screen. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #25 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Mirko Tietgen from comment #24)
I found this to be an interesting read on the topic. http://flagsarenotlanguages.com/blog/2013/10/case-study-onefinestay-com-and- dropdown-language-selection/
Interesting read. I think this is very much applicable to our scenario here.
Having thought about it a little more, I'd say moving the switcher is the wrong way to go. A switcher in the header should be an addition, not a replacement for the one in the footer.
I'll agree, because some people are already used to the footer language switcher.
And the one in the footer should be visible without any scrolling, as it used to be, at least on a desktop size screen.
Isn't that what 11057 is about? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #26 from Marc Véron <veron@veron.ch> --- (In reply to Katrin Fischer from comment #22)
Hm, I think flags are problematic in other ways, because picking one is not always easy for any language. (...)
E.g. for Switzerland: We have German, French, Italian languages and it always looks a bit odd to see them symbolized by "foreign" flags (Germany, France, Italy)... (In reply to Mirko Tietgen from comment #24)
A switcher in the header should be an addition, not a replacement for the one in the footer. (...)
Why not having a syspref (Language selection in header or footer with footer as default)? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |In Discussion --- Comment #27 from Jonathan Druart <jonathan.druart@biblibre.com> --- Set to In Discussion. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #28 from Indranil Das Gupta <indradg@gmail.com> --- Hi Marc (In reply to Marc Véron from comment #26)
(In reply to Katrin Fischer from comment #22)
Hm, I think flags are problematic in other ways, because picking one is not always easy for any language. (...)
E.g. for Switzerland: We have German, French, Italian languages and it always looks a bit odd to see them symbolized by "foreign" flags (Germany, France, Italy)...
The Swiss have 3, well think about India, 22 officially recognised languages, all well-represented in Unicode. :) As for the flag bit, IMHO the better way to go about it is to use the flag of the country the language is representing e.g. pt-PT should use Portugal's flag, whereas pt-BR should use Brazil's flag. That way all 3 languages of Switzerland should be tagged against the Swiss flag.
(In reply to Mirko Tietgen from comment #24)
A switcher in the header should be an addition, not a replacement for the one in the footer. (...)
Why not having a syspref (Language selection in header or footer with footer as default)?
+1 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #29 from Mirko Tietgen <mirko@abunchofthings.net> --- (In reply to Marc Véron from comment #26)
Why not having a syspref (Language selection in header or footer with footer as default)?
Because I would like both. :P So a third option (»both«) would be nice. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #30 from Marc Véron <veron@veron.ch> --- (In reply to Mirko Tietgen from comment #29)
(In reply to Marc Véron from comment #26)
Why not having a syspref (Language selection in header or footer with footer as default)?
Because I would like both. :P So a third option (»both«) would be nice.
Yes, indeed :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Viktor Sarge <viktor.sarge@regionhalland.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |viktor.sarge@regionhalland. | |se --- Comment #31 from Viktor Sarge <viktor.sarge@regionhalland.se> --- Interesting. Both have their merits. What I like about the current solution is that it's visible (if we fix that bug...) and that switching language is a one off thing that you don't need to waste screen space in the top on mobile devices for. Using a drop down seems reasonable when you have many languages, but it does waste screen space on the top of pages (having to scroll extra on every page in mobile because of a one off language switcher is no fun). Also it's hard to make it obvious that it's there. Perhaps a hybrid with a drop down showing when there's too many languages installed to display the all? I still vote for the footer however. For a drop down I would solve identifying it with using the language names in their own alphabet. If I see a drop down on an english web that displays arabic my first thought it that it will also have french, german, hungarian and swedish (etcetera) :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #32 from Viktor Sarge <viktor.sarge@regionhalland.se> --- Oh... please disregard the note about scrolling past language chooser on every page of mobile device. That was me being to quick when looking at the screenshots :) But if I (now finally) understand the issue correctly we would indeed need a way to better communicate where you choose the language. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Gaetan Boisson <gaetan.boisson@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gaetan.boisson@biblibre.com --- Comment #33 from Gaetan Boisson <gaetan.boisson@biblibre.com> --- Interesting topic! My 2 cents: - I like the icon used by Indranil in his first suggestions (a very generic flag), i think a lot of people will associate a flag with a language selector on a website. There are other interesting options using language characters, but i have the feeling they need more space to be readable. - Flags as languages sound like a bad idea, France is not the French language and so on, but it seems we all agree on this. - They could be used for sub-languages next to the language name itself, it works for de-DE and de-CH for instance. But i am not 100% sure it works everywhere, so we could still end up in political territory. (If we had an Euskara translation for instance, a language spoken in the southwest of France and a part of Spain, where a number of claims for independence have been made. Choosing one flag over another will be a political choice...) - I think we should keep links at the bottom, things at the bottom don't waste space, and some users will find them there. All in all i think we are very close to it: a language picker at the top, with a generic flag icon, sub-languages listed one after another, and links at the bottom where they used to be. I am not even sure we need another syspref, if we have a css id for the top picker unhappy people will be able to hide it easily. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #34 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Gaetan Boisson from comment #33)
- I like the icon used by Indranil in his first suggestions (a very generic flag), i think a lot of people will associate a flag with a language selector on a website. There are other interesting options using language characters, but i have the feeling they need more space to be readable.
Yes, when I said flag, I didn't mean it had to be a country flag. A generic language selector icon of some sort (whether a flag, globe, etc.).
[SNIP] Choosing one flag over another will be a political choice...)
Hence, a generic icon of some sort. Flag shaped? Perhaps. Globe. Whatever, some graphic that screams, "Hey, this is where the language can be changed."
- I think we should keep links at the bottom, things at the bottom don't waste space, and some users will find them there.
Some users will not scroll below the current screen visual. :(
All in all i think we are very close to it: a language picker at the top, with a generic flag icon, sub-languages listed one after another, and links at the bottom where they used to be.
Generally, perhaps. Yes.
I am not even sure we need another syspref, if we have a css id for the top picker unhappy people will be able to hide it easily.
I always prefer a system preference option over a CSS option. The former requires less technical expertise. Someone playing around with Koha for evaluation purposes is not necessarily going to have CSS expertise or such available to them. Don't force librarians to learn HTML, CSS, Perl, Linux, etc. in order to use Koha. Let's keep the technical level required for customizations low if possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #35 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39622 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39622&action=edit (followup) Adds OpacLangSelectorMode syspref Based on discussion, this followup does the following: 1/ brings back the switcher on opac-bottom.inc 2/ adds a syspref OpacLangSelectorMode to toggle between the three modes: (a) show switcher both on masthead and footer (default) (b) footer only (b) masthead only Test plan ========= 1/ apply earlier patches attached to this bug in their correct order 2/ apply this followup patch 3/ run updatedatabase.pl to add in the atomic update 4/ goto admin/preferences.pl?tab=opac 5/ look up OpacLangSelectorMode, it should be set with default value "both masthead and footer" 6/ check OPAC to see if both locations show the selectors 7/ change OpacLangSelectorMode to 'only header' and 'only footer' at each iteration, and check if the selection has correctly toggled the selectors. It should Note: make sure you do not have the patch 11057 applied on the branch from before, otherwise merge conflict might happen. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #36 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39650 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39650&action=edit (followup) correction of string comparison op the last followup commit had used '==' to compare the syspref string values - both, head and foot. corrects that to use 'eq' in both masthead.inc and opac-bottom.inc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39650|0 |1 is obsolete| | --- Comment #37 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 39650 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39650 (followup) correction of string comparison op http://template-toolkit.org/docs/manual/Directives.html#section_IF_UNLESS_EL... Don't confuse Template Toolkit and Perl comparisons. It's easy to do. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #38 from Marc Véron <veron@veron.ch> --- Created attachment 39706 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39706&action=edit [Signed-off] Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 4th version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) Added language sort using rfc4646 subtag Signed-off-by: Indranil Das Gupta <indradg@gmail.com> Followup fixes the issue with lang group dropdowns. Works well across standard desktop as well as mobile device with small screens (checked on 4.3" / 4.7" / 5") Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39449|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #39 from Marc Véron <veron@veron.ch> --- Created attachment 39707 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39707&action=edit [Signed-off] (followup) Adds OpacLangSelectorMode syspref Based on discussion, this followup does the following: 1/ brings back the switcher on opac-bottom.inc 2/ adds a syspref OpacLangSelectorMode to toggle between the three modes: (a) show switcher both on masthead and footer (default) (b) footer only (b) masthead only Test plan ========= 1/ apply earlier patches attached to this bug in their correct order 2/ apply this followup patch 3/ run updatedatabase.pl to add in the atomic update 4/ goto admin/preferences.pl?tab=opac 5/ look up OpacLangSelectorMode, it should be set with default value "both masthead and footer" 6/ check OPAC to see if both locations show the selectors 7/ change OpacLangSelectorMode to 'only header' and 'only footer' at each iteration, and check if the selection has correctly toggled the selectors. It should Note: make sure you do not have the patch 11057 applied on the branch from before, otherwise merge conflict might happen. http://bugs.koha-community.org/show_bug.cgi?id=14252 Followed test plan. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39622|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #40 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 39707 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39707 [Signed-off] (followup) Adds OpacLangSelectorMode syspref Review of attachment 39707: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14252&attachment=39707) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ +321,5 @@
+ - "Display language selector on " + - pref: OpacLangSelectorMode + choices: + both: "both masthead and footer" + head: "only header"
Choose 'masthead' or 'header' and be consistent. ::: koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ +71,4 @@
<a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a> <div id="members"> <ul class="nav pull-right"> + [% IF ( Koha.Preference( 'OpacLangSelectorMode' ) == 'both' ) || ( Koha.Preference( 'OpacLangSelectorMode' ) == 'head' ) %]
I know it is an extra line of code, but the whole Koha.Preference() call is 'slow', so a double call is 2n. Variable access in Template Toolkit is most certainly faster than a call. [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %] [% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'head' %] is likely faster (n+k, where 1<k<n). @@ +106,4 @@
[% END # / UNLESS ( one_language_enabled ) %] [% END # / IF ( languages_loop && opaclanguagesdisplay ) %] [% END # / IF opaclanguagesdisplay %] + [% END # / IF OpacLangSelectorMode %]
Both sections are new code, could we get the indentation right? ::: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ +70,5 @@
+ </div> <!-- / #changelanguage --> + [% END # / UNLESS ( one_language_enabled ) %] + [% END # / IF ( languages_loop && opaclanguagesdisplay ) %] + [% END # / IF opaclanguagesdisplay %] +[% END %]
Why not indent this properly? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #41 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Looking at Mark's comments I think at least the first 2 should be fixed - can you please take a look? Thx! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #42 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39724 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39724&action=edit (Fixup) Fixes multiple issues in comment #40 Small fix - addresses the concerns pointed to by Mark Tompsett in comment #40 (code review) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39724|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #43 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39725 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39725&action=edit (Followup) Fixed issues pointed to in comment #40 Based on Mark's inputs in comment #40 - [1] selected 'mast' (short of 'masthead') and updated : (a) bug_14252-OpacLangSelectorMode_syspref.sql (b) sysprefs.sql (c) opac.pref [2] Reduced the calls to Koha.Preference() from : (a) masthead.inc (b) opac-bottom.inc After applying this patch, update the database once for it to pick up the new option values -'both|mast|foot'. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #44 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39726 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39726&action=edit (fix) address the indentation for the lang loop tidy the indentation for that lang selector loop code. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #45 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 39707 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39707 [Signed-off] (followup) Adds OpacLangSelectorMode syspref Review of attachment 39707: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14252&attachment=39707) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ +32,5 @@
+[% IF ( Koha.Preference( 'OpacLangSelectorMode' ) == 'both' ) || ( Koha.Preference( 'OpacLangSelectorMode' ) == 'foot' ) %] + [% IF ( opaclanguagesdisplay ) %] + [% IF ( languages_loop && opaclanguagesdisplay ) %] + [% UNLESS ( one_language_enabled ) %] + <div id="changelanguage" class="navbar navbar-fixed-bottom navbar-static-bottom">
Why is 'noprint' missing from the class list? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #46 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 39725 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39725 (Followup) Fixed issues pointed to in comment #40 Review of attachment 39725: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14252&attachment=39725) ----------------------------------------------------------------- ::: installer/data/mysql/atomicupdate/bug_14252-OpacLangSelectorMode_syspref.sql @@ +1,4 @@
-- -- Adds OpacLangSelectorMode syspref for bug 14252 -- +INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLangSelectorMode','both','both|mast|foot','Select the location to display the language selector','Choice');
The default value should be 'foot'. New system preferences should not change current behaviours. ::: installer/data/mysql/sysprefs.sql @@ +270,4 @@
('OpacItemLocation','callnum','callnum|ccode|location','Show the shelving location of items in the opac','Choice'), ('OPACItemsResultsDisplay','0','','If OFF : show only the status of items in result list.If ON : show full location of items (branch+location+callnumber) as in staff interface','YesNo'), ('OpacKohaUrl','1',NULL,'Show \'Powered by Koha\' text on OPAC footer.',NULL), +('OpacLangSelectorMode','both','both|mast|foot','Select the location to display the language selector','Choice'),
'foot', not 'both'. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Moving the OPAC language |Make the OPAC language |switcher to masthead navbar |switcher available in the | |masthead navbar, footer, or | |both. Severity|normal |enhancement -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #47 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to M. Tompsett from comment #46)
Comment on attachment 39725 [details] [review] (Followup) Fixed issues pointed to in comment #40
Review of attachment 39725 [details] [review]: ----------------------------------------------------------------- <snipped>
The default value should be 'foot'. New system preferences should not change current behaviours.
Mark, While I acknowledge the part that it shouldn't change current behavior, I do not agree with you on this. Earlier there was only 'foot', it is still retained by 'both', the masthead is an addition, not a replacement. The whole point of having the masthead switcher is nullified IMO if it is not available along with the earlier footer placement. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #48 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39727 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39727&action=edit Bug 14252: Follow up noprint and default values TEST PLAN --------- 0) Back up your DB 1) open OPAC -- should only have languages in footer. Annoyingly below the fold. 2) Drop your koha database, and create a blank one. 3) Apply all patches 4) Go to staff client and do an install of koha, with all the dummy data. 5) Once installed, refresh your OPAC page -- language selector position should be in footer still as expected. -- this confirms the sysprefs.sql change. 6) Restore your DB 7) run the updatedatabase.pl script 8) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 9) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 10) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 11) run koha qa test tools -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39443|0 |1 is obsolete| | --- Comment #49 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39728 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39728&action=edit Bug 14252 - Move OPAC lang switcher to masthead navbar The OPAC language switcher takes up a lot of space at the bottom of the browser. It also has issues of being not always visible. This patch adds the switcher to the masthead navbar and removes from the opac-bottom.inc navbar. Test plan ========= 1/ Apply patch 2/ Set opaclanguagesdisplay syspref to 'show'. 3/ Add a few languages i.e. es-ES, fr-FR and de-DE $ cd misc/translator $ perl translate <langcode> 4/ Enable installed languages for OPAC use by checking on 'opaclanguages' under I18N/L10N sysprefs 5/ Go to the OPAC, you should have a "Languages" dropdown on the masthead navbar, the opac-bottom.inc navbar should no longer be there. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works, no koha-qa errors. Followup fix language chooser for sublanguages Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39706|0 |1 is obsolete| | --- Comment #50 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39729 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39729&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 4th version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) Added language sort using rfc4646 subtag Signed-off-by: Indranil Das Gupta <indradg@gmail.com> Followup fixes the issue with lang group dropdowns. Works well across standard desktop as well as mobile device with small screens (checked on 4.3" / 4.7" / 5") Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39707|0 |1 is obsolete| | --- Comment #51 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39730 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39730&action=edit (followup) Adds OpacLangSelectorMode syspref Based on discussion, this followup does the following: 1/ brings back the switcher on opac-bottom.inc 2/ adds a syspref OpacLangSelectorMode to toggle between the three modes: (a) show switcher both on masthead and footer (default) (b) footer only (b) masthead only Test plan ========= 1/ apply earlier patches attached to this bug in their correct order 2/ apply this followup patch 3/ run updatedatabase.pl to add in the atomic update 4/ goto admin/preferences.pl?tab=opac 5/ look up OpacLangSelectorMode, it should be set with default value "both masthead and footer" 6/ check OPAC to see if both locations show the selectors 7/ change OpacLangSelectorMode to 'only header' and 'only footer' at each iteration, and check if the selection has correctly toggled the selectors. It should Note: make sure you do not have the patch 11057 applied on the branch from before, otherwise merge conflict might happen. http://bugs.koha-community.org/show_bug.cgi?id=14252 Followed test plan. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39725|0 |1 is obsolete| | --- Comment #52 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39731 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39731&action=edit (Followup) Fixed issues pointed to in comment #40 Based on Mark's inputs in comment #40 - [1] selected 'mast' (short of 'masthead') and updated : (a) bug_14252-OpacLangSelectorMode_syspref.sql (b) sysprefs.sql (c) opac.pref [2] Reduced the calls to Koha.Preference() from : (a) masthead.inc (b) opac-bottom.inc After applying this patch, update the database once for it to pick up the new option values -'both|mast|foot'. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39726|0 |1 is obsolete| | --- Comment #53 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39732 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39732&action=edit (fix) address the indentation for the lang loop tidy the indentation for that lang selector loop code. http://bugs.koha-community.org/show_bug.cgi?id=14252 Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39727|0 |1 is obsolete| | --- Comment #54 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39733 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39733&action=edit Bug 14252: Follow up noprint and default values TEST PLAN --------- 0) Back up your DB 1) open OPAC -- should only have languages in footer. Annoyingly below the fold. 2) Drop your koha database, and create a blank one. 3) Apply all patches 4) Go to staff client and do an install of koha, with all the dummy data. 5) Once installed, refresh your OPAC page -- language selector position should be in footer still as expected. -- this confirms the sysprefs.sql change. 6) Restore your DB 7) run the updatedatabase.pl script 8) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 9) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 10) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 11) run koha qa test tools -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39733|0 |1 is obsolete| | --- Comment #55 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39734 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39734&action=edit Bug 14252: Follow up noprint and default values TEST PLAN --------- 0) Back up your DB 1) open OPAC -- should only have languages in footer. Annoyingly below the fold. 2) Drop your koha database, and create a blank one. 3) Apply all patches 4) Go to staff client and do an install of koha, with all the dummy data. 5) Once installed, refresh your OPAC page -- language selector position should be in footer still as expected. -- this confirms the sysprefs.sql change. 6) Restore your DB 7) run the updatedatabase.pl script 8) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 9) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 10) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 11) run koha qa test tools Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #56 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hm, I think maybe a compromise: new installations (sysprefs.sql) could be set to both, while we keep it for existing installations at 'foot'. Looking at this, and hoping not to be to nit-picky - why not use top|both|footer? Mast looks a bit weird and quite template specific. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #57 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 39746 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39746&action=edit (followup) addresses the QA Manager comments Addresses Katrin's comments in comment# 56 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff --- Comment #58 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to Katrin Fischer from comment #56)
Hm, I think maybe a compromise: new installations (sysprefs.sql) could be set to both, while we keep it for existing installations at 'foot'.
Mark and I both agree with that! Nice suggestion!
Looking at this, and hoping not to be to nit-picky - why not use top|both|footer? Mast looks a bit weird and quite template specific.
^^^ Done! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39746|0 |1 is obsolete| | --- Comment #59 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 39749 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39749&action=edit Bug 14252: (followup) addresses the QA Manager comments Addresses Katrin's comments in comment# 56 TEST PLAN --------- 1) Back up your DB 2) Ensure you have multiple languages, including some that have sub-languages (e.g. de-DE, de-CH) -- cd misc/translator -- perl translate install {language code} 3) Ensure that you have all the languages enabled -- Staff client -> Home -> Global system preferences --> I18N/L10N Check all the languages in opaclanguages. Ensure that opaclanguagesdisplay is 'Allow' 4) Open OPAC -- should only have languages in footer. Annoyingly below the fold. 5) Drop your koha database, and create a blank one. 6) Apply all patches 7) Reinstall all the known languages, so the templates are appropriately updated. 8) Go to staff client and do an install of koha, with all the dummy data. 9) Ensure you have all the languages enabled (see (3)) 10) Refresh your OPAC page -- language selector position should be in both the footer and at the top as expected. -- this confirms the sysprefs.sql change. 11) Restore your DB 12) run the updatedatabase.pl script 13) Ensure you have all the languages enabled (see (3)) 14) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 15) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 16) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 17) run koha qa test tools NOTE: Tested as a single batch together. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39728|0 |1 is obsolete| | Attachment #39729|0 |1 is obsolete| | Attachment #39730|0 |1 is obsolete| | Attachment #39731|0 |1 is obsolete| | Attachment #39732|0 |1 is obsolete| | Attachment #39734|0 |1 is obsolete| | Attachment #39749|0 |1 is obsolete| | --- Comment #60 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39857 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39857&action=edit Bug 14252 - Move OPAC lang switcher to masthead navbar The OPAC language switcher takes up a lot of space at the bottom of the browser. It also has issues of being not always visible. This patch adds the switcher to the masthead navbar and removes from the opac-bottom.inc navbar. Test plan ========= 1/ Apply patch 2/ Set opaclanguagesdisplay syspref to 'show'. 3/ Add a few languages i.e. es-ES, fr-FR and de-DE $ cd misc/translator $ perl translate <langcode> 4/ Enable installed languages for OPAC use by checking on 'opaclanguages' under I18N/L10N sysprefs 5/ Go to the OPAC, you should have a "Languages" dropdown on the masthead navbar, the opac-bottom.inc navbar should no longer be there. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works, no koha-qa errors. Followup fix language chooser for sublanguages Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #61 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39858 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39858&action=edit Bug 14252: (followup) fix lang chooser for sublanguages This quick fix disables sublanguages dropdown, show all sublanguages on same level. To test: 1) Apply both patches 2) Translate to have sublanguages (en-NZ, de-DE, de-CH) 3) Go to opac, confirm you can select any lang/sublang 4) Check on movil device 4th version. Removed rfc4646 subtag on sublanguages, think it's cleaner. Currently on master all translated languages/regions have valid description ('en' at least) Added language sort using rfc4646 subtag Signed-off-by: Indranil Das Gupta <indradg@gmail.com> Followup fixes the issue with lang group dropdowns. Works well across standard desktop as well as mobile device with small screens (checked on 4.3" / 4.7" / 5") Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #62 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39859 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39859&action=edit Bug 14252: (followup) Adds OpacLangSelectorMode syspref Based on discussion, this followup does the following: 1/ brings back the switcher on opac-bottom.inc 2/ adds a syspref OpacLangSelectorMode to toggle between the three modes: (a) show switcher both on masthead and footer (default) (b) footer only (b) masthead only Test plan ========= 1/ apply earlier patches attached to this bug in their correct order 2/ apply this followup patch 3/ run updatedatabase.pl to add in the atomic update 4/ goto admin/preferences.pl?tab=opac 5/ look up OpacLangSelectorMode, it should be set with default value "both masthead and footer" 6/ check OPAC to see if both locations show the selectors 7/ change OpacLangSelectorMode to 'only header' and 'only footer' at each iteration, and check if the selection has correctly toggled the selectors. It should Note: make sure you do not have the patch 11057 applied on the branch from before, otherwise merge conflict might happen. http://bugs.koha-community.org/show_bug.cgi?id=14252 Followed test plan. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #63 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39860 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39860&action=edit Bug 14252: (Followup) Fixed issues pointed to in comment #40 Based on Mark's inputs in comment #40 - [1] selected 'mast' (short of 'masthead') and updated : (a) bug_14252-OpacLangSelectorMode_syspref.sql (b) sysprefs.sql (c) opac.pref [2] Reduced the calls to Koha.Preference() from : (a) masthead.inc (b) opac-bottom.inc After applying this patch, update the database once for it to pick up the new option values -'both|mast|foot'. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #64 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39861 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39861&action=edit Bug 14252: (fix) address the indentation for the lang loop tidy the indentation for that lang selector loop code. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #65 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39862 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39862&action=edit Bug 14252: Follow up noprint and default values TEST PLAN --------- 0) Back up your DB 1) open OPAC -- should only have languages in footer. Annoyingly below the fold. 2) Drop your koha database, and create a blank one. 3) Apply all patches 4) Go to staff client and do an install of koha, with all the dummy data. 5) Once installed, refresh your OPAC page -- language selector position should be in footer still as expected. -- this confirms the sysprefs.sql change. 6) Restore your DB 7) run the updatedatabase.pl script 8) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 9) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 10) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 11) run koha qa test tools Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #66 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39863 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39863&action=edit Bug 14252: (followup) addresses the QA Manager comments Addresses Katrin's comments in comment# 56 TEST PLAN --------- 1) Back up your DB 2) Ensure you have multiple languages, including some that have sub-languages (e.g. de-DE, de-CH) -- cd misc/translator -- perl translate install {language code} 3) Ensure that you have all the languages enabled -- Staff client -> Home -> Global system preferences --> I18N/L10N Check all the languages in opaclanguages. Ensure that opaclanguagesdisplay is 'Allow' 4) Open OPAC -- should only have languages in footer. Annoyingly below the fold. 5) Drop your koha database, and create a blank one. 6) Apply all patches 7) Reinstall all the known languages, so the templates are appropriately updated. 8) Go to staff client and do an install of koha, with all the dummy data. 9) Ensure you have all the languages enabled (see (3)) 10) Refresh your OPAC page -- language selector position should be in both the footer and at the top as expected. -- this confirms the sysprefs.sql change. 11) Restore your DB 12) run the updatedatabase.pl script 13) Ensure you have all the languages enabled (see (3)) 14) Refresh the OPAC page -- should still only have languages in the footer. -- this confirms that upgrade won't change anything. -- this confirms the atomic update. 15) git diff origin/master -- the opac-bottom.inc difference should only have changes around a SET, IF, and END. This confirms the noprint was fixed. 16) In the staff client, change the OPAC system preference, OpacLangSelectorMode, to all three values. For each value, refresh the OPAC page, and confirm the position of the language selector. -- should work as expected. 17) run koha qa test tools NOTE: Tested as a single batch together. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 --- Comment #67 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 39864 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39864&action=edit Bug 14252: Add sort by rfc4646_subtag in footer This patch sort by rfc4646_subtag the languages in the footer. Same as in the header. Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |12017 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com Status|Passed QA |Pushed to Master --- Comment #68 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Enhancement pushed to master. Thanks Indranil! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14252 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=12017 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org