[Koha] Content of tags <request> and <baseURL> in OAI-PMH

Michael Kuhn mik at adminkuhn.ch
Fri Apr 5 08:20:15 NZDT 2024


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 at 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
-- 
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch


More information about the Koha mailing list