From paul.poulain@free.fr Fri Jul 10 01:22:45 2026 From: Paul POULAIN To: koha-devel@lists.koha-community.org Subject: [Koha-devel] prog templates (once again)... Date: Tue, 17 Jan 2006 18:32:06 +0100 Message-ID: <43CD2A16.6020506@free.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3187095421025203730==" --===============3187095421025203730== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sorry to bother you once again with this subject... I really tried to code with prog templates. But that's a pain... Because there are some features that have to be coded in the template. Like javascript or some important css/html things that can't be removed imho. Just one example : in acquisition directory, there is a doNotPrint css (in default templates) that makes a table column to be NOT printed (through a media=print stylesheet) we should not remove this stylesheet or we loose a feature ! I agree that actual default templates have to be improved. - doc-head-open and doc-head-close in prog templates are a good idea. - dividing menus in mainmenu / submenu is also a good idea. - we could have a unique id for each div (bloc). It's name could be the template name+ a number. With this a local stylesheet could remove a feature unwanted through the stylesheet. My idea is that the templates should be only one, and includes directory / stylesheet being local. That could give enough freedom to template designers. Let me know what you think, and maybe have a meeting on irc to definetly decide something. -- Paul POULAIN et Henri Damien LAURENT Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org) --===============3187095421025203730==-- From paul.poulain@free.fr Fri Jul 10 01:22:45 2026 From: Paul POULAIN To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] prog templates (once again)... Date: Wed, 18 Jan 2006 15:39:01 +0100 Message-ID: <43CE5305.9090906@free.fr> In-Reply-To: <43CD2A16.6020506@free.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8861778981971652436==" --===============8861778981971652436== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit OK, I gave prog templates a last chance... and worked on acquisitions to be sure every template is valid XHTML (there was some missing + lot of XHTML error) And finally I agree to work with PROG... I just have some comments to have consistent templates : * validate the XHTML. to do this, the best is to : set insecure=yes in system preferences && have the webdev toolbar installed on firefox && ctrl-shift-H to validate the current page in the w3c validator. * Some html proposals : - use h1 for page main title - use h2 for bloc level title - write forms with :

, NOT with - use
as few as possible (and only where tables are useful) - don't use
at the beginning of tables, at least not for table title. As most blocs are not table, the caption does not exist everywhere. Use h2 instead Questions : * the toggle variable is what the template designers must use when wanting a toggle color in :
I suggest having a style "toggled" in the css to check that the HTML is correct. * begin every "invariant" bloc with where X is a number : that is a big task and only useful is someone is ready to develop a "template compiler" (like the translator compiler). The idea would be to : be able to report blocs in a local template to have synch easier. An example : ============== my local template

something specific to me....

something coming from prog templates, unmodified Something modified locally, even if it exist in prog templates

something still specific...

the compiler would automatically replace the KOHA id=1 in the template, but let the KOHA id="2" as is, warning the user to check manually for a change. Does it sound interesting ? It would only is template designers plan not to modify invariant blocs, even for some spelling reasons (like "book bag" in NPL template where default says "basket" !) -- Paul POULAIN et Henri Damien LAURENT Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org) --===============8861778981971652436==-- From richard@katipo.co.nz Fri Jul 10 01:22:45 2026 From: Richard Anderson To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] prog templates (once again)... Date: Thu, 19 Jan 2006 11:22:14 +1300 Message-ID: <43CEBF96.7080507@katipo.co.nz> In-Reply-To: <43CE5305.9090906@free.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0585640310793748814==" --===============0585640310793748814== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, Just a couple of comments... Paul POULAIN wrote: > > * Some html proposals : > - use h1 for page main title > - use h2 for bloc level title > - write forms with :

, NOT > with I think there is a problem here in that the
as few as possible (and only where tables are useful) > - don't use
at the beginning of tables, at least not for table > title. As most blocs are not table, the caption does not exist > everywhere. Use h2 instead > > Questions : > * the toggle variable is what the template designers must use when > wanting a toggle color in :
with_toggle1_parameter> I suggest having a style "toggled" in the css to check that > the HTML is correct. I think it would be nice to add a unique id to each table. This would give a lot more options for people to format how each table looks via some contextual css. I guess in most cases it wouldn't be used but I think it is an easy option to add in at the templating stage. eg The class="toggled" in the 2 tables below could easily be made to look quite different via css without having to edit the template.
text text
text text
> > * begin every "invariant" bloc with where X is a > number : that is a big task and only useful is someone is ready to > develop a "template compiler" (like the translator compiler). The idea > would be to : be able to report blocs in a local template to have synch > easier. An example : > ============== > my local template >

something specific to me....

> > something coming from prog templates, unmodified > > > Something modified locally, even if it exist in prog templates > >

something still specific...

> > the compiler would automatically replace the KOHA id=1 in the template, > but let the KOHA id="2" as is, warning the user to check manually for a > change. > > Does it sound interesting ? It would only is template designers plan not > to modify invariant blocs, even for some spelling reasons (like "book > bag" in NPL template where default says "basket" !) > This sounds like a great idea. Cheers, Richard -- Richard Anderson Project Manager Katipo Communications PO Box 12487 Wellington Web: http://www.katipo.co.nz/ Ph: (04) 934 4251 (DDI) (04) 934 1285 Fax: (04) 934 1286 Mobile: 021 043 3649 --===============0585640310793748814==-- From paul.poulain@free.fr Fri Jul 10 01:22:45 2026 From: Paul POULAIN To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] prog templates (once again)... Date: Thu, 19 Jan 2006 09:26:52 +0100 Message-ID: <43CF4D4C.3070500@free.fr> In-Reply-To: <43CEBF96.7080507@katipo.co.nz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1136596064872860614==" --===============1136596064872860614== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Richard Anderson a écrit : >> - write forms with :

, NOT >> with > I think there is a problem here in that the