Created attachment 7013 [details] wrong display on opac detail page Found a weird bug, where the detail page wrongly uses the result page XSLT. The title shows formatted as link and availability information is displayed. (see screenshot) To reproduce: 1) OPACXSLTDetailsDisplay = ON 2) OPACXSLTResultDisplay = ON 3) Search for anything with more than 20 results. 4) Open the last record (normally 20th) of your the result page. 5) Go to the second reult page, same happens here for the last link (40th)
Its the browse results thing that is causing this. Which reminds me, that whole thing should be wrapped in a system preference, as well as fixed
Created attachment 7021 [details] [review] Bug 7394 : Fixing scoping issue with XSLT processing. Also bailing out early for 404 inestead of doing unnessecary processing
Fix for problem, will do 2 follow ups 1 to add a syspref, 1 to shift all the code to a module instead of in the opac-detail.pl But please signoff and push the fix without waiting on the follow ups
Related to bug 6483.
Created attachment 7022 [details] [review] Signed-off patch
Created attachment 7023 [details] [review] [SIGNED-OFF] Bug 7394 : Fixing scoping issue with XSLT processing. Also bailing out early for 404 inestead of doing unnessecary processing Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Detail page for last record on result page now shows up correctly.
Created attachment 7024 [details] [review] [SIGNED-OFF] Bug 7394 : Fixing scoping issue with XSLT processing. Also bailing out early for 404 inestead of doing unnessecary processing Signed-off-by: Frédéric Demians <f.demians@tamil.fr> I can confirm the bug and the solution. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Second sign-off from me, patch fixes display of detail page for last record on a result page.
Moves code to different area of script to avoid scoping issues. Fixes issue without introducing any new complexities. Marking as Passed QA
patch pushed, pleast test
This patch does not apply cleanly to 3.4.x. Please rebase and attach a new patch.
The 'browse results' was a new feature in 3.6 and is not in 3.4 (afaik). The problem should not appear there.
TNX!