EPrints Technical Mailing List Archive

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

Message: #09747


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

RE: [EP-tech] Adding indexdbase field


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

Hi Dr. Hirak Jyoti Hazarika,

 

It looks like that repository has a custom metadata field called ‘indexdbase’ that has been added to their EPrint configuration.

The best way to do this depends on the version of EPrints you’re using, and how it is already configured.

If the guidance below doesn’t match how your repository is configured, please ask on the list and we will help more!


Following the instructions on this page: https://wiki.eprints.org/w/HOW_TO:_Add_a_New_Field

and using the details on this page: https://pure.jgu.edu.in/cgi/search/advanced I would suggest the following steps:

 

  1. Add new field definition to [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/eprint_fields.pl:

 

{
        name => 'indexdbase',
        type => 'set',
        options => [
            'Scopus',
            'WoS',
            'UGC-CARE',
            'WoS-SCO-UGC',
            'ABDC',
            'ABS',
            'NOT',
        ],
},

This needs to be added before the ‘;’ at the end of the file.

 

After adding the above, run:

[EPRINTS_ROOT]/bin/epadmin test ARCHIVEID

which will check the syntax of the configuration change.

 

2)      Adding phrases for the new field. In [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/lang/en/phrases/eprint_fields.xml.

  <epp:phrase id="eprint_fieldname_indexdbase">Indexed by</epp:phrase>

  <epp:phrase id="eprint_fieldhelp_indexdbase">Please indicate if this item is indexed in these external databases.</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_Scopus">1. Scopus</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_WoS">2. Web of Science</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_UGC-CARE">3. UGC-CARE</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_WoS-SCO-UGC">4. All three (WoS, Scopus and UGC-CARE)</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_ABDC">5. ABDC</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_ABS">6. ABS</epp:phrase>

  <epp:phrase id="eprint_fieldopt_indexdbase_NOT">Not indexed in any database</epp:phrase>

 

After adding the above, run the ‘epadmin test’ command again – and this should report no warnings.

If your repository interface uses multiple languages, you will need to add them to other files …/lang/[???]/phrases/eprint_fields.xml

 

3)      Update database to support new field

[EPRINTS_ROOT]/bin/epadmin update_dry_run ARCHIVEID

 

Which will test adding the new fields to the database. If this is successful, run:

[EPRINTS_ROOT]/bin/epadmin update ARCHIVEID

Which will add the new fields to the database.

 

4)      Add new field to workflow. Add the following to [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/workflows/eprint/default.xml at a suitable place in the workflow.

<component><field ref="indexdbase" /></component>

 

Again, run the ‘epadmin test’ to check the edit you have made is OK.

 

5)      Add the field to the advanced search. In the file: [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/eprint_search_advanced.pl, in the ‘search_fields’ section, add the following:

       { meta_fields => [ "indexdbase" ] },

Run the ‘epadmin test’ command, and if this is OK, restart the Apache webserver, and you should be able to see the new search field.

 

 

Please let me know how you get on 😊

 

Cheers,

John

 

John Salter

https://orcid.org/0000-0002-8611-8266

 

White Rose Libraries Technical Officer
IT - Application Support (Research)
University of Leeds

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Hirak Jyoti Hazarika
Sent: Thursday, July 4, 2024 5:37 AM
To: eprints-tech@ecs.soton.ac.uk
Cc: James Kerwin <jkerwin2101@gmail.com>
Subject: Re: [EP-tech] Login when opening a new tab

 

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.

Dear Sir/ Ma'am, 

 

With due respect, I would like to request you to add Browser Options and Searching Options as a Database (Ex: https://pure.jgu.edu.in/view/indexdbase/). How can I add this in my eprint software? Can anyone help me with this?

 

Thank you so much.

 

Regards, 

Dr. Hirak Jyoti Hazarika

 

On Wed, Jul 3, 2024 at 10:00 PM David R Newman <drn@ecs.soton.ac.uk> wrote:

Hi James,

That is odd.  I think LDAP may be a red herring.  I suspect that there IP may be changing and this will require them to login again.  It is worth checking the loginticket table for the userid of a user with this issue.  If you see lots of loginticket records for them, especially if ordering by time the IP keeps flipping between two or more IP addresses, then that will be your issue.  If that is the case you will need to set the following configuration option:

$c->{ignore_login_ip} = 1;

Where I have used this recently I have put this under the archive's cfg/cfg.d/ directory and called the file zz_ignore_login_ip.pl to ensure it is not overridden.

The reason for caring about the IP address saying the same is historical back in the day when some repositories did not use HTTPS and therefore the best way to make sure someone had not stolen a user session was to ensure the IP address had not changed.  In the next release (3.4.6) or EPrints things have been changed to not enforce the IP address saying the same to maintain a session, as long as HTTPS is enabled:

https://github.com/eprints/eprints3.4/issues/339

Regards

David Newman

 

On 03/07/2024 15:05, James Kerwin wrote:

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

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

Hi everyone,

 

Another question. We're on EPrints 3.4.4 and use LDAP login. Team members pointed out today that whenever they follow a link to a login-only page they need to log in to the repository again in order to view it even if they have only just logged in. If they paste the link in their address bar it typically works.

 

My testing so far suggests any login-only link from the browser requires another login. If I follow it from an Excel/notepad file it lets me view the page.

 

Can anybody nudge me in the right direction for how to start to solve this?

 

Example of a login-only page that I attempt to view:

 

 

The page it takes me to:

 

 

I have investigated the user-login.pl script that comes with this version of EPrints, but it's very different to the LDAP scrip that I have in a file of the same name.

 

Thanks,

James



*** 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/