From ccc3650911a78578bc43462014d2197d8a2f22a7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 29 Oct 2025 17:01:57 +0000 Subject: [PATCH] Bug 41134: Add table settings to transfers This patch updates the transfers page in order to add table settings to the table of transfered items. The patch also makes another minor correction: The transfer submit button now has the standard class "btn-primary." To test, apply the patch and restart services. - Go to Circulation -> Transfer. - Submit a barcode from a library other than your own so that the transfer will complete successfully. - Note that the "Transfer" button has the standard primary yellow color. - In the table of transferred items you should see the columns setting menu, export option, etc. Confirm that these controls work correctly. - Go to Administration -> Table settings -> Circulation -> Transfers - Make some changes to the column visibility settings and return to the transfers page to confirm that your settings are now applied when you transfer more items. - Because of DataTables state saving feature you might have to clear your browser's local storage in order to see the new column configuration. Sponsored-by: Athens County Public Libraries --- admin/columns_settings.yml | 26 +++++ .../prog/en/modules/circ/branchtransfers.tt | 97 +++++++++++-------- 2 files changed, 83 insertions(+), 40 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 6c5624bee9b..e950b04332a 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1932,6 +1932,32 @@ modules: - columnname: itemnote + transfers: + transferstable: + columns: + - + columnname: title + - + columnname: author + - + columnname: barcode + - + columnname: location + - + columnname: itemcallnumber + - + columnname: itype + - + columnname: ccode + - + columnname: transferfrom + - + columnname: transferto + - + columnname: action + cannot_be_toggled: 1 + cannot_be_modified: 1 + view_holdsqueue: holds-table: default_sort_order: 3 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt index 56dd9901695..0d009b7cc12 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt @@ -3,6 +3,7 @@ [% USE Branches %] [% USE ItemTypes %] [% USE AuthorisedValues %] +[% USE TablesSettings %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% PROCESS 'member-display-address-style.inc' %] @@ -235,7 +236,7 @@
- +
[% FOREACH trsfitemloo IN trsfitemloop %] @@ -250,42 +251,46 @@ [% IF ( trsfitemloop ) %]
- +
- - - - - - - - - - - - - [% FOREACH trsfitemloo IN trsfitemloop %] + - - - - - - - - - - + + + + + + + + + + - [% END # /FOREACH trsfitemloo %] + + + [% FOREACH trsfitemloo IN trsfitemloop %] + + + + + + + + + + + + + [% END # /FOREACH trsfitemloo %] +
Transferred items
TitleAuthorBarcodeShelving locationCall numberItem typeCollectionOriginDestinationActions
[% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] [% trsfitemloo.item.biblio.author | html %][% trsfitemloo.item.barcode | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %][% trsfitemloo.item.itemcallnumber | html %][% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %][% Branches.GetName( trsfitemloo.frombrcd ) | html %][% Branches.GetName( trsfitemloo.tobrcd ) | html %] - - TitleAuthorBarcodeShelving locationCall numberItem typeCollectionOriginDestinationActions
[% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] [% trsfitemloo.item.biblio.author | html %][% trsfitemloo.item.barcode | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %][% trsfitemloo.item.itemcallnumber | html %][% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %][% Branches.GetName( trsfitemloo.frombrcd ) | html %][% Branches.GetName( trsfitemloo.tobrcd ) | html %] + +
@@ -293,18 +298,30 @@ [% END # /IF found %] [% END %] [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] [% INCLUDE 'select2.inc' %] [% END %] -- 2.39.5