Bug 26630

Summary: Allow custom text for each library on the purchase suggestion page
Product: Koha Reporter: Lisette Scheer <lisettepalouse+koha>
Component: AcquisitionsAssignee: Lucas Gass (lukeg) <lucas>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: caroline.cyr-la-rose, fridolin.somers, jonathan.druart, lisettepalouse+koha, lucas, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Enhancement to allow for custom text at the top of the purchase suggestion screen which can be administered via the Koha news tool.
Version(s) released in:
21.05.00
Circulation function:
Bug Depends on:    
Bug Blocks: 28597    
Attachments: Bug 26630: Add OpacSuggestionInstructions options to News
Bug 26630: Add OpacSuggestionInstructions options to News
Bug 26630: Add OpacSuggestionInstructions options to News

Description Lisette Scheer 2020-10-07 21:58:13 UTC
It would be great if using the news tool we could set custom text at the top of the purchase suggestion screen based on the home branch of the patron. 

Currently I'm using jq to do this, but it would be nice if it was built in.
Comment 1 Lisette Scheer 2020-11-18 19:30:20 UTC
*** Bug 27046 has been marked as a duplicate of this bug. ***
Comment 2 Lucas Gass (lukeg) 2020-11-18 23:50:43 UTC Comment hidden (obsolete)
Comment 3 Kelly McElligott 2020-12-29 23:54:43 UTC Comment hidden (obsolete)
Comment 4 Martin Renvoize (ashimema) 2021-01-21 10:53:44 UTC
Created attachment 115525 [details] [review]
Bug 26630: Add OpacSuggestionInstructions options to News

Test plan:
1. Apply patch
2. Go to /cgi-bin/koha/tools/koha-news.pl and create 'New entry' with a dsiplay location of OpacSuggestionInstructions
3. Login to the OPAC and go to the purchase suggestion page (/cgi-bin/koha/opac-suggestions.pl)
4. Your new content should be there.
5. Delete the OpacSuggestionInstructions news entry.
6. Re-load the OPAC purchase suggestion page and the original text will be restored.

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize (ashimema) 2021-01-21 10:54:07 UTC
A nice little enhancement, works as described and passes QA scripts.

Passing QA
Comment 6 Jonathan Druart 2021-01-21 15:25:12 UTC
Pushed to master for 21.05, thanks to everybody involved!
Comment 7 Fridolin Somers 2021-01-25 15:36:55 UTC
Enhancement not pushed to 20.11.x
Comment 8 Jonathan Druart 2021-02-09 11:05:10 UTC
Lucas, please fill the release notes.