16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/exlibris/aleph/table/patron/circulation_policies.rb', line 16
def find_by_identifier(identifier)
unless identifier.is_a?(Aleph::Patron::CirculationPolicy::Identifier)
raise ArgumentError.new("Expecting #{identifier} to be a CirculationPolicy::Identifier")
end
sub_library = identifier.sub_library
circulation_policy = _find_by_identifier(identifier)
if circulation_policy.nil?
generic_status_identifier =
Aleph::Patron::CirculationPolicy::Identifier.new(generic_status, sub_library)
circulation_policy = _find_by_identifier(generic_status_identifier)
end
circulation_policy
end
|