* Address 2 places where we were calling $e->request with a
CStoreEditor for a storage method. Since CStoreEditor assumes all
calls go to open-ils.cstore, these would have failed.
* While we're in a cleaning mood, remove some obsolete commented code.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jeff Godin <jgodin@tadl.org>
sub circ_count {
my( $self, $client, $copyid, $range ) = @_;
- my $e = new_editor();
- return $e->request('open-ils.storage.asset.copy.circ_count', $copyid, $range);
+
+ return $U->simplereq(
+ 'open-ils.storage',
+ 'open-ils.storage.asset.copy.circ_count',
+ $copyid, $range
+ );
}
if( $e->requestor->id ne $userid ) {
return $e->event unless $e->allowed('VIEW_CIRCULATIONS'); # XXX rely on editor perm
}
- return $e->request(
- 'open-ils.storage.action.open_non_cataloged_circulation.user', $userid );
+
+ return $U->simplereq(
+ 'open-ils.storage',
+ 'open-ils.storage.action.open_non_cataloged_circulation.user',
+ $userid
+ );
}
/
);
sub search_zip {
- #my( $self, $conn, $auth, $zip ) = @_;
- #my $e = new_editor(authtoken=>$auth);
- #return $e->event unless $e->checkauth;
- #return $e->event unless $e->allowed('VIEW_ZIP_DATA');
my( $self, $conn, $zip ) = @_;
$zip =~ s/(^\d{5}).*/$1/; # we don't care about the last 4 digits if they exist
return $zips{$zip};