Bug 14038

Summary: SQLHelper replacement - C4::Members::Search - nl-search.pl
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: gmcharlt, kyle.m.hall, magnus, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 12633    
Attachments: Bug 14038: Make nl-search.pl not using C4::Members::Search
Bug 14038: Make nl-search.pl not using C4::Members::Search
[PASSED QA] Bug 14038: Make nl-search.pl not using C4::Members::Search

Description Jonathan Druart 2015-04-22 08:18:36 UTC
members/nl-search.pl currently uses C4::Members::Search.
To get rid of SQLHelper, we should not use this subroutine anymore.
Comment 1 Jonathan Druart 2015-04-22 08:23:30 UTC Comment hidden (obsolete)
Comment 2 Magnus Enger 2015-04-29 12:56:18 UTC Comment hidden (obsolete)
Comment 3 Magnus Enger 2015-04-29 13:01:51 UTC
QA team: This patch can only really be tested by a Norwegian library system vendor, because you need all sorts of passwords and secret handshakes... I think what can be done is testing for regressions, e.g. that normal patron search works as expected with NorwegianPatronDBEnable = Disable.
Comment 4 Katrin Fischer 2015-04-29 20:45:19 UTC
Created attachment 38694 [details] [review]
[PASSED QA] Bug 14038: Make nl-search.pl not using C4::Members::Search

To get rid of SQLHelper, we should not use this C4::Members::Search anymore.

Test plan for Magnus :)
0/ Enable the pref you need to use the Norwegian national library card ft
1/ Go on the members/nl-search.pl page and search for patrons.
2/ Make sure you search by card number and by "social security number"

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Searching works the same with and without the patch. Thanks Jonathan!

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Katrin Fischer 2015-04-29 20:46:00 UTC
Code touched by this patch is specific to the Norwegian library card feature - no regressions found and trusting Magnus as a tester here (have to... ;) )
Comment 6 Tomás Cohen Arazi (tcohen) 2015-05-15 18:44:14 UTC
Patch pushed to master.

Thanks Jonathan!