Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
EPrints Glossary
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== T == === Template === [[#EPrints repository software|EPrints repository software]] uses templates to apply [[#Branding|branding]] to a [[#Repository|repository]] or individual [[#Archive|archive]]. These templates provide the HTML structure for an archive's web pages and can be found in one of the following directories: # [[lib/templates/]] # [[flavours/pub_lib/lang/en/templates/]] # [[archives/ARCHIVEID/cfg/templates/]] # [[archives/ARCHIVEID/cfg/lang/en/templates/]] However, there are additional directories templates maybe found if you use [[#Site lib|site_lib]] or a [[#Theme|theme]]. The higher the number determines which template will be used if they have the same name. The main template file is called '''default.xml''', which will be used if not otherwise specified in the XML markup for the [[#Static page|static page]]. Also, other [[#Public facing pages|public facing pages]] such as [[#Simple search|simple]] and [[#Advanced search|advanced]] search, [[#Abstract page|abstract pages]] and [[#Browse view|browse views]] will use the default template. Since EPrints version 3.4. [[#Management pages|management pages]] will use the '''default_internal.xml''' template. Bespoke template files can be defined and used (e.g. ''mytemplate.xml''). For applying to static pages this can be done by setting the <tt><xpage:template></tt>. For applying to browse views by setting the <tt>template</tt> attribute for the view in [[views.pl]] and for applying to abstract pages setting the <tt>$template</tt> in the parameters returned by <tt>$c->{eprint_render}</tt> in [[eprint_render.pl]]. See [[Branding_with_confidence#Taking_control|Branding with confidence - Taking control]] for more information. === Theme === If you have multiple [[#Archive|archives]] you want to apply the same [[#Branding|branding]] you may want to create a theme. Themes can be found at ''[[lib/themes/]]'' and can be used by an archive by modifying the following setting in [[branding.pl]]: $c->{theme} = 'THEMEID'; A theme can contain [[#Template|templates]], [[#Phrase|phrases]], [[#Static page|static pages]], JavaScript, CSS, images and icons. Also, as the theme has its own directory structure, it is easy to manage under version control and checkout across multiple [[#Repository|repositories]] or even make into an [[#EPM|EPM]]. === Third class data object === These are [[#Data object|data objects]] that are sub-objects of [[#Second class data object|second class data objects]] to exist, which in turn are sub-objects of [[#First class data object|first class data objects]]. The main example of such a data object in [[#EPrints repository software|EPrints repository software]] is a [[#File|file]] data object. File --sub-object of--> Document --sub-object of--> EPrint === Trigger === [[Triggers]] allow a function to be defined that will be called at a particular execution point. Such as before or after an eprint record is committed or when rewriting the request for a URL to return the appropriate resource.
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)