Bug 8262: explicitly warn that database admin account cannot create lists
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 3 Mar 2014 08:55:43 +0000 (09:55 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 20 Apr 2014 22:55:22 +0000 (22:55 +0000)
commit080c05eee2ca6ab6df250c7dd51e9ed3ac4b7684
tree35fc413bfa8c4ea1b0ef2b97e171d1eaf00f45d6
parent1931d2d22ffb2dfb2e7b8c64a3d866cc2d9f48bb
Bug 8262: explicitly warn that database admin account cannot create lists

Since kohaadmin has no borrower number, it cannot create lists.
A database error is logged, but the user is not notified.
This patch alerts the user.

In the incidental case that a normal user gets a database error,
they are notified too that the list could not be created.

Test plan (for prog and bootstrap):
* This patch should be applied on top of 9032 patches.
* Login as as the database admin user
* Create a list in opac and staff. Check the message.
* Login as a normal user.
* Force a database error on list creation (I renamed category
  in the table with alter table change column..)
* You should have a different error message.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, passes tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/VirtualShelves.pm
C4/VirtualShelves/Page.pm
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt