Web Interface

From EPrints Documentation
Jump to: navigation, search

The archive website can be split into four sections static, dynamic, views and abstracts. Each type of page is generated in a different way. When you change the style and want to relfect that change in the site you need to know how to get eprints to update the part of the site in question.

Static Pages

These are pages which do not change. They are built by the "generate_static" command which copies files from the directories /opt/eprints2/archives/myid/cfg/static/general/ and /opt/eprints2/archives/myid/cfg/static/en/ into the live website directory /opt/eprints2/archives/html/en

The "en" indicates english language files. The /general/ contains non-language specific files like icons and the style sheet.

Files in the cfg/static/en with the suffix .xpage are XML files containing only the contents of the page. Rather than just copy these, generate_static applies the site template to these and renames them to .html in the website dir.

Dynamic Pages

Everything on the website which starts with /perl/, such as the latest deposits page, all the submission pages and the search pages.

These pages are created by mod_perl. The mod_perl part of eprints (the web server) only loads the config files once when you start apache.

To force the webserver to reload the configuration, either stop and start it, or run "force_config_reload" (although this is inefficient, it's handy if you're making lots of little changes.

"View" Pages

Everything on the website which starts with /view/

These are the browse-by-subject, browse-by-year etc, pages. They are built by the script "generate_views" either on the command line or as an automated cron job.

"Abstract" Pages

The pages which describe a record. eg. http://eprints.soton.ac.uk/44/

These are generated by the webserver part of eprints (see dynamic pages, above) but can be generated on the command line using generate_abstracts.