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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 4 Mar 2022 15:21:21 +0000 (10:21 -0500)
commitf3e45a1610afa5f8dfcf3ed2131ded3c26362436
tree636135466562782dea9367b276f72c7002ee3d0e
parentd673f068ce2b8d79cdcc4e59d560d6b9247539da
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