[open-ils-commits] r10396 - branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Aug 21 11:11:00 EDT 2008


Author: erickson
Date: 2008-08-21 11:10:58 -0400 (Thu, 21 Aug 2008)
New Revision: 10396

Modified:
   branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
Log:
added a method to return the org unit closed dates

Modified: branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2008-08-21 14:31:01 UTC (rev 10395)
+++ branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2008-08-21 15:10:58 UTC (rev 10396)
@@ -3051,5 +3051,24 @@
 }
 
 
+__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;
 



More information about the open-ils-commits mailing list