@@ -, +, @@ - Go to Tools -> News. - Test the various table filter options: keyword, display location, and library. Confirm that all work as expected. - Changes to the keyword search text should be reflected in the search field at the top of the table, and vice versa. - Changes to the sidebar filter should trigger the correct state of the "Clear filter" button at the top of the news table (enabled or disabled). --- .../intranet-tmpl/prog/css/src/staff-global.scss | 2 +- .../prog/en/modules/tools/koha-news.tt | 121 +++++++++++++++------ tools/koha-news.pl | 2 +- 3 files changed, 91 insertions(+), 34 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -155,7 +155,7 @@ aside { fieldset { &.brief { - margin: 0; + margin: 0 0 1em 0; padding: .4em .7em; fieldset { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -100,24 +100,6 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]
Cancel
[% ELSE %] -
-
- - - - - -
-
[% IF ( opac_news_count ) %]
@@ -186,6 +168,35 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]
@@ -198,8 +209,37 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] [% IF ( opac_news_count ) %] [% INCLUDE 'datatables.inc' %] [% END %] @@ -262,7 +319,7 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] [% BLOCK lang_locations %] [% IF ( language == "" ) %] - + [% ELSE %] [% END %] --- a/tools/koha-news.pl +++ a/tools/koha-news.pl @@ -144,7 +144,7 @@ elsif ( $op eq 'del' ) { else { - my ( $opac_news_count, $opac_news ) = &get_opac_news( undef, $lang, $branchcode ); + my ( $opac_news_count, $opac_news ) = &get_opac_news( undef, undef, undef ); foreach my $new ( @$opac_news ) { next unless $new->{'expirationdate'}; --