[Koha-bugs] [Bug 29135] New: OAI should not include biblionumbers from deleteditems when determining deletedbiblios

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 29 18:26:01 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29135

            Bug ID: 29135
           Summary: OAI should not include biblionumbers from deleteditems
                    when determining deletedbiblios
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

When including items in OAI we add the biblionumbers of deleted items into the
deleted list

This is from this line:
 93         if ( $include_items )  {
 94             $sql = "($sql) UNION (SELECT DISTINCT(biblionumber) FROM
deleteditems $criteria)";
 95             push @bind_params, @part_bind_params;


This is wrong because deletion of a single item does not indicate a record is
deleted

To recreate:
1 - Create /var/lib/koha/kohadev/OAI.yaml with:
format:
  marcxml:
    metadataPrefix: marcxml
    metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
    schema: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
    include_items: 1

2 - Set  OAI-PMH:ConfFile to '/var/lib/koha/kohadev/OAI.yaml'
3 - Delete an item from a record
4 - View the page:
http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml
5 - Note the record is now listed as deleted

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


More information about the Koha-bugs mailing list