Bugzilla – Attachment 41194 Details for
Bug 9966
Incorrect 404 when a search returns one result hidden by OpacHiddenItems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9966 - Incorrect 404 when a search returns one result hidden by OpacHiddenItems
Bug-9966---Incorrect-404-when-a-search-returns-one.patch (text/plain), 1.19 KB, created by
Olli-Antti Kivilahti
on 2015-07-27 10:00:04 UTC
(
hide
)
Description:
Bug 9966 - Incorrect 404 when a search returns one result hidden by OpacHiddenItems
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2015-07-27 10:00:04 UTC
Size:
1.19 KB
patch
obsolete
>From 983a65c2a0aa9d864b070d96a3635fd8d8d84c2a Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Mon, 27 Jul 2015 12:55:28 +0300 >Subject: [PATCH] Bug 9966 - Incorrect 404 when a search returns one result > hidden by OpacHiddenItems > >This patch disables throwing the 404-error. We should be able to show the >opac-detail.pl regardless of hidden items or not. >This doesn't fix the availability on opac-search.pl, >but gets us out of a very awkward predicatement. > >TEST PLAN: > >1. You can now access opac-detail.pl for Biblios whose ALL Items are hidden by the > 'OpacHiddenItems'-syspref. >--- > opac/opac-detail.pl | 5 ----- > 1 file changed, 5 deletions(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 0fa588f..50d334f 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -77,11 +77,6 @@ my @all_items = GetItemsInfo($biblionumber); > my @hiddenitems; > if (scalar @all_items >= 1) { > push @hiddenitems, GetHiddenItemnumbers(@all_items); >- >- if (scalar @hiddenitems == scalar @all_items ) { >- print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early >- exit; >- } > } > > my $record = GetMarcBiblio($biblionumber); >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9966
: 41194