Bug 33133: Add fast cataloging to 'Cataloging' page
authorNick Clemens <nick@bywatersolutions.com>
Fri, 3 Mar 2023 20:23:31 +0000 (20:23 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 10:50:07 +0000 (12:50 +0200)
commit85cfdb1f5bdee7c235516a161770a44e27ff8f62
treeb8b39ded715cd14cee64f3cb38ab01591cd20f6d
parentcf89db353d49b2a7959bb0fab9c909bd0a743c07
Bug 33133: Add fast cataloging to 'Cataloging' page

This patch adds a check for the existence of the Fast Add framework to
the Koha mainpage and the cataloging home page

If it exists, and the user has fast cataloging permission then there
will be a link to Cataloging on the home page, and to Fast add on the
cataloging page

To test:
1 - Have two patrons, one with superlibrarian and one with only
  catalogue + fast_cataloging
2 - Make sure you have a fast add framework (code:FA)
3 - Have two windows/tabs one with each patron (one private/incognito or
  use two browsers)
4 - View mainpage.pl for both
5 - Superlibrarian has Catalogue link, other does not
6 - Browse to http://localhost:8081/cgi-bin/koha/cataloguing/cataloging-home.pl
7 - Superlibrarian sees stuff, other can access page, but has no buttons
8 - Apply patch
9 - Repeat 4 - both have a link
10 - Repeat 7 - both have a link to fast add
11 - Confirm fast add link works

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
cataloguing/cataloging-home.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
mainpage.pl