Bug 33351 - Record detail page broken in both OPAC and staff
Summary: Record detail page broken in both OPAC and staff
Status: RESOLVED DUPLICATE of bug 32747
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-28 13:10 UTC by Pierre CHALON
Modified: 2023-03-30 09:46 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre CHALON 2023-03-28 13:10:08 UTC
This problem appears on sandboxes (PTFS-europe and Biblibre) in UNIMARC.

Can't call method "itemtype" on an undefined value at /kohadevbox/koha/opac/opac-detail.pl line 709
Comment 1 Pierre CHALON 2023-03-28 13:19:40 UTC
The problem comes probably from sample data.
We have no problem with different data from sample.
Comment 2 Pierre CHALON 2023-03-28 13:51:20 UTC
Same results with MARC21 and UNIMARC
Comment 3 David Cook 2023-03-28 23:28:28 UTC
Works fine for me. Can you provide steps to reproduce the problem?
Comment 4 Pierre CHALON 2023-03-29 08:25:39 UTC
I created an UNIMARC sandbox on http://sandboxes.ptfs-europe.co.uk/

When it was created, I connected on OPAC and searched 'tintin'.
I chose the first result : "[Les ]aventures de Tintin, reporter au Petit vingtième, au pays des Soviets" and clicked on it.
Then I got this page : 
http://opac-sampled.sandboxes.ptfs-europe.co.uk/cgi-bin/koha/opac-detail.pl?biblionumber=4734&query_desc=kw%2Cwrdl%3A%20tintin

After that, I reproduced it on Staff.
I searched 'tintin' in catalog and I chose the first result (same in OPAC).
On detail.pl, I clicked on Barcode and then I got the same error page.


I get same results with MARC21 or with Biblibre platform :
https://sandboxes.biblibre.eu/
Comment 5 David Cook 2023-03-29 23:24:26 UTC
Looks like you probably didn't provide an item type for the record.

I know there was some work around errors on missing item types, so this is probably a duplicate report...
Comment 6 David Cook 2023-03-29 23:25:17 UTC

*** This bug has been marked as a duplicate of bug 32747 ***
Comment 7 Jonathan Druart 2023-03-30 09:46:45 UTC
This should be moved to https://gitlab.com/koha-community/koha-misc4dev, to fix the UNIMARC data.