Koha/opac
Jonathan Druart 2d74d926ce Bug 15632: Koha::Patron::Messages - Remove GetMessages
This subroutine just retrieved the messages given some parameters.
Some job should not have been done in this subroutine.
It was called only 3 times, in circ/circulation.pl and opac-user.pl.
Basically it was used to retrieved the message to displaye for a given
patron ($borrowernumber) at the OPAC (B) or Staff (L).

For the 3 calls, the 2 parameters $borrowernumber and $type
(message_type) were passed, the "%" trick at the beginning of the
subroutine was useless.
Moreover, the date formatting should be done on the TT side, not in
subroutine.
The can_delete flag was set if the branchcode given in parameter was the
same as the one of the message. This has been delegated to the template.
Indeed the can_delete was not valid, since it must depend on the
AllowAllMessageDeletion pref.
The test is now:
  IF message.branchcode == branch OR
  Koha.Preference('AllowAllMessageDeletion'')

There is not specific test plan for this patch, the changes have already
been tested in previous patches.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-03-03 21:22:14 +00:00
..
errors Bug 15288: Error pages: Code duplication removal and better translatability 2016-01-27 05:57:34 +00:00
rss
sco Bug 15084: Replace C4::Budgets::GetCurrencies with Koha::Acquisition::Currencies->search 2016-03-03 20:39:01 +00:00
svc Bug 9303 [QA Followup] - Restore missing svc script 2015-12-31 13:09:49 +00:00
ilsdi.pl Bug 6679 - Fixing code so it passes basic Perl:::Critic tests 2016-01-27 05:06:23 +00:00
maintenance.pl
oai.pl Bug 14939: Modularize OAI Server existing classes 2015-12-31 15:15:05 +00:00
opac-account-pay-paypal-return.pl
opac-account-pay.pl Bug 11622 [QA Followup] - Fix currency issue, add error template 2015-12-31 13:28:02 +00:00
opac-account.pl
opac-addbybiblionumber.pl
opac-alert-subscribe.pl
opac-authorities-home.pl
opac-authoritiesdetail.pl
opac-basket.pl Bug 5371: Force no caching for private pages at the OPAC 2015-10-02 11:06:17 -03:00
opac-blocked.pl
opac-browser.pl
opac-changelanguage.pl
opac-course-details.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
opac-course-reserves.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
opac-detail.pl Bug 14544: Get rid of C4::VirtualShelves and C4::VirtualShelves::Page 2015-11-05 09:58:02 -03:00
opac-discharge.pl Bug 5371: Force no caching for private pages at the OPAC 2015-10-02 11:06:17 -03:00
opac-downloadcart.pl
opac-downloadshelf.pl
opac-export.pl Bug 13642 - Adding new features for Dublin Core metadata 2016-01-27 06:23:07 +00:00
opac-ics.pl
opac-idref.pl Bug 8992: Interfacing with the Idref webservice 2015-04-28 15:46:26 -03:00
opac-image.pl
opac-imageviewer.pl
opac-ISBDdetail.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
opac-main.pl Bug 15613: Fix 2 other occurrences of paramter vs parameter 2016-01-27 05:16:23 +00:00
opac-MARCdetail.pl
opac-memberentry.pl Bug 14659: Allow patrons to enter card number and patron category on OPAC registration page 2016-03-02 04:29:38 +00:00
opac-messaging.pl Bug 9021: Save the provider even if the sms number is not modified 2016-02-14 12:40:08 +00:00
opac-modrequest-suspend.pl
opac-modrequest.pl
opac-mymessages.pl
opac-news-rss.pl
opac-overdrive-search.pl
opac-passwd.pl
opac-password-recovery.pl Bug 8753: [QA Follow-up] Primary key and collation 2016-01-27 06:40:56 +00:00
opac-patron-image.pl
opac-privacy.pl Bug 9303 [QA Followup] - Restore ability for patron to control setting 2015-12-31 13:09:45 +00:00
opac-ratings-ajax.pl
opac-ratings.pl
opac-readingrecord.pl
opac-registration-verify.pl Bug 11693: Default emailing preferences not loaded for self registering patron 2015-07-24 13:44:39 -03:00
opac-renew.pl
opac-reserve.pl Bug 4941: Remove the singleBranchMode system preference 2016-02-26 12:13:09 +00:00
opac-restrictedpage.pl Bug 13485: Use the Koha template plugin to access syspref values 2015-08-11 15:15:36 -03:00
opac-retrieve-file.pl
opac-review.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
opac-search-history.pl
opac-search.pl Bug 15629 [QA Followup] 2016-02-24 03:55:07 +00:00
opac-sendbasket.pl
opac-sendshelf.pl Bug 6322 - It's possible to view lists/virtualshelves even when virtualshelves is off 2016-01-27 02:31:42 +00:00
opac-serial-issues.pl
opac-shareshelf.pl
opac-shelves.pl Bug 15811: follow-up Bug 4912: Redirect to the appropriate view after editing/deleting a list 2016-02-24 01:32:23 +00:00
opac-showmarc.pl
opac-showreviews.pl
opac-suggestions.pl Bug 15629: Koha::Libraries - Remove GetBranchInfo 2016-02-24 03:55:07 +00:00
opac-tags.pl
opac-tags_subject.pl
opac-topissues.pl
opac-user.pl Bug 15632: Koha::Patron::Messages - Remove GetMessages 2016-03-03 21:22:14 +00:00
tracklinks.pl
unapi Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC 2016-01-27 06:00:35 +00:00