Added Paul's LibraryName variable to template

This commit is contained in:
oleonard 2004-01-08 18:23:36 +00:00
parent 1f6fcc2109
commit 7ed4e50430
10 changed files with 31 additions and 11 deletions

View File

@ -52,7 +52,9 @@ foreach my $row (@$accts) {
}
$template->param( ACCOUNT_LINES => $accts );
$template->param( ACCOUNT_LINES => $accts,
LibraryName => C4::Context->preference("LibraryName"),
);
$template->param( total => $total );

View File

@ -52,7 +52,9 @@ my $sitearray=\@websites;
$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;

View File

@ -61,7 +61,9 @@ $template->param(nextstartfrom => $nextstartfrom,
itemtype => ItemType($itemtype),
duration => $duration);
$template->param(SEARCH_RESULTS => $resultsarray);
$template->param(SEARCH_RESULTS => $resultsarray,
LibraryName => C4::Context->preference("LibraryName"),
);
my $numbers;
@$numbers = ();

View File

@ -49,7 +49,9 @@ foreach my $row (@$issues) {
}
$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;

View File

@ -169,7 +169,9 @@ for (my $rownum=0;$rownum<$publictypes[0]->{'count'} ;$rownum++) {
}
$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

View File

@ -15,7 +15,7 @@ my $dbh=C4::Context->dbh;
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";
}
@ -30,6 +30,8 @@ my ($template, $borrowernumber, $cookie)
});
$template->param(classlist => $classlist);
$template->param(classlist => $classlist,
LibraryName => C4::Context->preference("LibraryName"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -122,6 +122,8 @@ if ($count>$number_of_results) {
}
}
$template->param(numbers => $numbers);
$template->param(numbers => $numbers,
LibraryName => C4::Context->preference("LibraryName"),
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -131,7 +131,9 @@ foreach my $res (@$reserves) {
}
$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;

View File

@ -30,7 +30,9 @@ $borr->{'dateofbirth'} = format_date($borr->{'dateofbirth'});
$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;

View File

@ -87,6 +87,8 @@ $borr->{'ethnicity'} = fixEthnicity($borr->{'ethnicity'});
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;