From bc4c1c90e88034332a0847aab6eb8c34f3f94a2c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 27 Feb 2024 17:17:10 +0000 Subject: [PATCH] Bug 36182: Add booksellerid column to holdings table 1) Apply patch, reset_all 2) Configure holdings_table, visit: /cgi-bin/koha/admin/columns_settings.pl?module=catalogue&page=detail&table=holdings_table 3) Confirm holdings_booksellerid is there and is hidden by default 4) Visit a record: /cgi-bin/koha/catalogue/detail.pl?biblionumber=76 5) Edit one of the items and add a value to field 'e' Source of acquisition 6) Go back to the record and click on the 'Columns' above the table 7) Click 'Source of acquisition'. Confirm it shows as expected Signed-off-by: Lucas Gass --- admin/columns_settings.yml | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 ++ 2 files changed, 8 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index dd6396671f..fcca45ad18 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -404,6 +404,9 @@ modules: columnname: holdings_dateaccessioned - columnname: holdings_datelastborrowed + - + columnname: holdings_booksellerid + is_hidden: 1 - columnname: holdings_barcodes - @@ -467,6 +470,9 @@ modules: columnname: otherholdings_dateaccessioned - columnname: otherholdings_datelastborrowed + - + columnname: otherholdings_booksellerid + is_hidden: 1 - columnname: otherholdings_barcode - 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 9764f45735..687254b471 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -370,6 +370,7 @@ Renewals Date accessioned Date last borrowed + Source of acquisition Barcode [% IF ( itemdata_uri ) %]URL[% END %] [% IF ( itemdata_copynumber ) %]Copy number[% END %] @@ -571,6 +572,7 @@ [% item.renewals || 0 | html %] [% item.dateaccessioned | $KohaDates %] [% item.datelastborrowed | $KohaDates %] + [% item.booksellerid | html %] [% item.barcode | html %] [% IF ( itemdata_uri ) %] [% IF item.uri.split(' \| ').size > 1 %] -- 2.30.2