Added Paul's LibraryName variable to template
This commit is contained in:
parent
1f6fcc2109
commit
7ed4e50430
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = ();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue