Bugzilla – Attachment 22779 Details for
Bug 10809
use template branches plugin in serials search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10809 - use template branches plugin in serials search
Bug-10809---use-template-branches-plugin-in-serial.patch (text/plain), 2.95 KB, created by
Jonathan Druart
on 2013-11-07 14:16:57 UTC
(
hide
)
Description:
Bug 10809 - use template branches plugin in serials search
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-07 14:16:57 UTC
Size:
2.95 KB
patch
obsolete
>From 368df3c642268e96e1118de7402b48c878976ed3 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Fri, 30 Aug 2013 15:19:25 +0200 >Subject: [PATCH] Bug 10809 - use template branches plugin in serials search > >In serials-search.pl, branch name is computed using branch code and then passed to template. > >This patch uses the new template plugin now for this : Koha::Template::Plugin::Branches. > >Test plan : >- Go to serials search >- Perform a search that returns at least an open an a closed subscription having a branch defined >=> The branch name is displayed in "Library" column > >Signed-off-by: Pierre Angot <tredok.pierre@gmail.com> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt | 5 +++-- > serials/serials-search.pl | 1 - > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >index 3edf223..a5f9795 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >@@ -1,3 +1,4 @@ >+[% USE Branches %] > [% INCLUDE 'doc-head-open.inc' %] > [% USE KohaDates %] > <title>Koha › Serials [% biblionumber %]</title> >@@ -153,7 +154,7 @@ > [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] > </td> > <td> >- [% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] >+ [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %] > </td> > <td> > [% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] >@@ -235,7 +236,7 @@ > [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] > </td> > <td> >- [% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] >+ [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %] > </td> > <td> > [% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] >diff --git a/serials/serials-search.pl b/serials/serials-search.pl >index 552500e..28dc9d0 100755 >--- a/serials/serials-search.pl >+++ b/serials/serials-search.pl >@@ -89,7 +89,6 @@ if ($searched){ > if ($routing) { > for my $subscription ( @subscriptions) { > $subscription->{routingedit} = check_routing( $subscription->{subscriptionid} ); >- $subscription->{branchname} = GetBranchName ( $subscription->{branchcode} ); > } > } > >-- >1.7.10.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 10809
:
20739
|
22024
| 22779