Bug 11214: improve create/edit routing list links in serial collection page
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Thu, 7 Nov 2013 09:22:49 +0000 (10:22 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 27 Nov 2013 18:23:54 +0000 (18:23 +0000)
commit0c631934de5adf5c8d9d35aaaf94a19134f4a166
treefb80873e0af2cfee7b57312e1e5d9b8ee72c5669
parent3c50683e0d6412b29144962e7f5d539fec28da04
Bug 11214: improve create/edit routing list links in serial collection page

When a subscription has no routing list yet, the page
serials/subscription-detail.pl shows in left menu : "Create routing list".
In serials/serials-collection.pl page, the link in table is always
"Edit routing list", even when there is no routing list.

This patch adds a conditionnal link "Edit routing list"/"Create routing
list" into serials/serials-collection.pl page.

Test plan :
- Create a subscription no. 1 without routing list and a subscription
  no. 2 with a routing list
- Go to serials/serials-collection.pl of subscription no. 1
=> You see "Create routing list" link
- Click on link
=> You see "Create routing list for"
- Go to serials/serials-collection.pl of subscription no. 2
=> You see "Edit routing list" link
- Click on link
=> You see "Edit routing list for ..."

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Functional and automated tests pass. Passes koha-qa.pl.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
With the patch applied the serial collection page shows the
right link depending on the existance of a routing list.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
serials/serials-collection.pl