Hi!

I had a quick look at this, but couldn't figure out anything. But it looks like a bug, so please report it in Bugzilla, so we don't loose it.

Best regards,
Magnus

Den 04.04.2024 21:20, skrev Michael Kuhn:
Hi

In our library we are using Koha 21.11.10

We are trying to use OAI-PMH but when calling https://bibliothek.iunworld.com/cgi-bin/koha/oai.pl?verb=Identify the output is as follows:

  <?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type='text/xsl' href='/opac-tmpl/xslt/OAI.xslt'?>
 <OAI-PMH xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.openarchives.org/OAI/2.0/'>
    <responseDate>2024-04-03T16:39:53Z</responseDate>
   <request verb='Identify'>https://bibliothek.iunworld.com/opac/oai.pl</request>
    <Identify>
      <repositoryName>IUN World</repositoryName>
      <baseURL>https://bibliothek.iunworld.com/opac/oai.pl</baseURL>
      <protocolVersion>2.0</protocolVersion>
      <adminEmail>root@localhost</adminEmail>
      <earliestDatestamp>2020-01-21T13:25:14Z</earliestDatestamp>
      <deletedRecord>persistent</deletedRecord>
      <granularity>YYYY-MM-DDThh:mm:ssZ</granularity>
      <compression>gzip</compression>
    </Identify>
  </OAI-PMH>

As you see in both the tags <request> and <baseURL> there is an incorrect URL ( https://bibliothek.iunworld.com/opac/oai.pl ) which only leads to a 404 error page. The correct URL would be https://bibliothek.iunworld.com/cgi-bin/koha/oai.pl

I have changed the following line in file "/usr/share/koha/lib/Koha/OAI/Server/Identify.pm" to get the correct URL at least in tag <baseURL>:

  #baseURL             => $baseURL,
 baseURL             => 'https://bibliothek.iunworld.com/cgi-bin/koha/oai.pl',

But I couldn't find out how to get the correct URL also in tag <request>. In fact I doubt what I'm doing is the correct way but I couldn't find any information in the manual on how to configure OAI-PMH except via the system preferences. Why is Koha showing the incorrect URL https://bibliothek.iunworld.com/opac/oai.pl at all and how can I change this?

Best wishes: Michael
_______________________________________________

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to