From db3fc223b457e1301fc8baefbd5087777a919415 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Mon, 11 Feb 2019 18:25:34 +0100 Subject: [PATCH] FEAT #9156 List display f***ing barcode --- src/app/resource/controllers/ResourceListController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/resource/controllers/ResourceListController.php b/src/app/resource/controllers/ResourceListController.php index 9973cf281e8..faf2d2015e5 100644 --- a/src/app/resource/controllers/ResourceListController.php +++ b/src/app/resource/controllers/ResourceListController.php @@ -98,7 +98,10 @@ class ResourceListController $listDisplay = GroupBasketModel::get(['select' => ['list_display'], 'where' => ['basket_id = ?', 'group_id = ?'], 'data' => [$basket['basket_id'], $group['group_id']]]); $listDisplay = json_decode($listDisplay[0]['list_display']); - $select = ['res_letterbox.res_id', 'res_letterbox.subject', 'mlb_coll_ext.alt_identifier', 'status.label_status AS "status.label_status"', 'status.img_filename AS "status.img_filename"']; + $select = [ + 'res_letterbox.res_id', 'res_letterbox.subject', 'res_letterbox.barcode', 'mlb_coll_ext.alt_identifier', + 'status.label_status AS "status.label_status"', 'status.img_filename AS "status.img_filename"' + ]; $tableFunction = ['status', 'mlb_coll_ext']; $leftJoinFunction = ['res_letterbox.status = status.id', 'res_letterbox.res_id = mlb_coll_ext.res_id']; foreach ($listDisplay as $value) { @@ -137,6 +140,7 @@ class ResourceListController foreach ($resources as $key => $resource) { $formattedResources[$key]['res_id'] = $resource['res_id']; $formattedResources[$key]['alt_identifier'] = $resource['alt_identifier']; + $formattedResources[$key]['barcode'] = $resource['barcode']; $formattedResources[$key]['subject'] = $resource['subject']; $formattedResources[$key]['statusLabel'] = $resource['status.label_status']; $formattedResources[$key]['statusImage'] = $resource['status.img_filename']; -- GitLab