diff --git a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php index 062043d9344acdcb3116f29818637cb71a52c10e..cef4b639b75a0a732cbc9c7483684a1729545348 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php +++ b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php @@ -626,9 +626,10 @@ class PAIA extends DAIA protected function getAdditionalFeeData($fee, $patron = null) { $additionalData = []; - // Add the item title using the about field, - // but only if this fee is caused by some item - if (isset($fee['item'])) { + // The title is always displayed to the user in fines view if no record can + // be found for current fee. So always populate the title with content of + // about field. + if (isset($fee['about'])) { $additionalData['title'] = $fee['about']; } @@ -643,8 +644,6 @@ class PAIA extends DAIA ? $fee['about'] : null); $additionalData['item'] = (isset($fee['item']) ? $fee['item'] : null); - $additionalData['title'] = (isset($fee['title']) - ? $fee['title'] : null); return $additionalData; } diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PAIATest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PAIATest.php index 1af911b12ca7d3219767a0869cd3bef3d498b3bd..b622c449f39f97b6e82425212fef02080794bef7 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PAIATest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PAIATest.php @@ -120,7 +120,7 @@ class PAIATest extends \VuFindTest\Unit\ILSDriverTestCase 'createdate' => '06-07-2016', 'duedate' => '', 'id' => '', - 'title' => null, + 'title' => 'Open source licensing : software freedom and intellectual property law ; [open source licensees are free to: use open source software for any purpose, make and distribute copies, create and distribute derivative works, access and use the source code, com / Rosen, Lawrence (c 2005)', 'feeid' => null, 'about' => 'Open source licensing : software freedom and intellectual property law ; [open source licensees are free to: use open source software for any purpose, make and distribute copies, create and distribute derivative works, access and use the source code, com / Rosen, Lawrence (c 2005)', 'item' => 'http://uri.gbv.de/document/opac-de-830:bar:830$28295402' @@ -134,7 +134,7 @@ class PAIATest extends \VuFindTest\Unit\ILSDriverTestCase 'createdate' => '05-23-2016', 'duedate' => '', 'id' => '', - 'title' => null, + 'title' => 'Zend framework in action / Allen, Rob (2009)', 'feeid' => null, 'about' => 'Zend framework in action / Allen, Rob (2009)', 'item' => 'http://uri.gbv.de/document/opac-de-830:bar:830$28323471' @@ -148,7 +148,7 @@ class PAIATest extends \VuFindTest\Unit\ILSDriverTestCase 'createdate' => '05-23-2016', 'duedate' => '', 'id' => '', - 'title' => null, + 'title' => 'Unsere historischen Gärten / Lutze, Margot (1986)', 'feeid' => null, 'about' => 'Unsere historischen Gärten / Lutze, Margot (1986)', 'item' => 'http://uri.gbv.de/document/opac-de-830:bar:830$24476416' @@ -162,7 +162,7 @@ class PAIATest extends \VuFindTest\Unit\ILSDriverTestCase 'createdate' => '06-16-2016', 'duedate' => '', 'id' => '', - 'title' => null, + 'title' => 'Triumphe des Backsteins = Triumphs of brick / (1992)', 'feeid' => null, 'about' => 'Triumphe des Backsteins = Triumphs of brick / (1992)', 'item' => 'http://uri.gbv.de/document/opac-de-830:bar:830$33204941' @@ -176,7 +176,7 @@ class PAIATest extends \VuFindTest\Unit\ILSDriverTestCase 'createdate' => '05-23-2016', 'duedate' => '', 'id' => '', - 'title' => null, + 'title' => 'Lehrbuch der Botanik / Strasburger, Eduard (2008)', 'feeid' => null, 'about' => 'Lehrbuch der Botanik / Strasburger, Eduard (2008)', 'item' => 'http://uri.gbv.de/document/opac-de-830:bar:830$26461872'