https://bugs.kde.org/show_bug.cgi?id=488931

            Bug ID: 488931
           Summary: Bad hypothesis taken on SRU fetcher
    Classification: Applications
           Product: tellico
           Version: 3.4.4
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ro...@periapsis.org
          Reporter: glorfindel_ildar...@protonmail.com
  Target Milestone: ---

SUMMARY

The query is badly formed when I try to retrieve books metadata over SRU
connection due to wrong hypothesis taken on the file "srufetcher.cpp".

The comment lines 194/195 of this file takes "dc.identifier=" and "bath.isbn="
as universal parameter for querying an isbn, for DublinCore and *marcXml (lines
196 to 199). Tests were done on LoC, KB and COPAC. It does not work on BnF
(french equivalent of LoC) SRU service as the API specs are not the same. It
should be "bib.isbn=".

https://www.bnf.fr/sites/default/files/2019-04/tableau_criteres_sru.pdf

STEPS TO REPRODUCE
1. Configure the SRU client as detailled below to connect to BnF's SRU server
(need to override version and recordSchema).
2. Try to add an entry via Internet Search, looking for a single ISBN (french
book, e.g. 9782070463619) through the SRU BNF connection.
3. Obtain error message

OBSERVED RESULT
error textbox ("Unsupported index (bath.isbn)").

EXPECTED RESULT
Return the search result via SRU protocol

Proposed solution : 
Allow user to override the default parameter (dc, bath, etc.) as for version,
recordSchema, etc. (lines 144 to 157).

I tried to test it myself, but I have failed to compile the software. It
stopped at the
"Building CXX object
src/CMakeFiles/tellico.dir/tellico_autogen/mocs_compilation.cpp.o" step, with
of bunch of errors about
"/usr/include/KF5/KNewStuff3/knscore/entryinternal.h:536:20: error: ‘KNS3’ has
not been declared" and so on.

I'm far from a specialist in C++ / OOP and I didn't found anything to solve
this problem. Otherwise, I would have done a merge/pull request on github.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5

ADDITIONAL INFORMATION

Tellicorc file for BnF SRU connection

[Data Source 1]
Custom Fields=
Format=marcxml
Host=catalogue.bnf.fr
Name=SRU BNF
Path=/api/SRU
Port=80
QueryFields=recordSchema,version
QueryValues=unimarcXchange,1.2
Type=3
UpdateOverwrite=false
Uuid={5bd140eb-02f0-465c-b28c-5a0c2fa1d90f}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to