From b7fdfc1384a749471f2c9a00b910b063778085e2 Mon Sep 17 00:00:00 2001 From: Nicole Engard Date: Tue, 11 Jan 2011 02:33:51 -0500 Subject: [PATCH] bug 4131 have subscription so edit routing if one exists Changes the template variable checked in serials-menu.inc for determining where to show 'Create Routing List' or 'Edit Routing List' to hasRouting. Also adds the $hasRouting variable to serials/routing.pl and serials/routing-preview.pl, for completeness. Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/includes/serials-menu.inc | 10 +++++----- serials/routing-preview.pl | 1 + serials/routing.pl | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-menu.inc index 88e32e3db2..db3cb51d47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-menu.inc @@ -2,11 +2,11 @@ diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl index 477ae818cf..5d57c13bf7 100755 --- a/serials/routing-preview.pl +++ b/serials/routing-preview.pl @@ -136,6 +136,7 @@ $template->param( subscriptionid => $subscriptionid, memberloop => \@results, routingnotes => $routingnotes, + hasRouting => check_routing($subscriptionid), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/serials/routing.pl b/serials/routing.pl index 18519e3038..2bd7d69210 100755 --- a/serials/routing.pl +++ b/serials/routing.pl @@ -144,6 +144,7 @@ $template->param( op => $new, dates => $dates, routingnotes => $serials[0]->{'routingnotes'}, + hasRouting => check_routing($subscriptionid), ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5