Bug 27125: Show authority type also for UNIMARC in authority search result display
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 1 Dec 2020 13:28:24 +0000 (14:28 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Apr 2021 09:22:01 +0000 (11:22 +0200)
commit312938803331230f167eb2fceb4be1e9a874484b
treef8248bbc6ddbd856261d356c85814ea7493ba612
parent0a53543d51a34f6a61803204f04e4229d88c2d67
Bug 27125: Show authority type also for UNIMARC in authority search result display

Bug 12533 added authority type in authority search result display.
But it does not work for UNIMARC, due to :
https://git.koha-community.org/Koha-community/Koha/src/commit/be9f64b638335cac7465ca302e187c7914534fbe/C4/AuthoritiesMarc.pm#L798

I propose to use result->{authtype}

Test plan :
1) Use UNIMARC catalogue
2) Search for autorities
3) Check you see autority type in column
4) Same for a MARC21 catalogue

Signed-off-by: Andreas Roussos <a.roussos@dataly.gr>
I followed the test plan, and the patch works as expected for both
UNIMARC and MARC21. There is actually an improvement in the MARC21 case:
previously, the 'Authority type' column for records in the Default
framework would not display anything, whereas now it displays 'Default'.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5a155973fbd0fc9cd422cf9e10b3f64c909b05eb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt