</desc>
</event>
+ <event code='1216' textcode='PATRON_INACTIVE_CARD'>
+ <desc xml:lang="en-US">The patron's card is not active</desc>
+ </event>
+
}
}
-
+sub is_true {
+ my( $self, $item ) = @_;
+ return 1 if $item and $item !~ /^f$/i;
+ return 0;
+}
1;
$patron->card($e->retrieve_actor_card($patron->card));
+ return OpenILS::Event->new('PATRON_INACTIVE_CARD')
+ unless $U->is_true($patron->card->active);
+
$ctx->{requestor} = $ctx->{requestor} || $e->requestor;
# this could alter the requestor object within the editor..