EPrints Technical Mailing List Archive

Message: #03520


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Creating bazaar packages which contain .css files


Hi Simon,
I think that the theme files are compiled into the auto-3.3.12.css from their location in ~/lib/themes/… – if you look at that file, you can see where the files are coming from – e.g.
/* From: /usr/share/eprints/lib/themes/lul/static/style/auto/z_lul.css */

You might want to look at: http://bazaar.eprints.org/118/ and  http://bazaar.eprints.org/232/ as examples of themes.
If you’ve got a test archive, try installing one of them and see where the files go.

Cheers,
John

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Simon Jennings
Sent: 07 October 2014 16:18
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Creating bazaar packages which contain .css files

 

Hi everyone,

 

very sorry, another eprints tutorial another question!

 

I'm completing the Style (CSS) and Eloquence (Languages) page for bazaar package development.

 

 

Unlike the screen based bazaar packages this one simply contains a .css file. The instructions are not specific on how to package this file.

 

The cfg file is copied over to cfg.d local directory, but I was wondering what happens to the .css file. The tutorial instructs us to

create it in the local directory:

 

<eprints_root>/archives/<archive_name>/cfg/themes/<my_theme/static/style/auto/foo.css

 

and then "To package your theme simply remove the files you have created from the archive and package them in the same way you have in the earlier excises".

 

If I place it in the lib directory:

 

<eprints_root>/lib/themes/<my_theme/static/style/auto/foo.css

 

and then create and enable the package. The css is not copied to a local directory and then is no change in the interface.

 

Is this the correct thing to do, and as general question do bazaar package files other than the cfg get copied to the local subdirectories.

 

Many thanks again,

 

Simon.

 

---------------------------------------------

Simon Jennings.

Research Data Management Software Developer

Library & Archives Service

London School of Hygiene and Tropical Medicine