This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<epc:phraseref="archive_name" /> supports <ahref="http://www.openarchives.org"><abbrtitle="Open Archives Protocol for Metadata Harvesting v2.0">OAI 2.0</abbr></a> with a base URL of <tt><epc:printexpr="$config{perl_url}" />/oai2</tt>
<epc:phraseref="archive_name" /> supports <ahref="http://www.openarchives.org"><abbrtitle="Open Archives Protocol for Metadata Harvesting v2.0">OAI 2.0</abbr></a> with a base URL of <code><epc:printexpr="$config{perl_url}" />/oai2</code>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Note: For this to work the web server must have write access to the var, phrases and workflow directories for this repository.</p>
<p>When you commit this new metadata field its configuration will be written to the metadata fields configuration file and the appropriate columns added to the database. If you specified a name and help phrase for this field they will be added to the <tt>fields.xml</tt> phrases file for each language you specified (see also the <ahref="http://eprints.org/d/?keyword=PhraseConfigFile&filename=lang/en/phrases/fields.xml">phrases documentation</a>).</p>
<p>When you commit this new metadata field its configuration will be written to the metadata fields configuration file and the appropriate columns added to the database. If you specified a name and help phrase for this field they will be added to the <code>fields.xml</code> phrases file for each language you specified (see also the <ahref="http://eprints.org/d/?keyword=PhraseConfigFile&filename=lang/en/phrases/fields.xml">phrases documentation</a>).</p>
<p>If this field is being added to the Eprints dataset it will also be added to the Eprints submission workflow (see also the <ahref="http://eprints.org/d/?keyword=WorkflowConfigFile&filename=workflows/eprint/default.xml">workflow documentation</a>).</p>
@@ -1104,7 +1104,7 @@ For more information see <a href="http://eprints.org/d/?keyword=MetaFields">Meta
<epp:phraseid="metafield_fieldhelp_datasetid">The repository dataset to link the object identifier to (e.g. "eprint").</epp:phrase>
<epp:phraseid="metafield_fieldname_set_name">Named Set Filename</epp:phrase>
<epp:phraseid="metafield_fieldhelp_options">A comma-separated list of values to choose from (e.g. <em>london,paris,new_york</em>)). You will need to create phrases for every defined option.</epp:phrase>
@@ -1351,7 +1351,7 @@ For more information see <a href="http://eprints.org/d/?keyword=MetaFields">Meta
<divstyle="padding: 0.3em; background-color: black; color: white; font-weight: bold;"><epc:pinname="action"/> by <epc:pinname="cause"/> at <epc:pinname="when"/></div>
<epp:phraseid="cgi/users/change_email:no_email"><p>You did not actually supply a new email address.</p></epp:phrase>
<epp:phraseid="cgi/users/change_email:mail_sent"><p>An email has been sent to <b><epc:pinname="email"/></b> containing the code required to confirm this new email address.</p><p>This code is only valid for <epc:pinname="maxdelta" />.</p></epp:phrase>
<epp:phraseid="cgi/users/change_email:email_exists"><p>A user with the email address <tt><epc:pinname="email"/></tt> already exists.</p><p>If this is your email address, you should just <ahref="../reset_password">reset your password</a>.</p></epp:phrase>
<epp:phraseid="cgi/users/change_email:email_exists"><p>A user with the email address <code><epc:pinname="email"/></code> already exists.</p><p>If this is your email address, you should just <ahref="../reset_password">reset your password</a>.</p></epp:phrase>
<!-- status -->
@@ -1942,7 +1942,7 @@ User Area CGI Scripts
<epp:phraseid="Plugin/Screen/Admin/Config:description">View configuration files for this repository.</epp:phrase>
<epp:phraseid="Plugin/Screen/Admin/Config:back_to_config"><p><epc:pinname="link">View other configuration files</epc:pin>.</p></epp:phrase>
<epp:phraseid="Plugin/Screen/Admin/Config/View:enable_editing">To enable configuration file editing add the <tt><epc:pinname="privilege"/></tt> privilege to your user role.</epp:phrase>
<epp:phraseid="Plugin/Screen/Admin/Config/View:enable_editing">To enable configuration file editing add the <code><epc:pinname="privilege"/></code> privilege to your user role.</epp:phrase>
<epp:phraseid="cgi/login:failed">Incorrect username or password.</epp:phrase>
<epp:phraseid="cgi/login:logged_in_as"><p>You are already logged in as <epc:pinname="name"/>.</p> <p>If you wish to log in as a different user you must <ahref="{$config{http_url}}/users/logout">Logout</a> first.</p></epp:phrase>
<epp:phraseid="cgi/login:logged_in_as"><p>You are already logged in as <epc:pinname="name"/>.</p> <p>If you wish to log in as a different user you must <ahref="{$config{http_url}}/logout">Logout</a> first.</p></epp:phrase>
<epp:phraseid="cgi/register:missing_field"><p>You have not filled in the "<epc:pinname="fieldname"/>" field.</p></epp:phrase>
<epp:phraseid="cgi/register:email_exists"><p>A user with the email address <tt><epc:pinname="email"/></tt> already exists.</p><p>Rather than register, you should just <ahref="reset_password">reset your password</a>.</p></epp:phrase>
<epp:phraseid="cgi/register:email_denied"><p>Registration not allowed from this email address: <tt><epc:pinname="email"/></tt>.</p></epp:phrase>
<epp:phraseid="cgi/register:username_exists"><p>Another user already has the username <tt><epc:pinname="username"/></tt>.</p></epp:phrase>
<epp:phraseid="cgi/register:created_new_user"><p>You have registered with username <big><strong><tt><epc:pinname="username"/></tt></strong></big>.</p><p>This registration <em>will not</em> be activated until you visit the confirmation URL which has been emailed to <tt><epc:pinname="email"/></tt></p>
<epp:phraseid="cgi/register:email_exists"><p>A user with the email address <code><epc:pinname="email"/></code> already exists.</p><p>Rather than register, you should just <ahref="reset_password">reset your password</a>.</p></epp:phrase>
<epp:phraseid="cgi/register:email_denied"><p>Registration not allowed from this email address: <code><epc:pinname="email"/></code>.</p></epp:phrase>
<epp:phraseid="cgi/register:username_exists"><p>Another user already has the username <code><epc:pinname="username"/></code>.</p></epp:phrase>
<epp:phraseid="cgi/register:created_new_user"><p>You have registered with username <big><strong><code><epc:pinname="username"/></code></strong></big>.</p><p>This registration <em>will not</em> be activated until you visit the confirmation URL which has been emailed to <code><epc:pinname="email"/></code></p>
@@ -3112,7 +3112,7 @@ PY = 2006 and OG = (Cambridge)<br />
<epp:phraseid="Plugin/Import/DefaultXML:unexpected_xml">Expected only text, found: <epc:pinname="xml" /></epp:phrase>
<epp:phraseid="Plugin/Import/DefaultXML:file_imports_disabled">Attempt to import eprint with document data expressed as a local filename. This is a security hole in normal use, and is disabled. It *is* useful when bulk importing and may be enabled by setting enable_file_imports.</epp:phrase>
<epp:phraseid="Plugin/Import/DefaultXML:file_not_exists">Could not locate file for import: <epc:pinname="href" />.</epp:phrase>
<epp:phraseid="Plugin/Import/DOI:invalid_doi">Unrecognised or invalid doi: <epc:pinname="doi" />.<br />Remote service said: <tt><epc:pinname="msg"/></tt></epp:phrase>
<epp:phraseid="Plugin/Import/DOI:invalid_doi">Unrecognised or invalid doi: <epc:pinname="doi" />.<br />Remote service said: <code><epc:pinname="msg"/></code></epp:phrase>
<epp:phraseid="Plugin/Import/DOI:duplicate_doi"><strong>Duplicate DOI: <epc:pinname="doi" /></strong>.<br />This DOI already exists in the repository: <br /><epc:pinname="msg"/></epp:phrase>
<!-- Convert plugins -->
@@ -3588,7 +3588,7 @@ PY = 2006 and OG = (Cambridge)<br />
<!-- Captcha -->
<epp:phraseid="validate:recaptcha_mismatch">The words you entered for the captcha weren't correct.</epp:phrase>
<epp:phraseid="validate:recaptcha_mismatch">There was an error with the reCAPTCHA. Please try again.</epp:phrase>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<epc:phraseref="archive_name" /> supports <ahref="http://www.openarchives.org"><abbrtitle="Open Archives Protocol for Metadata Harvesting v2.0">OAI 2.0</abbr></a> with a base URL of <tt><epc:printexpr="$config{perl_url}" />/oai2</tt>
<epc:phraseref="archive_name" /> supports <ahref="http://www.openarchives.org"><abbrtitle="Open Archives Protocol for Metadata Harvesting v2.0">OAI 2.0</abbr></a> with a base URL of <code><epc:printexpr="$config{perl_url}" />/oai2</code>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!$searchexp->is_blank()) { $list = $list->intersect( $searchexp->perform_search ); }
#MBA-85 (rwf1v07/08/03/2018): if statement doesn't return true when search filter comprises of eprint state and so intersect doesn't happen
#as 'get_users_owned_eprints' is used so rarely, and because this if statement only seems to check if there is nothing to do, seems harmless to remove it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -15,14 +15,19 @@ B<EPrints::MetaField::Recaptcha> - a Captcha
=head1DESCRIPTION
This field renders a Captcha (a test that only humans can easily pass). It uses the "reCaptcha" service (http://recaptcha.net/). A single database text column is used to store the captcha error code.
Please refer to the notes in [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/recaptcha.pl.
Two configuration options are required to define the reCaptcha keys:
If this files does not exist, copy [EPRINTS_ROOT]/lib/defaultcfg/cfg.d/recaptcha.pl.example
to the path above and edit it.
$c->{recaptcha}->{private_key} = "PRIVATE_KEY";
$c->{recaptcha}->{public_key} = "PUBLIC_KEY";
This field uses the Google "reCAPTCHA" service (https://www.google.com/recaptcha/intro/) and
renders a Captcha (a test that humans can easily pass, but robots shouldn't be able to).
You can get these keys by registering at http://recaptcha.net/.
Note:
This MetaField was updated in October 2017 to reCAPTCHA v2.
The previous version of reCAPTCHA will cease to work in March 2018.
Kudos to Matthew Kerwin (https://github.com/phluid61) for most of the work on the new version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $list = $self->{processor}->{search}->perform_search();
my $error = $self->{processor}->{search}->{error};
if( defined $error )
{
@@ -132,17 +130,21 @@ sub run_search
# we want to filter the search results by an arbitrary criteria
my $dataset_id = $list->{dataset}->base_id();
my $v = $self->{session}->get_conf( "login_required_for_${dataset_id}s", "enable" );
my $v = $self->{session}->get_conf( "login_required_for_${dataset_id}s", "enable" ); #if defined, callback function can be called, if set to 1 will hide abstracts to non-logged in users
my $fn = $self->{session}->get_conf( "${dataset_id}s_access_restrictions_callback" );
if( $v && defined $fn )
{
# if we are here then access to abstracts etc are restricted by way of a callback fn, and we are logged in as a user, this should be extended to viewing search results too
# if we are here then access to abstracts/search results etc are restricted by way of a callback fn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters