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";
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);
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;
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;