[Bug 30186] New: ISBD Bombs When 942‡n = "1" But Patron Type Not in OPENHiddenItemsExceptions
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 Bug ID: 30186 Summary: ISBD Bombs When 942‡n = "1" But Patron Type Not in OPENHiddenItemsExceptions Change sponsored?: --- Product: Koha Version: 20.05 Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: cmkelleymls@gmail.com QA Contact: testopia@bugs.koha-community.org We encountered an ISBD view problem: The file turns up lost. Here are the conditions that we have identified: - In OPACHiddenItemsExceptions, the patron type is not listed as an excepted type. - The patron looks for a work in our collection through our catalog, but 942‡n = "1". - Method of search does not matter: author, title, subject, word, call number all work fine. - The record is listed in the OPAC results. - The patron happens to select the version whose 942‡n = "1". The record, in Normal view, is rendered in the window. All three view tabs (Normal view, MARC view, ISBD view) are listed. - The patron clicks on ISBD view. BOOM! Here's the output from Koha. ------------ Software error: The method Koha::Item->lost is not covered by tests! Trace begun at /usr/share/koha/lib/Koha/Object.pm line 780 Koha::Object::AUTOLOAD('Koha::Item=HASH(0x5637bb245f10)') called at /usr/share/koha/lib/Koha/Item.pm line 478 Koha::Item::__ANON__ at /usr/share/koha/lib/Koha/Item.pm line 478 Koha::Item::hidden_in_opac('Koha::Item=HASH(0x5637bb245f10)', 'HASH(0x5637bb191908)') called at /usr/share/koha/lib/Koha/Biblio.pm line 258 Koha::Biblio::__ANON__ at /usr/share/koha/lib/Koha/Biblio.pm line 258 Koha::Biblio::hidden_in_opac('Koha::Biblio=HASH(0x5637ba6cbfd0)', 'HASH(0x5637bb2460a8)') called at /usr/share/koha/opac/cgi-bin/opac/opac-ISBDdetail.pl line 91 For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. ------------ Clicking on MARC view or Normal view does not render the above bug. Pressing the back arrow restores the record's listing and all other OPAC features. If we change the patron's type to one in OPACHiddenItemsException, or if add the patron's type to OPACHiddenItemsException, the ISBD bug vanishes in subsequent searches for the work that produced the error after the changes propagate through Koha. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ISBD Bombs When 942‡n = "1" |ISBD throws error when |But Patron Type Not in |record is suppressed, but |OPENHiddenItemsExceptions |patron category is not in | |OpacHiddenItemsExceptions --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I wonder about your step by step: - Method of search does not matter: author, title, subject, word, call number all work fine. - The record is listed in the OPAC results. OpacHiddenItemsExceptions has nothing to do with OpacSuppression (942$n), both are unrelated methods to hide records. Also: if the record has been successfully suppressed (OpacSuppression turned on) and indexed correctly, it should not show up in the result list in first place? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m --- Comment #2 from Fridolin Somers <fridolin.somers@biblibre.com> --- Looks like the preference OpacHiddenItems contains 'lost' instead of 'itemlost'. Fields must be the column names of items DB table. See https://wiki.koha-community.org/wiki/OpacHiddenItems -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID CC| |tomascohen@gmail.com --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Fridolin Somers from comment #2)
Looks like the preference OpacHiddenItems contains 'lost' instead of 'itemlost'. Fields must be the column names of items DB table.
Agreed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 --- Comment #4 from Charles Kelley <cmkelleymls@gmail.com> --- Acknowledged. My mistake. Where are the column names listed? Are column names listed in the schema? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 --- Comment #5 from Fridolin Somers <fridolin.somers@biblibre.com> --- (In reply to Charles Kelley from comment #4)
Where are the column names listed? Are column names listed in the schema? Here there are : for example Koha 21.11 : https://schema.koha-community.org/21_11/tables/items.html
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30186 --- Comment #6 from Charles Kelley <cmkelleymls@gmail.com> --- Thank you, all. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org