added a method to return the org unit closed dates
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Aug 2008 15:13:13 +0000 (15:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Aug 2008 15:13:13 +0000 (15:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10398 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index 9f874ed..7eacf9c 100644 (file)
@@ -3044,5 +3044,24 @@ sub create_user_opt_in_at_org {
 }
 
 
+__PACKAGE__->register_method (
+       method          => 'retrieve_org_hours',
+       api_name        => 'open-ils.actor.org_unit.hours_of_operation.retrieve',
+       signature       => q/
+        Returns the hours of operation for a specified org unit
+               @param authtoken The login session key
+               @param org_id The org_unit ID
+       /
+);
+
+sub retrieve_org_hours {
+    my($self, $conn, $auth, $org_id) = @_;
+    my $e = new_editor(authtoken => $auth);
+       return $e->die_event unless $e->checkauth;
+    $org_id ||= $e->requestor->ws_ou;
+    return $e->retrieve_actor_org_unit_hours_of_operation($org_id);
+}
+
+
 1;