Koha-clms/opac
Tomas Cohen Arazi ae442f2de8 Bug 28478: Make opac-*detail.pl scripts use Koha::Biblio->opac_suppressed()
This patch makes the following scripts use the new method for checking
suppression:

* opac/opac-ISBDdetail.pl
* opac/opac-MARCdetail.pl
* opac/opac-detail.pl

In the `opac-detail.pl` case, it is a simple change by removing MARC
data traversal in favor of the new method. The code checking
suppression gets moved up so we don't process or make any other
calculations if the record is suppressed.

The other two scripts where completely missing the check and thus
leaking suppressed records.

To test:
1. Pick two records, one marked as suppressed, and the other not
   suppressed.
2. Try acessing them in the OPAC detail page.
=> SUCCESS: Suppressed records are suppressed, and not suppressed ones
are not.
3. Try the same records on the ISBD and MARC view
=> FAIL: They are not suppressed!
4. Apply this patch
5. Repeat 2
=> SUCCESS: Suppression is still respected
6. Repeat 3
=> SUCCESS: Suppression is respected on the ISBD and MARC views
7. Sign off :-D

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Works as advertised. Remember to activate OPAC suppression with
OpacSuppression.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
(cherry picked from commit 5b775aee69)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-02-26 13:53:14 +01:00
..
clubs Bug 35941: (QA follow-up) Tidy clubs-tab.pl 2024-02-19 14:41:11 +01:00
errors
…
external/overdrive
…
sci
…
sco Bug 36679: Prevent SCO login for the AnonymousPatron 2024-07-17 15:41:06 +02:00
svc Bug 35942: OPAC user can enroll several times to the same club 2024-02-19 14:41:11 +01:00
ilsdi.pl
…
maintenance.pl Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents 2023-11-08 17:41:27 -03:00
oai.pl
…
opac-ISBDdetail.pl Bug 28478: Make opac-*detail.pl scripts use Koha::Biblio->opac_suppressed() 2025-02-26 13:53:14 +01:00
opac-MARCdetail.pl Bug 28478: Make opac-*detail.pl scripts use Koha::Biblio->opac_suppressed() 2025-02-26 13:53:14 +01:00
opac-account-pay-return.pl
…
opac-account-pay.pl Bug 36088: Remove useless code form opac-account-pay.pl 2024-03-11 10:29:19 +01:00
opac-account.pl
…
opac-addbybiblionumber.pl Bug 35126: Remove onload from opac-addbybiblionumber.pl 2024-12-18 12:39:34 +01:00
opac-alert-subscribe.pl Bug 28130: (QA follow-up) Tidy 2023-10-11 10:31:39 -03:00
opac-alert-subscriptions.pl Bug 28130: (QA follow-up) Tidy 2023-10-11 10:31:39 -03:00
opac-article-request-cancel.pl
…
opac-authorities-home.pl Bug 37057: Restore filtering of unused authorities 2024-12-02 11:58:03 +01:00
opac-authoritiesdetail.pl
…
opac-basket.pl
…
opac-blocked.pl Bug 35952: Remove unnecessary line for OpacSuppressionMessage 2024-03-11 10:40:31 +01:00
opac-browse.pl
…
opac-browser.pl
…
opac-changelanguage.pl
…
opac-course-details.pl
…
opac-course-reserves.pl
…
opac-curbside-pickups.pl
…
opac-detail.pl Bug 28478: Make opac-*detail.pl scripts use Koha::Biblio->opac_suppressed() 2025-02-26 13:53:14 +01:00
opac-discharge.pl
…
opac-dismiss-message.pl Bug 36532: Protect opac-dismiss-message.pl from malicious usages 2024-04-24 07:36:20 +02:00
opac-downloadcart.pl
…
opac-downloadshelf.pl
…
opac-export.pl Bug 37679: Add DC subtypes to allow-list in opac-export.pl 2024-12-06 10:51:29 +01:00
opac-holdshistory.pl
…
opac-ics.pl
…
opac-idref.pl
…
opac-illrequests.pl Bug 35685: Fix after creation actions 2024-05-23 11:37:58 +02:00
opac-image.pl
…
opac-imageviewer.pl
…
opac-issue-note.pl
…
opac-library.pl
…
opac-main.pl Bug 31383: Create a parent-child DB relation for additional content 2023-10-20 14:43:56 -03:00
opac-memberentry.pl Bug 37339: Set messaging preferences from default on self registration 2024-10-21 15:35:16 +02:00
opac-messaging.pl
…
opac-modrequest-suspend.pl Bug 35492: Open holds tab by default on opac-user.pl after suspending a hold 2024-01-03 15:09:10 +01:00
opac-modrequest.pl Bug 35495: Open holds tab by default on opac-user.pl after cancelling a hold 2024-01-03 15:09:49 +01:00
opac-mymessages.pl
…
opac-news-rss.pl
…
opac-overdrive-search.pl
…
opac-page.pl Bug 36875: Do not pass unsanitized language to $page->translated_content 2024-06-06 10:59:48 +02:00
opac-passwd.pl
…
opac-password-recovery.pl Bug 21431: Add action parameter to set_password 2023-11-09 14:50:11 -03:00
opac-patron-consent.pl Bug 31503: Make opac-patron-consent more generic 2023-10-25 10:35:20 -03:00
opac-patron-image.pl
…
opac-privacy.pl
…
opac-ratings.pl
…
opac-readingrecord.pl Bug 33949: Replace GetAllIssues with Koha::Checkouts - opac 2023-10-18 15:41:26 -03:00
opac-recall.pl Bug 36142: recallsview template param for opac-recall.tt 2024-05-23 13:56:54 +02:00
opac-recalls.pl
…
opac-registration-verify.pl Bug 37339: Set messaging preferences from default on self registration 2024-10-21 15:35:16 +02:00
opac-renew.pl
…
opac-reportproblem.pl
…
opac-request-article.pl Bug 36072: opac-request-article should check syspref 2024-02-19 14:41:11 +01:00
opac-reserve.pl Bug 35977: (follow-up) Cleaner working approach 2024-05-23 17:28:56 +02:00
opac-reset-password.pl
…
opac-restrictedpage.pl
…
opac-retrieve-file.pl
…
opac-review.pl Bug 13342: Not logged user can place a review/comment 2024-10-01 15:09:11 +02:00
opac-routing-lists.pl
…
opac-search-history.pl
…
opac-search.pl Bug 35558: Do not retrieve the local image if none exists - OPAC 2024-05-24 10:00:43 +02:00
opac-sendbasket.pl Bug 36520: Sanitize input in opac-sendbasket.pl 2024-06-06 10:59:48 +02:00
opac-sendshelf.pl Bug 34731: Don't call SendQueuedMessages if message_id is bad 2023-09-12 09:44:59 -03:00
opac-serial-issues.pl
…
opac-shareshelf.pl
…
opac-shelves.pl Bug 38362: Fix printing lists on opac/opac-shelves.pl 2024-12-18 16:40:02 +01:00
opac-showmarc.pl
…
opac-showreviews.pl
…
opac-suggestions.pl
…
opac-tags.pl Bug 36785: Typo unreconized and bilbio in tags code 2024-05-29 15:12:56 +02:00
opac-tags_subject.pl
…
opac-topissues.pl
…
opac-user.pl Bug 35496: (QA follow-up): tidy up code 2024-01-03 15:10:21 +01:00
tracklinks.pl
…
unapi
…