Description
Describe the problem you would like to solve
Multi-journal instances of OJS want to be able to add announcements at the site-level.
Describe the solution you'd like
Add announcements to the admin settings area, so that administrators can add, edit and delete announcements that appear on the site-wide homepage.
The ability to view the latest announcements will be added to the homepage in the default theme. Each site-level announcement will have its own page.
Who is asking for this feature?
This is part of sponsored development work for a PKP|PS client, UNIANDES, who will use this feature in their custom theme.
Implementation
This feature is hidden behind a config flag for 3.4.x and requires a migration to be run manually. Follow these steps to test:
- Check out the PRs.
- Add the following to the bottom of your
config.inc.php
file.
[features]
site_announcements = On
- Run the following command to run the migration.
php lib/pkp/tools/migration.php \\PKP\\migration\\upgrade\\v3_5_0\\I9253_SiteAnnouncements up
- Login as an admin.
- Go to Administration > Hosted Journals and make sure there are two or more journals.
- Go to Administration > Site Settings > Announcements.
- Click the checkbox to enable announcements and enter a positive number in the Display on Homepage field.
- Click the Save button.
Notes:
- When an announcement is sent at the journal level, an email is sent to all users who have subscribed to the journal's announcements. No emails are sent for announcements at the site level because users can not subscribe or unsubscribe to these announcements.
- This PR changes how announcements are ordered in the backend and frontend. Now they are shown with the latest first, by
date_posted
in descending order. - This PR fixes a small visual bug in the list of announcements, due to a CSS override, that caused extra padding on the page that lists announcements.
- This only adjusts the default theme. Other themes would need to be modified separately to support this feature.
- This PR also adds support for a featured image with each announcement.
PRs:
stable-3_4_0:
#9255
pkp/ui-library#283
pkp/ojs#4023