Skip to content
Snippets Groups Projects
Commit e540cc8c authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Alma: Display any title and creation time in fines list.

parent 7cec89c5
No related merge requests found
...@@ -749,11 +749,17 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface ...@@ -749,11 +749,17 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface
); );
$fineList = []; $fineList = [];
foreach ($xml as $fee) { foreach ($xml as $fee) {
$created = (string)$fee->creation_time;
$checkout = (string)$fee->status_time; $checkout = (string)$fee->status_time;
$fineList[] = [ $fineList[] = [
"title" => (string)$fee->type, "title" => (string)($fee->title ?? ''),
"amount" => $fee->original_amount * 100, "amount" => $fee->original_amount * 100,
"balance" => $fee->balance * 100, "balance" => $fee->balance * 100,
"createdate" => $this->dateConverter->convert(
'Y-m-d H:i',
'm-d-Y',
$created
),
"checkout" => $this->dateConverter->convert( "checkout" => $this->dateConverter->convert(
'Y-m-d H:i', 'Y-m-d H:i',
'm-d-Y', 'm-d-Y',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment