Miscellaneous Config Options
0-9 | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Work in Progress
The page is a work in progress.
Only some config options that are not in files have been added. This list is not yet exhaustive
This page describes configuration options that do not appear in any specific configuration files present in the main codebase (inc. pub_lib flavour).
A
- access_logger_func - Defines a function that is called every time a documents is downloaded or abstract/summary page is viewed (i.e. an access record is created). This is used by recent versions of IRStats2, so it can process stats from a file-based access records rather than the database, which becomes a lot more efficient if the access database table is large.
- access_table_logger_disabled - Whether access records should still be saved to the database. (Without a setting database will continue to store access records).
- allow_duplicate_usernames - Whether the validation of
user
metadata should check for duplicate usernames. (Without a setting user metadata validation will fail if duplicate usernames. This should only bet set to1
temporarily if username changes are required that may temporarily lead to duplicates). - allow_uploaded_doc_js - A malevolent user could deliberately upload malicious JavaScript to perform a clickjacking or similar attack against logged in users. Should uploaded JavaScript only be returned with a Content Security Solicy (CSP) to prevent it from being run on the client web browser. (Without a setting CSP to prevent JavaScript running on the client is enabled).
- auth_basic - Deprecated configuration for configuring basic rather than cookie-based user authentication.
B
- browse_views_max_items - Global setting for the maximum number of results that can be displayed on a browse view listing page. Superseded if a particular view has a
max_items
attribute set. (Without a setting this defaults to2000
items).
C
- custom_handlers - If you have a third-party application that needs to integrate with its own connector (e.g. Pure), then this allow you to define configuration for this.
D
- dbdriver - Which database driver (type of database, i.e.
mysql
,Pg
orOracle
) to use. (Without a setting this defaults tomysql
). - dbschema - Which database schema to use. This is only applicable for
Pg
(PostGreSQL) databases. - default_export_plugin - Which export plugin to pre-select on browse view and search results pages. (Without a setting, whichever export plugin appears first is pre-selected).
- deps - Defines dependencies of ingredients on other ingredients. By default this is not defined as no ingredients package in an EPrints release have any dependencies.
- disable_basic_auth - Ensure authentication cannot accidentally fallback to basic (rather than cookie-based) authentication. (Without a setting it could fallback but it is very unlikely to do this unless your EPrints repository has been significantly modified).
- disable_make_open_access - Remove the option on the Request Copy approval form to immediately make the document open access. (Without a setting the checkbox for this is present).
- does_user_own_eprint - Allows a function to augment what eprint records a user appears to own. This may be useful if a particular user is acting as a surrogate for another user. Should be defined in conjunction with
get_users_owned_eprints
.
E
- email_blacklist - Array reference containing a list of email addresses that are not allowed to make requests for copies. Can be useful if some individual is making excessive requests, although ReCaptcha is probably more useful (Without being defined no restriction on email addresses that can requests copies).
- enable_file_imports - Whether local files (for the importer) can be uploaded to the repository an part of an XML (e.g. EP3XML, Atom, etc.) import. (Without a setting they cannot be uploaded).
- enable_import_fields - Specify fields for a data object that can be imported even through their field definition says they can not.
- enable_web_imports - Whether web-based files can be uploaded to the repository an part of an XML (e.g. EP3XML, Atom, etc.) import. (Without a setting they cannot be uploaded).
- eprints_access_restrictions_callback - Allows a function to be defined to test if the current user has access to read/write (access View/Edit page) the specified eprint record. Useful if you want to give access to certain eprint records without changing a user's type.
- expiry_for_doc_request - How many days an approved request copy link will last before access will be revoked. (Without a setting this is 7 days).
- expiry_for_unresponded_doc_request - How many days an unapproved request can exists before the request can no longer be approved. Saves really old requests being approved without proper consideration or confusing / annoying the requester months/years after their request. (Without a setting this is 90 days, approx. 3 months).
- export_fieldlists - What fields can exported for a data object. Further restricts field definition settings for
export_as_xml
. (Without a setting, what fields can be exported are only defined by their field definitions).
F
- file_local_path_function - Allows function to be defined to modify the location where the file represented by the file data object can be found on the local filesystem. Could be used if a bespoke new type of data object that has associated files need to be added.
G
- generic_filenames - New (non-history) files will be added to the documents directory as
<fileid>.bin
rather than there actual filename. This can be useful if users are uploading files with names that use special characters that are not compatible with the filesystem or database encoding. EPrints will already allow existing files to be mannually changed to the<fileid>.bin
to provide a simple fix for existing issues using special characters, which subsequently cannot be downloaded. - get_users_owned_eprints - Allows function to be defined that lists the set of eprints a user owns, instead of just those where their
userid
is set on the eprint record. Should be defined in conjunction withdoes_user_own_eprint
.
H
- history_enable - Allows revision history to be recorded for rich data objects beyond just eprint data objects. Is an hash reference of
datasetid
to whether history is enabled. Any defined value means enabled.
I
- ignore_login_ip - Whether IP address should be ignored in
loginticket
so user can change IP address without being logged out. (Without a setting up to 3.4.6 the login IP address has not been ignored, from 3.4.6. it will be ignored by default). - items_filters - What filters can be uses on the
EPrints::Plugin::Screen::Items
(i.e. Manage Deposits) page. Useful if an additionaleprint_status
option has been added. (Without a setting this uses the foureprint_status
options (inbox, buffer, archive, deletion
). - items_filters_order - What order should filters be displayed on the
EPrints::Plugin::Screen::Items
(i.e. Manage Deposits) page. (Without a setting this uses the foureprint_status
options in the following order (inbox, buffer, archive, deletion
). - import_xml_permitted_tags - When importing HTML encoded text through an XML import what HTML tags are allowed. Useful if there is a particular HTML tag that is commonly used is not included in the hardcoded default list, which is quite restrictive to avoid use of certain HTML tags for malicious purposes. (By default allowed HTML tags are:
b big blockquote br code dd div dl dt em h1 h2 h3 h4 h5 h6 hr i li ol p pre s small span strike strong sub sup table tbody td th tr tt u ul
).
J
K
L
- login_monitoring
- enabled - Whether monitoring of logins (both failed and successful) are logged to archive's
var/login_attempts/
directory in CSV format. (Without a setting login monitoring is not enabled). - fields - Array reference of field names to include at start of file as column headers. (This only needs to be defined if
function
is also defined. Otherwise the following field names are used:timestamp, username, password_length,ip_address, user_agent, target, login_status, userid, securecode
). - function - Defines a a function for generating bespoke log message (CSV line) for a login attempt. (Without a setting a generic CSV line is used).
- enabled - Whether monitoring of logins (both failed and successful) are logged to archive's
- login_required_for_cgi
- enable - Whether users need to be logged in to access
/cgi/...
pages (/cgi/users/...
pages always required being logged in). (Without a setting login is not required, set to1
to enable). - exceptions - Array reference of paths that are excluded from needing login. (Without a setting all CGI scripts require loginm if
enabled
is set to1
).
- enable - Whether users need to be logged in to access
- login_required_for_eprints
- enable - Whether users need to be logged in to access eprint abstract/summary pages. (Without a setting login is not required, set to
1
to enable).
- enable - Whether users need to be logged in to access eprint abstract/summary pages. (Without a setting login is not required, set to
- login_required_for_views
- enable - Whether users need to be logged in to access browse view pages. (Without a setting login is not required, set to
1
to enable).
- enable - Whether users need to be logged in to access browse view pages. (Without a setting login is not required, set to
- login_required_url - URL for page to be redirected to if login is required. (Without a setting
/cgi/users/login
is used).
M
- max_history_width - The number of characters per line for XML displayed in the history tab before wrapping to a new line. (Without a setting a maximum of
120
characters are displayed before wrapping).
N
O
- oai
- v2
- output_plugins - Hash referernce of Additional export plugins that can be used with OAI-PMH. (Without a setting just those that have an
xmlns
set, provide export for the appropriate dataset (typically eprint) and are at least visible tostaff
). - sample_identifier - An example of an identifier used by OAI-PMH for individual records. (Without a setting no sample identifier is shown on OAI-PMH pages).
- output_plugins - Hash referernce of Additional export plugins that can be used with OAI-PMH. (Without a setting just those that have an
- v2
- order_auto_submit - Whether changing the ordering for search results will automatically reload the page. (Without a setting search results pages will not automatically be reloaded on ordering change).
P
Q
R
- recaptcha
- ignore_countries -
- private_key -
- public_key -
- timeout -
- recaptcha3
- ignore_countries -
- min_score -
- private_key -
- public_key -
- timeout -
- request_copy_cc -
- required_formats -
- retain_embargo_dates -
- rewrite_exceptions -
- robotstxt
- crawl_delay
- default_seconds -
- seconds -
- user_agents -
- crawl_delay
S
- saved_search_additional_recipients -
- saved_search_citation -
- signup_style -
- STAFF_ONLY_LOCAL_callback -
T
- theme -
U
- user_access_restrictions_callback -
- user_area_template -
- user_cookie_timeout -
- user_inactivity_timeout -
- user_session_timeout -
V
- version_extra -
- view_sort_function -
- virtualhost -
W
- workflow_datepicker -