From 2e5905c7e80f9c2c59cae0aa8b196ed9f20edd1d Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Fri, 11 Aug 2017 09:48:05 +0300 Subject: [PATCH] Add display of account expiration date to profile page. --- module/VuFind/src/VuFind/ILS/Driver/Demo.php | 19 ++++++++++--------- .../templates/myresearch/profile.phtml | 3 ++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index ad8eb819fbd..13ae7dbed14 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -713,15 +713,16 @@ class Demo extends AbstractBase { $this->checkIntermittentFailure(); $patron = [ - 'firstname' => 'Lib-' . $patron['cat_username'], - 'lastname' => 'Rarian', - 'address1' => 'Somewhere...', - 'address2' => 'Over the Rainbow', - 'zip' => '12345', - 'city' => 'City', - 'country' => 'Country', - 'phone' => '1900 CALL ME', - 'group' => 'Library Staff' + 'firstname' => 'Lib-' . $patron['cat_username'], + 'lastname' => 'Rarian', + 'address1' => 'Somewhere...', + 'address2' => 'Over the Rainbow', + 'zip' => '12345', + 'city' => 'City', + 'country' => 'Country', + 'phone' => '1900 CALL ME', + 'group' => 'Library Staff', + 'expiration_date' => 'Someday' ]; return $patron; } diff --git a/themes/bootstrap3/templates/myresearch/profile.phtml b/themes/bootstrap3/templates/myresearch/profile.phtml index f7aac31e3bd..ca1d2ef556f 100644 --- a/themes/bootstrap3/templates/myresearch/profile.phtml +++ b/themes/bootstrap3/templates/myresearch/profile.phtml @@ -54,7 +54,8 @@ $this->transEsc('City') => 'city', $this->transEsc('Country') => 'country', $this->transEsc('Phone Number') => 'phone', - $this->transEsc('Group') => 'group' + $this->transEsc('Group') => 'group', + $this->transEsc('Expires') => 'expiration_date' ] ); ?> -- GitLab