Bug 9307 - Allow libraries to add/edit status for suggestion management.
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 20 Dec 2012 14:31:23 +0000 (09:31 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 19 Jun 2013 14:19:38 +0000 (07:19 -0700)
commit490688ea534addc3028ceac6b9a8d3f6816359d2
treeb08dd67463b3131b0627c73d1fc2f3761c7e1716
parent8743f5aab5e1eb49a138bea155e8b82bcaeaa68f
Bug 9307 - Allow libraries to add/edit status for suggestion management.

This patch allows for the addition of new suggestion status by adding
authorised values of the category SUGGEST_STATUS

I sign it off. Details of my test plan :
1. Applying the patch
2. Checking existing suggestions, in staff view and opac :  ok
3. Creating a new suggestion in staff and in opac :  ok
4. Moving a suggestion into one of the old categories : ok
5. Adding a new authorized value category named SUGGEST_STATUS and fill it with 3 values :
value    Description    Description (OPAC) =)>
tata    tatapro         tataopac
titi    titipro         titiopac
toto    totopro         totoopac
For "tata", I defined a branch restriction on branche B.
6. Connecting in staff interface as a librarian of branch A : I could only use codes titipro and totopro. On OPAC, these codes were displayed as totoopac and titiopac
7. Connecting as librarian of branch B : I could use the 3 codes
8. Checking tabs visible : new tabs for tata, titi, toto, but also a new "Unknown" tab with 0 record.

Maybe point 8 could be fixed in a followup.
I sign off the patch.

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/help/suggestion/suggestion.tt
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt
suggestion/suggestion.pl