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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to