Bug 13970

Summary: Remove related code to category_type
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: PatronsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: bgkriegel, chris, gmcharlt, gwilliams, kyle.m.hall, magnus, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Medium patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 9314, 13497    
Bug Blocks: 14685, 14688    
Attachments: Bug 13970: Remove category_type related code
[SIGNED-OFF] Bug 13970: Remove category_type related code
[PASSED QA] Bug 13970: Remove category_type related code

Description Jonathan Druart 2015-04-08 13:31:32 UTC
In the member module, some code related to the category_type should be removed.
Instead the categorycode should be used, not the category_type.
Comment 1 Jonathan Druart 2015-04-08 13:43:45 UTC Comment hidden (obsolete)
Comment 2 Bernardo Gonzalez Kriegel 2015-05-20 01:49:25 UTC Comment hidden (obsolete)
Comment 3 Bernardo Gonzalez Kriegel 2015-05-20 01:50:37 UTC
Adding magnus in cc
Comment 4 Katrin Fischer 2015-06-07 14:30:17 UTC
Created attachment 39956 [details] [review]
[PASSED QA] Bug 13970: Remove category_type related code

Working on bug 13497 and bug 9314, I run into some Koha vestiges.
The category_type parameter should not be passed to memberentry.
On creating a new patron, the categorycode should be passed, and on
editing, it's useless. We can work with the borrowernumber and retrieve
these values.

Details of the changes:
- members-toolbar.inc: Remove the category_type parameter passed to
memberentry.pl
- memberentrygen.tt: Just remove the useless category_type parameter on
  editing a patron. Also remove the unused one passed to
  guarantor_search.pl.
- tables/members_results.tt: the borrowernumber is enough to edit a
  patron.
- memberentry.pl: check_categorytype is never used in the template, all
  the process to calculate/retrieve it is unnecessary.
- members/nl-search.tt: The borrowernumber is enough to edit a patron.

Test plan:
Try to create and edit patrons and verify that
- the guarantor search still work
- the form (memberentry) behave as before

Edit a patron from the nl-search.pl script (Magnus?)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

On top of 9314 (13497 already pushed)

No evident regressions found, add/edit patron works,
search/set guarantor works.

Cant test nl-patron.pl save for exec it.
prove -v t/NorwegianPatronDB.t runs

No koha-qa errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Tomás Cohen Arazi 2015-06-11 13:19:31 UTC
Patch pushed to master.

Thanks Jonathan!
Comment 6 Chris Cormack 2015-06-11 20:44:04 UTC
Pushed to 3.20.x will be in 3.20.1