<div dir="ltr"><div>I'd also go for a templates/ dir also :-D<br><br><a href="http://wiki.koha-community.org/wiki/Source_tree_reorganizatiton_RFC">http://wiki.koha-community.org/wiki/Source_tree_reorganizatiton_RFC</a><br>
<br></div>Regards<br>To+<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 5, 2013 at 4:44 AM, Mason James <span dir="ltr"><<a href="mailto:mtj@kohaaloha.com" target="_blank">mtj@kohaaloha.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi All<br>
<br>
Owen and I were talking recently about a plan to improve the current OPAC directory structure...<br>
<br>
the big problem is there is currently much duplication of unnecessary dirs/files.<br>
each theme has many duplicated files - and each language for each theme has many duplicated files<br>
<br>
all this duplication means that subtle bugs can occur...<br>
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 :)<br>
<br>
<br>
i have a proposed redesign, which i think is the best balance of removing all duplication, and making the least number of changes to the existing structure<br>
<br>
<br>
in the new design there are 2 new top-level dirs, 'themes' and 'langs'.<br>
<br>
note: these are the *only* newly created dirs - the rest of the redesign is simply moving existing dirs from one location to another location<br>
<br>
<br>
each theme's dir (eg: prog or ccsr) only needs a 'css' dir,<br>
all other theme's existing subdirs can be moved to the shared top-level 'lib' and 'images' dirs<br>
<br>
<br>
again, with the language subdirs…<br>
<br>
each 'langs' subdir (eg: en or fr-FR) only needs an 'includes', 'modules', and 'xslt' dir<br>
(as these are the only dirs that have any actual language translation/substiution applied to them)<br>
<br>
all other existing language's subdirs can be moved to the shared top-level 'lib' and 'images' dirs, too<br>
<br>
<br>
below is an example of a redesigned OPAC dir structure, for 2 themes, with 2 languages (en and fr-FR)<br>
the directory/file count has been reduced from from 124 directories, 2542 files… to 60 directories, 1857 files<br>
<br>
<br>
any thoughts or improvements...?<br>
<br>
<br>
opac-tmpl<br>
└── themes (new)<br>
├── ccsr<br>
│ └── css<br>
└── prog<br>
└── css<br>
<br>
├── langs (new)<br>
│ ├── en<br>
│ │ ├── includes<br>
│ │ │ └── search<br>
│ │ ├── modules<br>
│ │ │ ├── errors<br>
│ │ │ ├── sco<br>
│ │ │ ├── search<br>
│ │ │ ├── svc<br>
│ │ │ └── text<br>
│ │ └── xslt<br>
│ └── fr-FR<br>
│ ├── includes<br>
│ │ └── search<br>
│ ├── modules<br>
│ │ ├── errors<br>
│ │ ├── sco<br>
│ │ ├── search<br>
│ │ ├── svc<br>
│ │ └── text<br>
│ └── xslt<br>
<br>
<br>
<br>
├── images (existing, shared for all themes and langs)<br>
│ ├── datatables<br>
│ └── itemtypeimg<br>
│ ├── bridge<br>
│ ├── carredart<br>
│ ├── colors<br>
│ ├── crystal-clear<br>
│ ├── liblime-kids<br>
│ ├── npl<br>
│ ├── Seshat<br>
│ └── vokal<br>
<br>
├── lib (existing, shared for all themes and langs)<br>
│ ├── famfamfam<br>
│ │ ├── mini<br>
│ │ └── silk<br>
│ ├── greybox<br>
│ │ └── GreyBox_v5_5<br>
│ │ ├── adobe_images<br>
│ │ ├── compression_lib<br>
│ │ ├── greybox_source<br>
│ │ │ ├── base<br>
│ │ │ ├── gallery<br>
│ │ │ ├── set<br>
│ │ │ └── window<br>
│ │ └── static_files<br>
│ ├── jquery<br>
│ │ ├── images<br>
│ │ └── plugins<br>
│ │ └── themes<br>
│ │ └── classic<br>
│ └── yui<br>
│ ├── container<br>
│ ├── menu<br>
│ └── utilities<br>
<br>
<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a></blockquote></div><br></div>