Bugzilla – Attachment 6513 Details for
Bug 7227
"Delete all items" action should redirect to the detail view, not the items view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for Bug 7227, "Delete all items" action should redirect to the detail view
Fix-for-Bug-7227-Delete-all-items-action-should-re.patch (text/plain), 1.77 KB, created by
Chris Cormack
on 2011-12-02 08:37:22 UTC
(
hide
)
Description:
Fix for Bug 7227, "Delete all items" action should redirect to the detail view
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-02 08:37:22 UTC
Size:
1.77 KB
patch
obsolete
>From 338319f1bc561f88e170f59f555a1920c72dd8b3 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 15 Nov 2011 11:50:40 -0500 >Subject: [PATCH] Fix for Bug 7227, "Delete all items" action should redirect > to the detail view > >Using the delete all items function should now redirect back to the >biblio view specified in the BiblioDefaultView system preference. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > cataloguing/additem.pl | 12 +++++++++++- > 1 files changed, 11 insertions(+), 1 deletions(-) > >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index 4442ed3..7bc2acd 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -480,7 +480,17 @@ if ($op eq "additem") { > $nextop="additem"; > } > else { >- print $input->redirect("/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=$biblionumber"); >+ my $defaultview = C4::Context->preference('IntranetBiblioDefaultView'); >+ my $views = { C4::Search::enabled_staff_search_views }; >+ if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) { >+ print $input->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber"); >+ } elsif ($defaultview eq 'marc' && $views->{can_view_MARC}) { >+ print $input->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber"); >+ } elsif ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) { >+ print $input->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber"); >+ } else { >+ print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber"); >+ } > exit; > } > } >-- >1.7.5.4
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 7227
:
6311
| 6513