From cc567cb75533a6d50b0a482dbd6fd6478d3ad6e0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 22 Feb 2024 13:52:41 +0000 Subject: [PATCH] Bug 35994: Show acq_status on catalogue/detail Test plan: Based on the described criteria, check a few biblio records. Look at Acquisitions tab on the intranet detail page. Signed-off-by: Marcel de Rooy Signed-off-by: Emily Lamancusa Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- catalogue/detail.pl | 3 ++- .../prog/en/modules/catalogue/detail.tt | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index bf72787d44..9a1306cf05 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -293,7 +293,8 @@ if ( C4::Context->preference('AcquisitionDetails') ) { ); # GetHistory sorted by aqbooksellerid, but does it make sense? $template->param( - orders => $orders, + orders => $orders, + acq_status => $biblio->acq_status, ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index f2660bedcd..9571ae60c0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -38,6 +38,17 @@ [% INCLUDE 'doc-head-close.inc' %] +[% BLOCK acq_status %] + + [% SWITCH myvar %] + [% CASE 'unlinked' %]Unlinked + [% CASE 'acquired' %]Acquired + [% CASE 'processing' %]Processing + [% CASE 'cancelled' %]Cancelled + [% END %] + +[% END %] + [% WRAPPER 'header.inc' %] @@ -482,6 +493,8 @@ [% IF Koha.Preference('AcquisitionDetails') %]
+

This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %] +

[% IF orders.count %] -- 2.39.5