]> git.koha-community.org Git - koha.git/commit
Bug 30147: Fix modules usage in opac-detail.pl
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 25 Feb 2022 00:24:18 +0000 (14:24 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 4 Mar 2022 02:11:50 +0000 (16:11 -1000)
commitee957fc812daba845f8515e0254d082741e43eca
tree5df2dbbb4e22ff872b464bb0051a01343e52c591
parent666ec454734c66844f8fbdef22bb2dd48075f235
Bug 30147: Fix modules usage in opac-detail.pl

On the ktd sample database when trying to go to the detail page from the result list:
Undefined subroutine &CGI::Compile::ROOT::kohadevbox_koha_opac_opac_2ddetail_2epl::searchResults called at /kohadevbox/koha/opac/opac-detail.pl line 260
Turning off OpacBrowseResults makes the error disappear.

In opac-detail.pl, use C4::Search is missing searchResults and getRecords

To test:
- Search for something that gives several result pages in OPAC, example: e
- Switch to one of the last pages using link on top of results, example: 10
- Open any of the records listed in detail view
- Verify that the error is shown
- Apply patch and repeat, error is gone and browsing behaves as expected

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-detail.pl