EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10011


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

RE: [EP-tech] OAI Policies


CAUTION: This e-mail originated outside the University of Southampton.

Thank, Yuri.

 

I have to admit that I am completely stumped. I thought I had defined my data policy, and I thought I had established the html pages for it. But nothing has any effect.

 

There is nothing to harvest in my catalogue. I am trying to disengage from oai altogether, but gracefully. I am tangled up with oai.pl, policies.html, policies.xpage… I cannot get anything to have any effect.

 

Is there a way I can just remove all mention of oai?

 

Best wishes

 

Will

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Yuri
Sent: 04 March 2025 10:23
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] OAI Policies

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

https://github.com/eprints/eprints3.4/blob/master/flavours/pub_lib/cfg.d/oai.pl

This is what David was referring to.

Il 04/03/25 11:02, Will Hughes ha scritto:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Thanks, David, that was the problem. Sometimes, I cannot see the wood for the trees!

I have also removed the latin1 reference in this code as it is not defined and seems unnecessary.

 

Best wishes

 

Will

 

From: David R Newman <drn@ecs.soton.ac.uk>
Sent: 04 March 2025 09:45
To: eprints-tech@ecs.soton.ac.uk; Will Hughes <w.p.hughes@reading.ac.uk>
Subject: Re: [EP-tech] OAI Policies

 

Hi Will,

I think the issue is that this ($oai) is defined as a local variable in vfg.d/oai.pl for the initial construction of the configuration hashref for OAI but if you want to modify add to this later (i.e. in a different configuration file) you will need to use

$c->{oai}

rather than just:

$oai

By "later", I mean in a configuration file that is alphabetically later, e.g. z_oai.pl.

Regards

David Newman

On 04/03/2025 09:35, Will Hughes wrote:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Yuri

 

Thanks for this, yes I an oversight on my part!  When I reload the configuration, I get this:

eprints@ubuntu-s-1vcpu-1gb-lon1-01:~$ sudo -u eprints /opt/eprints3/bin/epadmin reload arcom

 

------------------------------------------------------------------

----------- EPrints System Error 2025-03-04T09:33:31Z ------------

------------------------------------------------------------------

Error in configuration:

Global symbol "$oai" requires explicit package name (did you forget to declare "my $oai"?) at (eval 107) line 2.

Global symbol "$oai" requires explicit package name (did you forget to declare "my $oai"?) at (eval 107) line 5.

Global symbol "$oai" requires explicit package name (did you forget to declare "my $oai"?) at (eval 107) line 10.

Global symbol "$oai" requires explicit package name (did you forget to declare "my $oai"?) at (eval 107) line 15.

Global symbol "$oai" requires explicit package name (did you forget to declare "my $oai"?) at (eval 107) line 20.

Global symbol "$oai" requires explicit package name /opt/eprints3/archives/arcom/cfg/cfg.d/oai.pl at (eval 107) line 25.

 

------------------------------------------------------------------

EPrints System Error inducing stack dump

at /opt/eprints3/bin/../perl_lib/EPrints.pm line 163.

        EPrints::abort("EPrints") called at /opt/eprints3/bin/../perl_lib/EPrints/Config.pm line 317

        EPrints::Config::load_repository_config_module("arcom") called at /opt/eprints3/bin/../perl_lib/EPrints/Repository.pm line 531

        EPrints::Repository::load_config(EPrints::Repository=HASH(0x5863dc19d430)) called at /opt/eprints3/bin/../perl_lib/EPrints/Repository.pm line 153

        EPrints::Repository::new("EPrints::Repository", "arcom", "noise", 1) called at /opt/eprints3/bin/../perl_lib/EPrints.pm line 714

        EPrints::repository(EPrints=HASH(0x5863dc19d988), "arcom", "noise", 1) called at /opt/eprints3/bin/epadmin line 379

        main::repository("arcom") called at /opt/eprints3/bin/epadmin line 1705

        main::reload("arcom") called at /opt/eprints3/bin/epadmin line 321

 

 

And my site is now unavailable – the request URL was not found on this server.

 

Best wishes

 

Will

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Yuri
Sent: 04 March 2025 07:12
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] OAI Policies

 

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

and the error is?

Il 03/03/25 19:48, Will Hughes ha scritto:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi

 

Sadly, my configuration progress has ground to a halt again. After spending three hours on this one, I have to give up. I hope someone can help. Here is what I am trying to set up for my metadata catalogue. Please help me to achieve what appeared to be really simple!

# Set the archive ID (must be unique)

$oai->{v2}->{archive_id} = "arcomabstracts.com";

 

# Content Description

$oai->{content}->{"text"} = latin1( <<END );

This is a metadata catalogue for ARCOM CM Abstracts. It provides metadata for discovery and linking purposes only. No full-text content is available via this interface.

END

 

# Metadata Policy

$oai->{metadata_policy}->{"text"} = latin1( <<END );

The metadata provided through this interface may be used for non-commercial purposes, provided that proper attribution is given to the source. Commercial use of the metadata requires prior written permission.

END

 

# Data Policy

$oai->{data_policy}->{"text"} = latin1( <<END );

This catalogue does not provide access to full-text content via the OAI-PMH interface. For access to full-text content, please contact the relevant rights holders directly.

END

 

# Submission Policy

$oai->{submission_policy}->{"text"} = latin1( <<END );

This is a metadata catalogue, not a repository. There are no submissions to it. Data is uploaded only by ARCOM.

END

 

# Admin Email

$oai->{admin} = [

    {

        email => $c->{adminemail},

        name => "Abstracts Manager",

    },

];

 

 

 

Best wishes

 

Will   

 

Will Hughes

Emeritus Professor of Construction Management and Economics

School of the Built Environment     

University of Reading, PO Box 219, Whiteknights

Reading, RG6 6DF, UK

 





*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/
 




*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/
 



*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/