After a bit of playing with HTML::Template I have the following proposal Templates stored in includes directory under templates subfolder, each module (ie search, circ, catalog, etc.) has another subfolder, then another subfolder for each template, and then subfolders for each version of that template. Includes Templates Search Opac Search default.tmpl polish.tmpl french.tmpl local.tmpl Librarian Search default.tmpl polish.tmpl french.tmpl local.tmpl Opac Results default.tmpl Librarian Results default.tmpl We could then have a preference order for choosing templates, ie: local french default If a local template is available, it is used first, then the french template, falling back on the default template if no other is available. I don't know if this is too complicated, or too simple. What do we do if we have three different "default" opac results templates? What about a per-user preference for different templates? Maybe language should be dealt with completely separately... Just airing some thoughts... Steve.
-----Original Message-----
I don't know if this is too complicated, or too simple. What do we do if we have three different "default" opac results templates? What about a per-user preference for different templates? Maybe language should be dealt with completely separately...
I know there was some thought (might've been on the users list) of appearance (different color schemes, buttons, etc) templates (ie, skins) in addition to language. But that might just be following the open source pack mentality that (apparently) everything must have a customizable appearance... :) Nick
But that might just be following the open source pack mentality that (apparently) everything must have a customizable appearance... :)
Hmm - the work we were doing leading up to Koha was customising library OPAC's, so I've always felt that being able to change the look of it was fairly important Cheers Rachel _____________________________________________________________ Rachel Hamilton-Williams Katipo Communications WEBMISTRESS ph 021 389 128 or +64 04 934 1285 mailto:rachel@katipo.co.nz PO Box 12487, Wellington http://www.katipo.co.nz New Zealand Koha Open Source Library System http://www.koha.org
Hi Steve, Tonnesen Steve wrote:
After a bit of playing with HTML::Template I have the following proposal
[--snip--]
Templates stored in includes directory under templates subfolder, each module (ie search, circ, catalog, etc.) has another subfolder, then another subfolder for each template, and then subfolders for each version of that template.
Includes Templates Search Opac Search default.tmpl polish.tmpl french.tmpl local.tmpl Librarian Search
[--snip--]
I don't know if this is too complicated, or too simple. What do we do if we have three different "default" opac results templates? What about a per-user preference for different templates? Maybe language should be dealt with completely separately...
Just airing some thoughts...
These are not direct answers to your question but I hope they are useful nonetheless: The first distinction i'd draw is between the html "active content" versus the content "look and feel" For example, in the current koha, the "active content" control is partially implemented using the "type=" parameter in the *.pl files: Where the "active content" is displayed differently depending on the "type" of user accessing the file (the "active content" and "look and feel" depend on whether the "type" param equals "intra" or "opac" for example) It looks to me like the "type" options in combination with the new hierarchy might be getting overly complex? Raison d'etre for the "type" option is based on access level considerations as much as "look and feel"? If that is so, then the primary need may be for the admin to be able to specify an "html template set" based on user access level, and only secondarily on "look and feel"? For example - there may be three distinctly different versions of /catalogue/index.html depending on whether the user is a "NonMember", "Member", "Librarian", etc... For ease of controlling user access via a webserver (various flavours of auth), then the directory hierarchy might look more like: Includes Templates NonMember Search default.tmpl polish.tmpl french.tmpl local.tmpl Member Search default.tmpl polish.tmpl french.tmpl local.tmpl Librarian Search default.tmpl polish.tmpl french.tmpl local.tmpl This would allow webserver authentication control at the parent folder level and possibly for the admin to specify root path based on a user access level? I dunno if this is useful input in relation to your central question about HTML::Template - but I hope it makes sense at least :) R.
Tonnesen Steve wrote:
After a bit of playing with HTML::Template I have the following proposal
Templates stored in includes directory under templates subfolder, each module (ie search, circ, catalog, etc.) has another subfolder, then another subfolder for each template, and then subfolders for each version of that template.
If we really want to have a "plug-in" system that permits many looks and/or many languages, we must have a directory for each plug-in. thus, we MUST have, under the template directory : DEFAULT opac search.tmpl search_result.tmpl librarian search.tmpl search_result.tmpl biblio_add.tmpl circulation.tmpl images image1.gif anotherimage.gif FRENCH opac search.tmpl search_result.tmpl librarian search.tmpl search_result.tmpl biblio_add.tmpl circulation.tmpl images image1.gif anotherimage.gif MY_GREAT_NEW_LOOK opac search.tmpl search_result.tmpl librarian search.tmpl search_result.tmpl biblio_add.tmpl circulation.tmpl images image1.gif anotherimage.gif AQUA_LOOK opac search.tmpl search_result.tmpl librarian search.tmpl search_result.tmpl biblio_add.tmpl circulation.tmpl images image1.gif anotherimage.gif Thus we can easily create a new "look" (directory copy + modifiing it), and build a .tar.gz dedicated to the plug-in. When koha is launched, you just have to scan the "template" directory and list all sub-directories. We could even have 2 librarians with a different look. (which may be interesting for international libraries like mine ;-) ) This structure is used by softs like nuke / post-nuke, and are great. -- Paul
participants (5)
-
Nicholas Rosasco -
paul POULAIN -
Rachel Hamilton-Williams -
Roger Buck -
Tonnesen Steve