Added Paul's LibraryName variable to template
authoroleonard <oleonard>
Thu, 8 Jan 2004 18:23:36 +0000 (18:23 +0000)
committeroleonard <oleonard>
Thu, 8 Jan 2004 18:23:36 +0000 (18:23 +0000)
opac/opac-account.pl
opac/opac-detail.pl
opac/opac-new.pl
opac/opac-readingrecord.pl
opac/opac-reserve.pl
opac/opac-search.pl
opac/opac-searchresults.pl
opac/opac-user.pl
opac/opac-userdetails.pl
opac/opac-userupdate.pl

index 3adab8b..3216281 100755 (executable)
@@ -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 );
 
index dbdfff4..eda7ddf 100755 (executable)
@@ -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;
 
index 4449e57..4fbb8c2 100755 (executable)
@@ -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 = ();
index c2cfa40..bedd451 100755 (executable)
@@ -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;
index e993e58..93adabf 100755 (executable)
@@ -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
index 80736a6..297761c 100755 (executable)
@@ -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;
index c5e5aa6..7de1a7c 100755 (executable)
@@ -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;
index 88cbdcb..e3b00da 100755 (executable)
@@ -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;
 
index b0bfe84..0942ec6 100755 (executable)
@@ -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;
 
index a34c638..d9ebf7f 100755 (executable)
@@ -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;