[Koha-bugs] [Bug 11808] When searching for a cardnumber in the intranet, also try to search for it on the LDAP server if one is configured and add/update user

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 23 17:48:31 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808

Shi Yao Wang <shi-yao.wang at inLibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #144823|0                           |1
        is obsolete|                            |

--- Comment #19 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
Created attachment 144826
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144826&action=edit
Bug 11808: Add the SearchCardnumberWithLDAP system preference

Add option to search patrons on ldap server when not found in local
database and import it

Test plan:
0. You need to have an ldap server containing patron informations
configured in Koha.

1. Apply patch and update database.

2. Check that the new system preference SearchCardnumberWithLDAP has
been added and set as 'never'.

3. Choose a patron who exists in your ldap server but not in Koha.
(you can delete an existing patron from Koha if needed)

4. Search for the patron by it's cardnumber in the following locations.
Do not choose from the dropdown list, use the submit button.
    - circ/circulation.pl
    - circ/article-request.pl
    - reserve/request.pl
    - members/member.pl both at the top and in the filter box
    - any page using common/patron_search.tt, for example adding a
    guarantor with the members/guarantor_search.pl popup
    => Should return cardnumber/patron not found or no results

5. Change SearchCardnumberWithLDAP to 'if not found locally'.

6. Repeat step 4.
    => The patron should be added to Koha.

7. Edit the patron and change any of the existing information.

8. Repeat step 4.
    => The patron has not been updated (the change made in step 7 is
    still there)

9. Change SearchCardnumberWithLDAP to 'always'.

10. Repeat step 4.
    => The patron has been updated. Change made in step 7 has been
    rewritten and patron informations is the same as in step 6.

11. Try searching for a patron who doesn't exist in Koha and has a
nonexistant branch on the LDAP server. An error message should
appear accompanying the absence of results.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list