Summary: | OAI-PMH - Honour OpacSuppression syspref | ||
---|---|---|---|
Product: | Koha | Reporter: | David Cook <dcook> |
Component: | Web services | Assignee: | David Cook <dcook> |
Status: | Failed QA --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | martin.renvoize |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Bug Depends on: | 38330, 31161 | ||
Bug Blocks: | 39337 | ||
Attachments: |
Bug 37713: Do not show record metadata if OPAC suppressed
Bug 37713: Do not show record metadata if OPAC suppressed |
Description
David Cook
2024-08-22 23:07:39 UTC
I may as well mark myself as assignee for this too... Going to reset Assignee for now, since this is very low on my list of priorities at the moment... Created attachment 179090 [details] [review] Bug 37713: Do not show record metadata if OPAC suppressed This change checks the 942$n if OpacSuppression is enabled, and does not return the record metadata if 942$n is true. See BZ 31161. Test plan: 0. Apply the patch 1. koha-plack --restart kohadev 2. Enable syspref "OAI-PMH" 3. Set syspref "OpacSuppression" to "Hide" 4. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc 5. Note KOHA-OAI-TEST:2 metadata visible 6. Go to http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=2 7. Set 942$n to "Yes" 8. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc 9. Note KOHA-OAI-TEST:2 metadata no longer visible and instead "Record Status: deleted" shows Created attachment 179091 [details] [review] Bug 37713: Do not show record metadata if OPAC suppressed This change checks the 942$n if OpacSuppression is enabled, and does not return the record metadata if 942$n is true. See BZ 31161. Test plan: 0. Apply the patch 1. koha-plack --restart kohadev 2. Enable syspref "OAI-PMH" 3. Set syspref "OpacSuppression" to "Hide" 4. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc 5. Note KOHA-OAI-TEST:2 metadata visible 6. Go to http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=2 7. Set 942$n to "Yes" 8. Go to http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc 9. Note KOHA-OAI-TEST:2 metadata no longer visible and instead "Record Status: deleted" shows Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> |