Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Katrin Fischer 9af0b9de7d Bug 20400: Add routing list tab in OPAC
This patch adds the base for the new feature:
Show a list of the serial titles a patron is on routing
lists for in the OPAC.

Test plan applies to the complete patch set:

To test:
- Apply all patches
- Make sure RoutingSerials is not activated
- Check patron account in OPAC - no tab should appear
- Activate RoutingSerials
- Create subscriptions and different routing lists, test with:
  - Patron with no routing list entries = no tab
  - Patron with one or more routing list entries = tab appears

Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Bug 20400: Rewrite using Koha::Objects

Adds
- Koha::Subscription::Routinglist
- Koha::Subscription::Routinglists

Adds 2 methods
- Koha::Patron::get_routinglists
- Koha::Routinglist::subscription

Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Bug 20400: Add unit tests

prove t/db_dependent/Koha/Subscription/Routinglists.t
prove t/db_dependent/Koha/Patrons.t

Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Bug 20400: Display new tab in OPAC only for patrons with routing lists

The visibility of the routing list tab in the OPAC depends
on the system preference RoutingSerials and the existence
of routing list entries for the patron.

Some libraries only offer routing lists to certain user groups and
would not want it generally visible. As there are currently no
actions you can perform from the list, this appears to be a
reasonable behaviour.

See test plan in first patch.

Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Bug 20400: (follow-up) Use Asset TT plugin on opac-routing-lists.tt

Patch applies and functions as described.
Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Bug 20400: (QA follow-up) Redirect to 404 if routing is disabled

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-20 13:34:41 -03:00
..
clubs Bug 19216: Fix broken table in OPAC for when club doesn't allow public enrolment 2017-10-27 14:10:27 -03:00
errors
sci Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
sco Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
svc
text
ilsdi.tt Bug 13990: ILS-DI LookupPatron requires ID Type 2018-01-30 14:18:21 -03:00
maintenance.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-account-pay-error.tt
opac-account.tt Bug 18786: Add ability to create custom payment types 2018-04-19 12:32:21 -03:00
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-alert-subscribe.tt
opac-auth-detail.tt Bug 20538: Fix 2 JS paths 2018-04-13 11:49:44 -03:00
opac-auth-MARCdetail.tt Bug 20538: Fix 2 JS paths 2018-04-13 11:49:44 -03:00
opac-auth.tt Bug 20291: (follow-up) Rename NoLoginInstructions to OpacLoginInstructions 2018-04-02 18:08:07 -03:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt
opac-basket.tt Bug 19708: Improve code for printing the cart in OPAC 2018-03-26 17:31:16 -03:00
opac-blocked.tt
opac-browser.tt
opac-course-details.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-course-reserves.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-detail.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-discharge.tt
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-ics.tt
opac-idref.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-illrequests.tt Bug 7317: Fix translatable-templates.t failure 2017-11-09 14:22:56 -03:00
opac-imageviewer.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-ISBDdetail.tt Bug 19319: Reflected XSS Vulnerability in opac-MARCdetail.pl 2018-01-09 16:02:25 -03:00
opac-issue-note.tt
opac-main.tt Bug 18820: Main block size now adjust to OpacNavRight like it would for opacuserlogin 2018-04-02 18:12:30 -03:00
opac-MARCdetail.tt Bug 19319: Reflected XSS Vulnerability in opac-MARCdetail.pl 2018-01-09 16:02:25 -03:00
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-messaging.tt
opac-mymessages.tt
opac-news-rss.tt
opac-opensearch.tt Bug 20286: Fix filter for BakerTaylor* prefs 2018-03-14 08:59:29 +00:00
opac-overdrive-search.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-passwd.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-password-recovery.tt Bug 18956: Fix empty to in message queue 2017-10-27 13:57:10 -03:00
opac-privacy.tt
opac-readingrecord.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-registration-confirmation.tt Bug 19911: Escape password value during self-registration confirmation 2018-01-15 12:14:00 -03:00
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-request-article.tt
opac-reserve.tt
opac-restrictedpage.tt
opac-results-grouped.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-results.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-retrieve-file.tt
opac-review.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-routing-lists.tt Bug 20400: Add routing list tab in OPAC 2018-04-20 13:34:41 -03:00
opac-search-history.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt
opac-shareshelf.tt
opac-shelves-rss.tt
opac-shelves.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt Bug 19808: Do not display 'Added' alone 2017-12-21 11:07:37 -03:00
opac-suggestions.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-tags.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-tags_subject.tt
opac-topissues.tt Bug 20054: Remove attribute "text/css" for <style> element in OPAC 2018-02-12 17:38:57 -03:00
opac-user.tt Bug 20489: Remove warnings from the interface 2018-04-20 12:24:00 -03:00