[Koha-devel] OPAC dir structure redesign

Jared Camins-Esakov jcamins at cpbibliography.com
Sun May 5 14:55:11 CEST 2013


Mason,

Owen and I were talking recently about a plan to improve the current OPAC
> directory structure...
>
> the big problem is there is currently much duplication of unnecessary
> dirs/files.
> each theme has many duplicated files - and each language for each theme
> has many duplicated files
>
> all this duplication means that subtle bugs can occur...
> now that we have got the awesome new CCSR theme added, the next step is to
> fix the OPAC dir structure to accommodate multiple themes easily and safely
> :)
>

Agreed, but I have some reservations about your proposal (described below).

each theme's dir (eg: prog or ccsr) only needs a 'css' dir,
> all other theme's existing subdirs can be moved to the shared top-level
> 'lib' and 'images' dirs
>

If this is prescriptive (i.e. "nothing but CSS can go in a theme"), I think
this would be a problem. The entire point of themes is that you can do more
than just change opac.css and colors.css. If that's all themes did, we
wouldn't need them because we have system preferences to change opac.css
and colors.css.


> again, with the language subdirs…
>
> each 'langs' subdir (eg: en or fr-FR) only needs an 'includes', 'modules',
> and 'xslt' dir
> (as these are the only dirs that have any actual language
> translation/substiution applied to them)
>
> all other existing language's subdirs can be moved to the shared top-level
> 'lib' and 'images' dirs, too
>

While we are reorganizing things, it might be nice to reorganize the YUI
files so that we organize them the same way that the official YUI package
is organized.

Regards,
Jared

-- 
Jared Camins-Esakov
Bibliographer, C & P Bibliography Services, LLC
(phone) +1 (917) 727-3445
(e-mail) jcamins at cpbibliography.com
(web) http://www.cpbibliography.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20130505/59b146ca/attachment.html>


More information about the Koha-devel mailing list