Bugzilla – Attachment 188291 Details for
Bug 30633
Move OPACHoldingsDefaultSortField to table settings configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30633: Default to 'Current library' if item_level_itypes is off
Bug-30633-Default-to-Current-library-if-itemleveli.patch (text/plain), 1.71 KB, created by
Martin Renvoize (ashimema)
on 2025-10-22 11:04:35 UTC
(
hide
)
Description:
Bug 30633: Default to 'Current library' if item_level_itypes is off
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-10-22 11:04:35 UTC
Size:
1.71 KB
patch
obsolete
>From 76485de8c7ac308eebca0aad9230ec89e984213d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 17 Oct 2025 14:59:04 +0200 >Subject: [PATCH] Bug 30633: Default to 'Current library' if item_level_itypes > is off > >We cannot set the default value in the yaml file dynamically. >This is not ideal but we are going to modify the default "Item type" if >item-level_itypes is off. > >Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 93144bf5bfe..964f3335398 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1914,6 +1914,13 @@ > [% END # /IF OpacBrowseResults %] > > var holdingst_table_settings = [% TablesSettings.GetTableSettings( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %]; >+ [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %] >+ // The default in the yaml file is 1 "Item type". >+ // If item-level_itypes is off the column will not appear, then select column 2 "Current library" >+ if (holdingst_table_settings.default_sort_order == 1) { >+ holdingst_table_settings.default_sort_order = 2; >+ } >+ [% END %] > var otherholdingst_table_settings = JSON.parse(JSON.stringify(holdingst_table_settings)); // Clone > > let column; >-- >2.51.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30633
:
187856
|
187857
|
187858
|
187859
|
187886
|
187887
|
187888
|
187889
|
188067
|
188068
|
188069
|
188070
|
188071
|
188072
|
188073
|
188074
|
188192
|
188286
|
188287
|
188288
|
188289
|
188290
| 188291 |
188292