@@ -, +, @@ of a text field in preferences - Go to Administration -> System preferences and search for "authorized value." - The search results should include the entries for BundleLostValue, BundleNotLoanValue, and ClaimReturnedLostValue. - Confirm that the dropdowns show the correct authorized value category (LOST or NOT_LOAN) - Confirm that setting or unsetting each of the preferences works correctly. --- admin/preferences.pl | 5 +++++ .../prog/en/modules/admin/preferences.tt | 14 +++++++++++--- .../en/modules/admin/preferences/circulation.pref | 6 ++++++ 3 files changed, 22 insertions(+), 3 deletions(-) --- a/admin/preferences.pl +++ a/admin/preferences.pl @@ -102,6 +102,11 @@ sub _get_chunk { } elsif ( $options{choices} eq 'patron-categories' ) { $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search->as_list }; $add_blank = 1; + } elsif ( $options{'choices'} eq 'authval' ){ + if( $options{'source'} ){ + $options{'choices'} = { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list }; + $add_blank = 1; + } } else { die 'Unrecognized source of preference values: ' . $options{'choices'}; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt @@ -131,9 +131,17 @@ [% ELSIF ( CHUNK.type_modalselect ) %] [% ELSIF ( CHUNK.type_multiple ) %] - + [% ELSIF ( CHUNK.type_textarea )%] [% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -1285,10 +1285,14 @@ Circulation: - - Use the LOST authorized value - pref: BundleLostValue + choices: authval + source: LOST - to represent 'missing from bundle' at return. - - Use the NOT_LOAN authorized value - pref: BundleNotLoanValue + choices: authval + source: NOT_LOAN - to represent 'added to bundle' when an item is attached to bundle. Return claims: @@ -1304,6 +1308,8 @@ Circulation: - - Use the LOST authorized value - pref: ClaimReturnedLostValue + choices: authval + source: LOST - to represent 'claims returned'. - - Warn librarians that a patron has excessive return claims if the patron has claimed the return of more than --