Merge branch 'new/bug_5277' into kcmaster
[koha.git] / serials / routing-preview.pl
index 716cced..5d57c13 100755 (executable)
@@ -100,7 +100,7 @@ if($ok){
                                query => $query,
                                type => "intranet",
                                authnotrequired => 0,
-                               flagsrequired => {serials => 1},
+                               flagsrequired => {serials => 'routing'},
                                debug => 1,
                                });
     $template->param("libraryname"=>$branchname);
@@ -110,7 +110,7 @@ if($ok){
                                query => $query,
                                type => "intranet",
                                authnotrequired => 0,
-                               flagsrequired => {serials => 1},
+                               flagsrequired => {serials => 'routing'},
                                debug => 1,
                                });
 }
@@ -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;