OAI-PMH returns http URLs in the metadata field

69 views
Skip to first unread message

Snickers

unread,
Jun 19, 2023, 11:33:53 PM6/19/23
to DSpace Technical Support
Hi All,

We use Dspace 7.4 and OAI-PMH works well.

The issue is that the URLs for handle.net and bitstream download show HTTP instead of HTTPS. How can we convert the URLs provided by OAI-PMH to be HTTPS?

The URLs in DB are HTTPS so not sure why the metadata provides HTTP URLs.

Regards,
Bryan

Sean Kalynuk

unread,
Jun 20, 2023, 11:35:40 AM6/20/23
to Snickers, DSpace Technical Support

Hi Bryan,

 

In your local.cfg file (or dspace.cfg), the Handle prefix is configured with:

 

handle.canonical.prefix

 

Note that changing this configuration parameter will not change any existing dc.identifier.uri metadata (where the Handle is stored). It would only apply to newly archived items.

 

The OAI bitstream URL prefix can be configured with:

 

oai.bitstream.baseUrl

 

When changing this parameter, you will need to run “dspace oai import -c” to re-create the stored XML used by OAI when applying crosswalks.

 

After that, make sure you run “dspace oai clean-cache” to make sure you don’t get any stale data from before.

 

As for when you say “The URLs in DB are HTTPS” I’m not sure what might be going there, unless maybe you have a crosswalk rule that is changing them.

 

--

Sean

 

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Snickers <crims...@gmail.com>
Date: Monday, June 19, 2023 at 10:34 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] OAI-PMH returns http URLs in the metadata field

Caution: This message was sent from outside the University of Manitoba.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/79497055-9c41-4d05-ac44-6bec1666eb89n%40googlegroups.com.

Snickers

unread,
Jun 25, 2023, 7:05:08 PM6/25/23
to DSpace Technical Support
Hi Sean,

Thank you so much for the instruction you provided. This worked like a charm!

Regards,
Bryan

Reply all
Reply to author
Forward
0 new messages