https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31161
--- Comment #46 from David Cook <[email protected]> --- Created attachment 170300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170300&action=edit Bug 31161: [Alternate patch] Mark hidden records as deleted If a bib record is hidden by OpacHiddenItems, mark it as deleted in the OAI-PMH, so that it's metadata is not consumed in a new OAI-PMH harvest, and it's marked for removal if the metadata was consumed in previous harvested. Test plan: 0. Setup vi /etc/koha/sites/kohadev/oai.conf 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 Set sysprefs: OAI-PMH: Enable OAI-PMH:ConfFile: /etc/koha/sites/kohadev/oai.conf OAI-PMH:AutoUpdateSets: Enable OAI-PMH:AutoUpdateSetsEmbedItemData: Enabled OpacHiddenItems: barcode: [999900000001] OpacHiddenItemsHidesRecord: Hide Adminsitration->OAI set configuration->New set Choose anything for setSpec and setName On new set: Actrion->define mappings Field: 942 Subfield: p Operator: is equal to Value: 999900000001 perl misc/migration_tools/build_oai_sets.pl -r -v -i 1. koha-plack --restart kohadev 2. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml 3. Confirm KOHA-OAI-TEST:1 is marked as deleted and not metadata visible 4. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListIdentifiers&metadataPrefix=marcxml 5. Confirm KOHA-OAI-TEST:1 is marked as deleted 6. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=marcxml&identifier=KOHA-OAI-TEST:1 7. Confirm record is marked as deleted and no metadata visible 8. View Sets and confirm the record appears in the set but as deleted record 9. Change OpacHiddenItemsHidesRecord syspref to "Don't hide" and repeat above steps 10. Confirm that the record metadata is now visible and the record is not marked as deleted -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ 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/
