Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes
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
..
search Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
authorities-search-results.inc Bug 18779: Translatability: Get rid of exposed tt directives in authorities-search-results.inc (OPAC) 2017-08-30 16:43:37 -03:00
av-build-dropbox.inc Bug 18682 - Translatability: Get rid of [%% in translation for 2 files av-build-dropbox.inc 2017-06-05 16:35:56 -03:00
bodytag.inc Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
calendar.inc Bug 18447 - QA Followup - fix opac usage 2017-08-25 11:38:46 -03:00
columns_settings.inc Bug 16759: Use index of elements in specific table 2017-10-25 12:14:41 -03:00
datatables.inc Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
date-format.inc Bug 11694: Improve handling of individual hold suspension in Bootstrap OPAC 2014-03-26 16:07:44 +00:00
doc-head-close.inc Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
doc-head-open.inc Bug 13948: Prevent explosion when Template::Plugin::Stash not installed 2015-07-28 10:30:21 -03:00
greybox.inc Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
html_helpers.inc Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
item-status-schema-org.inc Bug 10626: (follow-up) replace use of KohaAuthorisedValues in the Bootstrap theme 2013-12-20 04:22:20 +00:00
item-status.inc Bug 20341: Show authorized value description for withdrawn like damaged and lost 2018-03-19 12:23:15 -03:00
masthead-langmenu.inc Bug 20115: Remove sort on rfc4646_subtag in OPAC templates 2018-04-04 15:45:44 -03:00
masthead-sco.inc Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
masthead.inc Bug 20619: Remove last occurrences of long gone syspref (opacsmallimage) 2018-04-20 13:34:41 -03:00
navigation.inc Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-authorities.inc Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-bottom.inc Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
opac-detail-sidebar.inc Bug 4319: [OPAC] Allow holds on waiting/transit items 2018-02-13 13:02:23 -03:00
opac-facets.inc Bug 20552: Fix HTML tag for search facets 2018-04-11 16:45:09 -03:00
opac-note.inc Bug 17386: Simplify code 2016-10-10 14:08:20 +00:00
opac-topissues.inc Bug 18083: Simplify the condition - if there are more than 1 library 2018-01-19 15:50:32 -03:00
openlibrary-readapi.inc Bug 18781: Translatability: Get rid of exposed tt directives in openlibrary-readapi.inc 2017-08-30 16:43:37 -03:00
overdrive-checkout.inc bug_16034 Add overdrive info to the users page in the public interface 2017-02-21 19:58:21 +00:00
page-numbers.inc Bug 13205: [FOLLOW-UP] Fixing math and variable names 2017-10-09 16:15:49 -03:00
password_check.inc Bug 18298: Use the validate jQuery plugin 2017-10-16 09:44:32 -03:00
patron-title.inc Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
resort_form.inc Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
shelfbrowser.inc Bug 16315 - OPAC Shelfbrowser doesn't display the full title 2016-05-05 18:28:16 +00:00
slip-print.inc Bug 18405: Self checkout: Fix broken silent printing 2017-05-08 09:01:41 -04:00
subtypes_unimarc.inc Bug 11189: Rename "Print" label in UNIMARC advanced search 2013-11-08 16:48:42 +00:00
usermenu.inc Bug 20400: Add routing list tab in OPAC 2018-04-20 13:34:41 -03:00