Hi all,
we ran into problems with a new harvester
a) performance
b) statistics
In Crosswalks like METS or any other which exposes the URL to the
bitstream, the bitstream urls are using the UI-URL
https://github.com/DSpace/DSpace/blob/main/dspace/config/modules/oai.cfg#L39
in combination with
https://github.com/DSpace/DSpace/blob/main/dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java#L135
This might lead to a problem when the performance is not good enough,
thus the harvester gets the loading html page.
One other aspect is the statistic (apart from it being ruined by KI-Bots
etc anyway). The downloads count towards the statistic.
Changing the crosswalks to use the API-URL instead of the UI-URL will
solve these problems. Just two lines of code, but wanted to know what
you think about this change.
Change the oai.bitstream.baseUrl to
oai.bitstream.baseUrl = ${dspace.server.url}
and
dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java
String url = baseUrl + "/api/core/bitstreams/" + bit.getID().toString()
+ "/content";
instead of
String url = baseUrl + "/bitstreams/" + bit.getID().toString() +
"/download";
cu
Claudia
--
Claudia Juergen
Technische Universität Dortmund
Universitätsbibliothek
Bibliotheks-IT
Sebrathweg 9
44149 Dortmund
Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
[email protected]
www.ub.tu-dortmund.de
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dspace-tech/29889dd8-eeac-41ce-880d-4b5dd361f7d3%40tu-dortmund.de.