Koha/koha-tmpl/opac-tmpl/bootstrap
Nick Clemens c1f628fbc9
Bug 29691: Use template to display news on opac homepage
This patch moves the fetching of news to the template and
adds a p[lugin method to get news by id

TO test:
1 - Define some general and library specific news items
2 - Define in various languages
3 - Define some 'Additional contents' as well
4 - Apply patch
5 - Confirm onlly 'all libraries' news show if not loigged in to opac
6 - Confirm correct library news show when logged in
7 - View specific news items:
    http://localhost:8080/cgi-bin/koha/opac-main.pl?news_id=12
8 - Confirm that non-existent ids show " This news item does not exist. "
9 - Confirm if you enter ID for additional contents you get 'does not exist'

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-15 08:48:13 -03:00
..
css Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
en Bug 29691: Use template to display news on opac homepage 2023-06-15 08:48:13 -03:00
images Bug 29036: (follow-up) Improve the use of variables to keep colors consistent 2021-12-01 21:38:12 -10:00
itemtypeimg
js Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
lib/jquery Bug 32341: (Fix) Changing the placement of the button 2023-06-08 08:32:43 -03:00