Lines 102-108
sub get {
Link Here
|
102 |
}; |
102 |
}; |
103 |
} |
103 |
} |
104 |
|
104 |
|
105 |
=head3 get_availablity |
105 |
=head3 get_availability |
106 |
|
106 |
|
107 |
Controller function that handles retrieval of Checkout availability |
107 |
Controller function that handles retrieval of Checkout availability |
108 |
|
108 |
|
Lines 131-136
sub get_availability {
Link Here
|
131 |
$token = Mojo::JWT->new( claims => $claims, secret => $secret )->encode; |
131 |
$token = Mojo::JWT->new( claims => $claims, secret => $secret )->encode; |
132 |
} |
132 |
} |
133 |
|
133 |
|
|
|
134 |
# Remove any non-public info that's returned by CanBookBeIssued |
135 |
if ( $c->stash('is_public') ) { |
136 |
my @restricted_keys = qw/issued_borrowernumber issued_cardnumber issued_firstname issued_surname resborrowernumber resbranchcode rescardnumber reserve_id resfirstname resreservedate ressurname item_notforloan/; |
137 |
for my $key (@restricted_keys) { |
138 |
delete $confirmation->{$key}; |
139 |
delete $impossible->{$key}; |
140 |
delete $alerts->{$key}; |
141 |
delete $messages->{$key}; |
142 |
} |
143 |
} |
144 |
|
134 |
my $response = { |
145 |
my $response = { |
135 |
blockers => $impossible, |
146 |
blockers => $impossible, |
136 |
confirms => $confirmation, |
147 |
confirms => $confirmation, |
137 |
- |
|
|