Bug 15385

Summary: News archive
Product: Koha Reporter: Martin Persson <xarragon>
Component: Staff interfaceAssignee: Martin Persson <xarragon>
Status: Patch doesn't apply --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, gmcharlt, jonathan.druart, mtompset
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 14272    
Bug Blocks: 15389    
Attachments: Bug 15385: News archive
Bug 15385: News archive
Bug 15385: News archive
Bug 15385: News archive
[SIGNED-OFF] Bug 15385: News archive

Description Martin Persson 2015-12-16 13:37:33 UTC
Expired news will be visible in an "archive" reachable from the public OPAC.
Comment 1 Martin Persson 2015-12-16 22:16:37 UTC Comment hidden (obsolete)
Comment 2 Martin Persson 2015-12-16 22:56:46 UTC Comment hidden (obsolete)
Comment 3 Martin Persson 2015-12-18 21:20:34 UTC Comment hidden (obsolete)
Comment 4 Aleisha Amohia 2016-01-11 22:11:31 UTC
Patch doesn't apply:

Applying: Bug 15385: News archive
fatal: sha1 information is lacking or useless (koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 Bug 15385: News archive
Comment 5 Mark Tompsett 2016-02-02 15:35:43 UTC Comment hidden (obsolete)
Comment 6 Mark Tompsett 2016-02-02 15:39:32 UTC
I did not sign off. I merely rebased till it applied nicely.
Comment 7 Aleisha Amohia 2016-02-05 01:30:50 UTC
Created attachment 47674 [details] [review]
[SIGNED-OFF] Bug 15385: News archive

Adds ability to new old, expired news items in an archive.

Test plan:
* Add several news items, some of which should have an expired date.
* Go to Global system preferences, Enable 'NewsArchiveEnabled'.
* Go to the OPAC main page. The non-expired news should be shown.
* A link should be shown in the lower right-hand side of the page,
  "Archived news". Click it. ALL news items should be shown.
* Go back to Global system preferences, Disable 'NewsArchiveEnabled'.
  * No 'Archived news' link should be shown on the OPAC main page.
  * If you manually add '?id=all' to the OPAC main page URL,
    the standard page should be shown and the parameter ignored.

Updates:
  * Renamed 'id' to 'news_id' (from update in 14272)
  * Added breadcrumbs

Sponsored-By: Halland County Library

Signed-off-by: Aleisha <aleishaamohia@hotmail.com>
Comment 8 Jonathan Druart 2016-02-09 11:46:05 UTC
Blocked by bug 14272.