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
Functions
(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!
==Metadata Field Render Options (v2.3.0)== Render options are settings for a metadata field which control how it is rendered (but nothing else). Some render options are only meaningful for certain types. ===Setting in Metadata Fields Configuration=== Render options can be specified as properties of a metadata field in ArchiveMetadataFieldsConfig.pm in which case they apply to that field (unless over ridden). In this case they are a hash reference, for example: <code> { name => "creators", type => "name", render_opts=>{ order=>"gf" } }, </code> This sets the "order" render option of the creators field to be "gf". ===Setting in views and citations=== Render options can also be specified in views and citations. If you don't want them to apply except in the given view or citation. For example, in citations: <code> @title;magicstop@ </code> Magicstop is a boolean option so this is the same as saying: <code> @title;magicstop=1@ </code> In views you can use <code> "some_date_field;res=year" </code> To make a view that browses by the values of a date field as if it were a "year" field. ===Available options=== Boolean options with no value default to true (1). ; magicstop : Boolean. Applies to text and longtext fields. If true then render the value with a full stop on the end unless the value already ends with "." "!" or "?". Handy for getting citations right. ; noreturn : Boolean. Applies to text and longtext fields. Turns all Carriage Return and Line Feed characters into whitespace. Handy when you have authors entering titles with linebreaks in which should only be displayed under some circumstances. ; order : "gf" or "fg". Applies to name fields. Override how this name field will be rendered. Either "given-name family-name" or "family-name, given-name". ; quiet : Boolean. If true then and the value is not set, don't print the ugly "UNSPECIFIED" just print an empty string. ; res : "day", "month" or "year". Default is "day". Applies to date fields only. Resolution at which to deal with the dates. @foo;res=year@ will always render just the year part of the "foo" field.
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)