|
From: | Paul POULAIN |
Subject: | Re: [Koha-devel] koha head and prog templates |
Date: | Wed Oct 26 01:16:10 2005 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Paul POULAIN a écrit :
I've just donwloaded the PROG templates owen made, and have some comments.
continuing thinking on the list...I did not dream the solution last night, but have some comments after investigating a little bit more.
It seems that the PROG templates contains a lot of copy/paste from default ones. The copy/paste is related to the "core" of each page, I mean the "center" of the screen, it's main content. Every graphical improvement being removed. I've looked inside acquire.tmpl, aqbudget.tmpl and circulation.tmpl, except for header and footer, they almost are a copy of default templates.
That confirms what I wrote yesterday and can describe a little bit more, I think it's a way to explore.
A page contains : * a header at the top. * a main menu (top or left usually). Always the same everywhere in the app. * a title* a contextual menu. contains every operations doable on this page (like "add a biblio", "see biblio in another format", "edit items", "add biblio to virtual shelf"...) * a navigation toolbar. Saying we were "Koha >> acquisition >> supplier >> recieve >> search order".
* a footer, at the end of the page. * the core content. The core content contains usually : - lists (tables) of informations - one or few forms - only a few buttons and/or links. that can be grouped in 1 or few logical blocs.Couldn't we define this structure as the mandatory structure for PROG templates ? then, the developpers would have to "tag" their structure with code like <core num="1">xxxx</core num="2"> on logical blocs. We would then have to developp a script to copy every 'core' blocs in another template system. We also could add a tag for dest template system to say 'hey dude, i've modified a core bloc, don't overwritte it, i'll take care of it manually'. With a warning during template upgrade.
That might be a good solution, except that the core bloc will be the same for everybody.
Attached is a sample of what it could be for circulation.tmpl (randomly choosen template). I also have added a name="xxx" in the core to explain what the bloc is done for, and stored core tag as html comment.
Does that sound a good idea ? -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)Koha -- Circulation: Issuing to , ()
The patron has a debt of $
Item is currently issued to this patron. Renew?
Item is consigned for
Item is on reserve for
Item issued to . Return and issue?
Too many issues (already issued / max : )
" /> " /> " /> " /> " /> " />Item issued
No patron matched Add a new patron " /> " />Patron not found? Add a new patron
Day selected="selected">1 selected="selected">2 selected="selected">3 selected="selected">4 selected="selected">5 selected="selected">6 selected="selected">7 selected="selected">8 selected="selected">9 selected="selected">10 selected="selected">11 selected="selected">12 selected="selected">13 selected="selected">14 selected="selected">15 selected="selected">16 selected="selected">17 selected="selected">18 selected="selected">19 selected="selected">20 selected="selected">21 selected="selected">22 selected="selected">23 selected="selected">24 selected="selected">25 selected="selected">26 selected="selected">27 selected="selected">28 selected="selected">29 selected="selected">30 selected="selected">31 Month selected="selected">Jan selected="selected">Feb selected="selected">Mar selected="selected">Apr selected="selected">May selected="selected">Jun selected="selected">Jul selected="selected">Aug selected="selected">Sep selected="selected">Oct selected="selected">Nov selected="selected">Dec Year selected="selected">2004 selected="selected">2005 selected="selected">2006 selected="selected">2007 selected="selected">2008 /> " /> " /> " /> " />
" />" />Due Date | Title | Author | Call No | Barcode | Renew? |
---|---|---|---|---|---|
" value="y" checked="checked" /> | |||||
Previous Issues | |||||
" value="y" checked="checked" /> |
[Prev in Thread] | Current Thread | [Next in Thread] |