A general query about UI customization
Hi, No real problem, rather just want people's opinion on this. For OPAC or Staff Client text string UI artifacts - e.g, labels, what do you prefer to do? a) hand edit the template file or b) use a bit of jquery in either intranetuserjs / opacuserjs for on-the-fly replacement My personal preference is to use approach "b" thanks in advance -indra -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
* Indranil Das Gupta (indradg@gmail.com) wrote:
Hi,
No real problem, rather just want people's opinion on this.
For OPAC or Staff Client text string UI artifacts - e.g, labels, what do you prefer to do?
a) hand edit the template file
or
b) use a bit of jquery in either intranetuserjs / opacuserjs for on-the-fly replacement
My personal preference is to use approach "b"
Hi Indranil b) Is almost always the best option, Next best is to use the translation tools to create a local .po file, edit that and generate a new set of templates. The last resort, if you can do nothing else is a). Option b and the translation option will not create a file that is going to be overwritten on upgrade. Option a) means you either have to run out of git, or manually remake that change every upgrade. What usually happens is if people do a few a) they then decide upgrading is hard, and don't upgrade for things like bug or security releases and make a rod for their own backs. Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Hi Chris, On Sun, Jan 20, 2013 at 11:45 PM, Chris Cormack <chrisc@catalyst.net.nz> wrote:
* Indranil Das Gupta (indradg@gmail.com) wrote:
<snipped>
b) Is almost always the best option, Next best is to use the translation tools to create a local .po file, edit that and generate a new set of templates.
Great tip! I hadn't thought about the .po file at all! :-) Except for the 00X range plugin popups, I've been using the jQuery route for everything else.
What usually happens is if people do a few a) they then decide upgrading is hard, and don't upgrade for things like bug or security releases and make a rod for their own backs.
Exactly the reason why I asked this. I've been seeing way too many Indian customization efforts head the way of option a) and then break totally between versions. thanks -Indra -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
participants (2)
-
Chris Cormack -
Indranil Das Gupta