From b4898f053940fe9b5fefa1a598c5bb7c2094896d Mon Sep 17 00:00:00 2001 From: kados Date: Sat, 4 Feb 2006 16:47:21 +0000 Subject: [PATCH] Adding support for opaccredits to opac scripts --- opac/opac-ISBDdetail.pl | 1 + opac/opac-MARCdetail.pl | 1 + opac/opac-account.pl | 1 + opac/opac-addbookbybiblionumber.pl | 4 ++++ opac/opac-basket.pl | 1 + opac/opac-detail.pl | 1 + opac/opac-main.pl | 1 + opac/opac-readingrecord.pl | 1 + opac/opac-reserve.pl | 1 + opac/opac-search.pl | 2 ++ opac/opac-searchresults.pl | 1 + opac/opac-shelves.pl | 4 ++++ opac/opac-sidebar.pl | 1 + opac/opac-suggestions.pl | 1 + opac/opac-user.pl | 1 + opac/opac-userdetails.pl | 1 + opac/opac-userupdate.pl | 1 + 17 files changed, 24 insertions(+) diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index feb370fa36..2a8c94a105 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -100,6 +100,7 @@ $template->param(LibraryName => C4::Context->preference("LibraryName"), subscriptions => \@subs, subscriptionsnumber => $subscriptionsnumber, OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); my $ISBD = C4::Context->preference('ISBD'); diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 61134afdb8..594e2f7b9d 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -82,6 +82,7 @@ $template->param(LibraryName => C4::Context->preference("LibraryName"), suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); # fill arrays diff --git a/opac/opac-account.pl b/opac/opac-account.pl index a9ef2ac523..80635cd51f 100755 --- a/opac/opac-account.pl +++ b/opac/opac-account.pl @@ -64,6 +64,7 @@ $template->param( ACCOUNT_LINES => $accts, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); diff --git a/opac/opac-addbookbybiblionumber.pl b/opac/opac-addbookbybiblionumber.pl index 42951e87b4..9db3c64166 100755 --- a/opac/opac-addbookbybiblionumber.pl +++ b/opac/opac-addbookbybiblionumber.pl @@ -79,11 +79,15 @@ if ($shelfnumber) { suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; } # $Log$ +# Revision 1.1.2.4 2006/02/04 16:47:21 kados +# Adding support for opaccredits to opac scripts +# # Revision 1.1.2.3 2006/02/03 21:03:57 kados # Updating script for new system preference: OpacNav # ---------------------------------------------------------------------- diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl index 028ecc4e46..a949e1c53f 100755 --- a/opac/opac-basket.pl +++ b/opac/opac-basket.pl @@ -64,6 +64,7 @@ $template->param(BIBLIO_RESULTS => $resultsarray, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 8ed46de5eb..5782438d60 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -91,6 +91,7 @@ $template->param(BIBLIO_RESULTS => $resultsarray, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), AmazonContent => C4::Context->preference("AmazonContent"), ); diff --git a/opac/opac-main.pl b/opac/opac-main.pl index fd310c9df2..d108f3c876 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -62,5 +62,6 @@ $template->param(CGIitemtype => $CGIitemtype, opaclargeimage => C4::Context->preference("opaclargeimage"), LibraryName => C4::Context->preference("LibraryName"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index 2f9825addd..da50a7b7cd 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -85,6 +85,7 @@ $template->param(READING_RECORD => \@loop_reading, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index b1a57fa127..3e98ef3417 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -178,6 +178,7 @@ $template->param(totalwidth => 2*$width-1, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); if ($query->param('item_types_selected')) { diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 9fa7bba2ec..644325b23e 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -161,6 +161,7 @@ if ($op eq "do_search") { suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), AmazonContent => C4::Context->preference("AmazonContent"), ); @@ -216,6 +217,7 @@ if ($op eq "do_search") { virtualshelves => C4::Context->preference("virtualshelves"), LibraryName => C4::Context->preference("LibraryName"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), AmazonContent => C4::Context->preference("AmazonContent"), ); } diff --git a/opac/opac-searchresults.pl b/opac/opac-searchresults.pl index 4c8ea833b1..71502545a2 100755 --- a/opac/opac-searchresults.pl +++ b/opac/opac-searchresults.pl @@ -126,6 +126,7 @@ $template->param(numbers => $numbers, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 3395742370..f554d08225 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -61,6 +61,7 @@ $template->param({ loggedinuser => $loggedinuser, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), }); SWITCH: { if ($query->param('op') eq 'modifsave') { @@ -187,6 +188,9 @@ sub viewshelf { # # $Log$ +# Revision 1.3.2.6 2006/02/04 16:47:21 kados +# Adding support for opaccredits to opac scripts +# # Revision 1.3.2.5 2006/02/03 21:13:29 kados # Updating script for new system preference: OpacNav # diff --git a/opac/opac-sidebar.pl b/opac/opac-sidebar.pl index 1f5d46eac7..d1f8bce959 100755 --- a/opac/opac-sidebar.pl +++ b/opac/opac-sidebar.pl @@ -30,6 +30,7 @@ $template->param(url => $self_url, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 9ae9d24320..3193bc6af9 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -64,5 +64,6 @@ $template->param(suggestions_loop => $suggestions_loop, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 4595593cf6..af8d398d45 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -146,6 +146,7 @@ $template->param(waiting_count => $wcount, OpacPasswordChange => C4::Context->preference("OpacPasswordChange"), textmessaging => $borr->{textmessaging}, OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-userdetails.pl b/opac/opac-userdetails.pl index c565e0b80c..705fe57944 100755 --- a/opac/opac-userdetails.pl +++ b/opac/opac-userdetails.pl @@ -35,6 +35,7 @@ $template->param(LibraryName => C4::Context->preference("LibraryName"), suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index 6c7f3712e0..b7e22a4365 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -92,6 +92,7 @@ $template->param(BORROWER_INFO => \@bordat, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), OpacNav => C4::Context->preference("OpacNav"), + opaccredits => C4::Context->preference("opaccredits"), ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5