Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Martin Persson 1f15b585d4 Bug 14248: Optionally display authorship for news
Test plan:

* Apply dependant patches 14246 and 14247.
* Apply current patch.
* Log into the Staff client, go to
 'Administration' -> 'Global Preferences' -> 'Tools',
  a new section titled 'News' should appear with a single option named 'NewsAuthorDisplay'.
  Available values should be 'Not at all', 'OPAC only', 'Staff client only' and
  Both OPAC and staff client'. By default the value should be 'Not at all'
  (to mimic existing behaviour, important!).

* Change the value to something different and save the changes.
* Go to 'Tools' -> 'News' and add some news items (at least 2).
* Use the MySQL command line tool to edit the opac_news table,
  removing the user id from one of the news items:
  $ mysql -u kohaadmin -p -D koha
  > SELECT `idnew`, `title`, `borrowernumber` FROM `opac_news`;
  * Make a mental note of one of the 'newid' numbers to change.
  > UPDATE `opac_news` SET `borrowernumber` = NULL WHERE `idnew` = <your-id-here>;
  * Now one of the news items will have no user id, and no author should be shown for it.
* Go to OPAC and Staff client and make sure the display modes works as intended.
  * Repeat for all values, making sure that the settings works as intended.
  * The changed news item should have no author info shown at any time.
  * The unchanged news item should show your own user name if the
    settings match the section where it is displayed.

Sponsored-By: Halland County Library

Tested on top of Bugs 1246 and 1247, works as advertised.
Note: Some whitespaces changed / removed in koha-news.tt to pass qa tools.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-10-27 16:26:22 -03:00
..
errors Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
sco Bug 14404: Rename class no-show to noshow for consistency with nosort 2015-07-20 10:34:00 -03:00
svc Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
text
ilsdi.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
maintenance.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-account.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-addbybiblionumber.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-advsearch.tt Bug 10937: Fix Seach Type in Advanced Search 2015-10-22 11:06:39 -03:00
opac-alert-subscribe.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-auth-detail.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-auth-MARCdetail.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-auth.tt Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
opac-authorities-home.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-authoritiessearchresultlist.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-basket.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-blocked.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-browser.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-course-details.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-course-reserves.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-detail.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-discharge.tt Bug 8007: (QA followup) Add error handling when generating the pdf 2015-04-30 12:34:21 -03:00
opac-downloadcart.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-downloadshelf.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-full-serial-issues.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-idref.tt Bug 8992: (QA followup) <body> was missing id and class 2015-04-28 18:11:35 -03:00
opac-imageviewer.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-ISBDdetail.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-main.tt Bug 14248: Optionally display authorship for news 2015-10-27 16:26:22 -03:00
opac-MARCdetail.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-memberentry-update-submitted.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-memberentry.tt Bug 14652: change gender specification from "N/A" to "None specified" 2015-08-21 10:03:06 -03:00
opac-messaging.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-mymessages.tt
opac-news-rss.tt Bug 7843: Create an RSS feed for news in Opac 2015-04-30 16:12:25 -03:00
opac-opensearch.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-overdrive-search.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-passwd.tt Bug 14509: Reject invalid passwords 2015-09-28 11:51:08 -03:00
opac-privacy.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-readingrecord.tt Bug 14100: Fix 3 occurrences more 2015-10-27 12:34:07 -03:00
opac-registration-confirmation.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-registration-email-sent.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-registration-invalid.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-reserve.tt Bug 14100: Fix 3 occurrences more 2015-10-27 12:34:07 -03:00
opac-restrictedpage.tt Bug 13485: Use the Koha template plugin to access syspref values 2015-08-11 15:15:36 -03:00
opac-results-grouped.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-results.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-retrieve-file.tt Bug 14904: Resolve warning from tt_valid.t 2015-09-28 11:49:13 -03:00
opac-review.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-search-history.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-sendbasket.tt Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText 2015-06-08 09:47:06 -03:00
opac-sendbasketform.tt Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
opac-sendshelf.tt Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText 2015-06-08 09:47:06 -03:00
opac-sendshelfform.tt Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
opac-serial-issues.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-shareshelf.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-shelves-rss.tt Bug 1917 [QA Followup] - Use html filter, only show 'by' if author exists, change link title 2015-04-29 12:09:23 -03:00
opac-shelves.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-showmarc.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-showreviews-rss.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-showreviews.tt Bug 14607: Baker & Taylor cover images should be accessible by UPC as well as ISBN 2015-10-06 11:09:53 -03:00
opac-suggestions.tt Bug 14100: Fix 3 occurrences more 2015-10-27 12:34:07 -03:00
opac-tags.tt Bug 6379: Remove link from unapproved tags 2015-10-05 12:27:44 -03:00
opac-tags_subject.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-topissues.tt Bug 11139: Add support for multiple values in AdvancedSearchTypes 2015-10-22 11:36:53 -03:00
opac-user.tt Bug 8236: (QA followup) Tweak language, fix whitespace error 2015-10-19 14:37:13 -03:00