EPrints Technical Mailing List Archive

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

Message: #10050


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

Re: [EP-tech] Contributor_types not registering on RIS import


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

Thanks, John.

 

Strangely, no sign of your message of last night in my inbox...

 

I was really chuffed to get your message. For a moment, I thought, yes, that must be it! However, that change did not make a difference, sadly. Still no error messages, still no registering of the contributor type. I am so puzzled! I have combed through my installation to see whether the import plugin is being eclipsed by another version in a different folder, but there is nothing.

 

I tried running a command like yours, to parse only, but my system does not recognise “dump”.

 

So, still no progress here, and I wondered… if the singular version of contributor was not tripping over the import routine, maybe my plugin never gets as far as testing for the value of A3.

 

There was something that I had added into my RIS.pm import plugin, to deal with a new field I had introduced, based on the value in M3. That worked fine, except that it left M3 still populated after processing it (M3 field not mapped to Eprints), so I had added

 

delete $epdata->{M3};

delete $entry->{M3};

 

At the end of the # THES – type specific section of sub convert_input. I commented those two lines out and finally got a working plugin. I don’t quite understand why emptying M3 would prevent A3 from being processed, but there must be something in the logic that I am just not seeing.

 

Anyway, I now get Thesis Advisor appearing where it should, so that is great progress, thank you!

 

Best wishes

 

Will

 

 


From: John Salter <J.Salter@leeds.ac.uk>
Sent: Monday, March 17, 2025 12:55:46 PM
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; Will Hughes <w.p.hughes@reading.ac.uk>
Subject: RE: Contributor_types not registering on RIS import

 

You don't often get email from j.salter@leeds.ac.uk. Learn why this is important

Hi Will,
Did you see my reply yesterday evening? I replied to the list, but forgot to copy you in directly :\

In brief: line 671 of RIS.pm - change ‘contributor’ to ‘contributors’.

 

Cheers,

John

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Will Hughes
Sent: 17 March 2025 12:42
To: eprints-tech@ecs.soton.ac.uk
Subject: RE: [EP-tech] Contributor_types not registering on RIS import

 

CAUTION: External Message. Use caution opening links and attachments.

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

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

Hi again

 

Just to follow up… I am still bewildered by this problem that the contributor type cannot be set in the import process. The namedsets and phrases, the variable definitions, all of it is working perfectly when manually entering data. But for some reason, the line in RIS.pm that assigns the contributor type seems not to work:

 

In the # secondary/tertiary authors section of RIS.pm, is:

    elsif ( grep /$type/, ('THES') )

    {

        &_names($epdata, $entry, ['A3'], 'contributors', 'thesis_advisor');

    }

 

I have tried changing ‘thesis_advsisor’ to ‘editor’

I have tried moving this line to the THES specific section of RIS.pm

 

There are no error messages when I run the import routine. But in the repository, the Contribution is always “UNSPECIFIED”. Is it simply out of the question to set a contributor_type in a bulk import?

 

I am wondering whether the problem lies in the way that an import plugin interacts with eprints.

 

Best wishes

 

Will

 

 

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Will Hughes
Sent: 15 March 2025 19:09
To:
eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Contributor_types not registering on RIS import

 

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

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

Hi

 

I wonder if anyone can help me with this problem. I have an revised version of the RIS.pm plugin, which generally is very reliable. However, it is not picking up contributor types for editors and thesis advisors. I attach my version of the plugin and the small sample metadata.ris file I am using.

 

I have been over and over this in immense detail, and I must be missing something.

 

Please let me know of you can spot what is going wrong with this import!

 

Thanks in advance

 

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