From bb5c37e17ede94e45043f1430bcc8e8d860122b2 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 21 Sep 2005 18:19:08 +0000 Subject: [PATCH] commiting the format handling code in copy counts info removed some unneccessary stuff from websession git-svn-id: svn://svn.open-ils.org/ILS/trunk@1846 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../OpenILS/Application/Search/Biblio.pm | 4 ++-- .../OpenILS/Template/Plugin/WebSession.pm | 23 ------------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 6b238b783c..6ea7986d90 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -183,7 +183,7 @@ __PACKAGE__->register_method( api_name => "open-ils.search.biblio.metarecord.copy_count.staff", ); sub record_id_to_copy_count { - my( $self, $client, $org_id, $record_id ) = @_; + my( $self, $client, $org_id, $record_id, $format ) = @_; my $method = "open-ils.storage.biblio.record_entry.copy_count.atomic"; my $key = "record"; @@ -203,7 +203,7 @@ sub record_id_to_copy_count { return undef unless(defined $record_id); my $request = $session->request( - $method, org_unit => $org_id => $key => $record_id ); + $method, org_unit => $org_id => $key => $record_id, format => $format ); my $count = $request->gather(1); diff --git a/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebSession.pm b/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebSession.pm index dea5a679ea..ace78c0a35 100644 --- a/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebSession.pm +++ b/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebSession.pm @@ -7,16 +7,6 @@ use base qw/Template::Plugin/; use OpenSRF::AppSession; use OpenSRF::System; -use vars qw/$textmap/; - -# allows us to use a process-wide variable cache -my $_CACHE = {}; - -sub gettext { - my( $self, $text ) = @_; - return $text; -} - sub new { my ($class) = @_; $class = ref($class) || $class; @@ -39,19 +29,6 @@ sub init_app_session { return OpenSRF::AppSession->create($service); } -sub add_cache { - my($self, $key, $value ) = @_; - $_CACHE->{$key} = $value; -} - -sub get_cache { - my( $self, $key ) = @_; - if( exists($_CACHE->{$key})) { - return $_CACHE->{$key}; - } - return undef; -} - 1; -- 2.43.2