@@ -, +, @@ date hint --- .../prog/en/modules/tools/koha-news.tt | 5 ++++- .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 26 ++++++++++++---------- 2 files changed, 18 insertions(+), 13 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -97,7 +97,10 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]
  • -
    [% INCLUDE 'date-format.inc' %]
    +
    + [% INCLUDE 'date-format.inc' %] +
    News will still be accessible by direct URL if expired. +
  • --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -79,7 +79,7 @@

    [% koha_new.title | html %]

    [% koha_new.content | $raw %]
    -
    (published on [% koha_new.timestamp | $KohaDates with_hours = 1 | html %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title | html %] [% koha_new.author_firstname | html %] [% koha_new.author_surname | html %][% END %][% IF ( koha_new.expirationdate ) %], expiry on [% koha_new.expirationdate %][% END %])
    +
    (published on [% koha_new.timestamp | $KohaDates with_hours = 1 | html %][% IF ( (newsdisp == 'opac' || newsdisp == 'both') && koha_new.borrowernumber ) %] by [% koha_new.author_title | html %] [% koha_new.author_firstname | html %] [% koha_new.author_surname | html %][% END %])
    [% END %] @@ -106,6 +106,18 @@ [% END %] + [% END %] + + [% ELSE %] + [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] +
    +
    +
    No news to display.
    +
    +
    +
    + [% END %] + [% IF ( display_daily_quote && daily_quote ) %]

    Quote of the day

    @@ -117,17 +129,7 @@ [% IF ( OpacMainUserBlock ) %]
    [% OpacMainUserBlock | $raw %]
    [% END %] - [% END %] - [% ELSE %] - [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] -
    -
    -
    No news to display.
    -
    -
    -
    - [% END %] - [% END %] + [% END %]
    [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] --