}
-$template->param( ACCOUNT_LINES => $accts );
+$template->param( ACCOUNT_LINES => $accts,
+ LibraryName => C4::Context->preference("LibraryName"),
+ );
$template->param( total => $total );
$template->param(BIBLIO_RESULTS => $resultsarray);
$template->param(ITEM_RESULTS => $itemsarray);
$template->param(WEB_RESULTS => $webarray);
-$template->param(SITE_RESULTS => $sitearray);
+$template->param(SITE_RESULTS => $sitearray,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
itemtype => ItemType($itemtype),
duration => $duration);
-$template->param(SEARCH_RESULTS => $resultsarray);
+$template->param(SEARCH_RESULTS => $resultsarray,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
my $numbers;
@$numbers = ();
}
$template->param(count => $count);
-$template->param(READING_RECORD => $issues);
+$template->param(READING_RECORD => $issues,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
}
$template->param(TYPE_ROWS => \@typerows);
$width = 2*$width -1;
-$template->param(totalwidth => 2*$width-1);
+$template->param(totalwidth => 2*$width-1,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
if ($query->param('item_types_selected')) {
# this is what happens after the itemtypes have been selected. Stage 2
my $sth=$dbh->prepare("select description,itemtype from itemtypes order by description");
$sth->execute;
while (my ($description,$itemtype) = $sth->fetchrow) {
- $classlist.="<option value=\"$itemtype\">$description\n";
+ $classlist.="<option value=\"$itemtype\">$description</option>\n";
}
});
-$template->param(classlist => $classlist);
+$template->param(classlist => $classlist,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
}
}
-$template->param(numbers => $numbers);
+$template->param(numbers => $numbers,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
}
$template->param(WAITING => \@waiting);
-$template->param(waiting_count => $wcount);
+$template->param(waiting_count => $wcount,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
$borr->{'ethnicity'} = fixEthnicity($borr->{'ethnicity'});
-$template->param($borr);
+$template->param($borr,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;
my @bordat;
$bordat[0] = $borr;
-$template->param(BORROWER_INFO => \@bordat);
+$template->param(BORROWER_INFO => \@bordat,
+ LibraryName => C4::Context->preference("LibraryName"),
+);
output_html_with_http_headers $query, $cookie, $template->output;