Bugzilla – Attachment 83437 Details for
Bug 22034
Viewing record with Default framework doesn't work on MARC tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22034: Handle default framework for MARC view with framework
Bug-22034-Handle-default-framework-for-MARC-view-w.patch (text/plain), 2.12 KB, created by
Jonathan Druart
on 2018-12-20 22:57:37 UTC
(
hide
)
Description:
Bug 22034: Handle default framework for MARC view with framework
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-20 22:57:37 UTC
Size:
2.12 KB
patch
obsolete
>From edf54e33182d0db9fc320b581f2e57d45b2bf6c2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 20 Dec 2018 19:55:46 -0300 >Subject: [PATCH] Bug 22034: Handle default framework for MARC view with > framework > >To test: > >- Create a record in any framework that is not default >- Search for the record in your catalog >- Switch to the MARC tab >- Change framework pull down to default on top >- Note the page reloads and the framework stay default >- Verify it works for other frameworks > >Also test the "labeled MARC" view (you will need the pref viewLabeledMARC turned on) >--- > catalogue/MARCdetail.pl | 3 +-- > catalogue/labeledMARCdetail.pl | 3 +-- > 2 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl >index b4adcfdeea..a22f8eb99e 100755 >--- a/catalogue/MARCdetail.pl >+++ b/catalogue/MARCdetail.pl >@@ -68,8 +68,7 @@ my $query = new CGI; > my $dbh = C4::Context->dbh; > my $biblionumber = $query->param('biblionumber'); > $biblionumber = HTML::Entities::encode($biblionumber); >-my $frameworkcode = $query->param('frameworkcode'); >-$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode); >+my $frameworkcode = $query->param('frameworkcode') // GetFrameworkCode( $biblionumber ); > my $popup = > $query->param('popup') > ; # if set to 1, then don't insert links, it's just to show the biblio >diff --git a/catalogue/labeledMARCdetail.pl b/catalogue/labeledMARCdetail.pl >index 9b5105103c..7c3b77bc9a 100755 >--- a/catalogue/labeledMARCdetail.pl >+++ b/catalogue/labeledMARCdetail.pl >@@ -38,8 +38,7 @@ my $query = new CGI; > my $dbh = C4::Context->dbh; > my $biblionumber = $query->param('biblionumber'); > $biblionumber = HTML::Entities::encode($biblionumber); >-my $frameworkcode = $query->param('frameworkcode'); >-$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode); >+my $frameworkcode = $query->param('frameworkcode') // GetFrameworkCode( $biblionumber ); > my $popup = > $query->param('popup') > ; # if set to 1, then don't insert links, it's just to show the biblio >-- >2.11.0
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 22034
:
83437
|
83465
|
83560