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

--- Comment #6 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 206728
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206728&action=edit
Bug 43616: Add "Schedule patron imports" page under Tools

Adds tools/schedule_patron_imports.pl and its template: CRUD for named
scheduled patron import accounts, listed and linked directly beneath
"Import patrons" in the Tools menu, permission-gated on the same
tools > import_patrons permission as its sibling.

The add/edit form exposes every option tools/import_borrowers.pl does
(record-matching field, per-column default values including a
patron_attributes default, fields preserved on overwrite, replace
passwords, renew-on-overwrite behaviour, patron attribute
replace-all/replace-included, welcome email, patron list creation) in
addition to the file transport and active flag that make this a
scheduled account rather than a one-off run. This is a separate page
from the interactive tool rather than a mode added to it: the
interactive tool is a single-shot action (upload, enqueue, see a
result), while this is CRUD over a list of persistent, named configs -
folding the two together would add a full list/edit/delete state
machine to an already large, heavily-used page. Each page links to the
other for discoverability.

Test plan:
1. Apply the whole patchset, update the database, restart_all.
2. Go to Administration > File transports and add a Local file
   transport pointing at a directory you can drop CSV files into.
3. Log in as a user with the tools > import_patrons permission and go
   to Tools - confirm "Schedule patron imports" appears directly below
   "Import patrons", and that Tools > Import patrons now shows a note
   linking to the new page.
4. Go to Tools > Schedule patron imports and create a new account:
   - Name and File transport from step 2
   - Matchpoint: cardnumber
   - Expand "Enter default values" and set a default branchcode
   - Expand "Preserve existing values" and check surname
   - Overwrite the existing one with this - Replace patron passwords -
     Renew existing patrons "from the current date"
   - Send email to new patrons: checked
   - Create patron list: checked
   Save, and confirm the account appears in the list.
5. Click Edit - confirm every field above, including both expandable
   sections' previous contents, the selected matchpoint, the overwrite
   radio and its nested renew/password controls, and both checkboxes,
   are correctly pre-filled.
6. Click Delete - confirm the confirmation page and the resulting
   removal from the list both work.
7. Confirm admin/patron_import_accounts.pl (the old location) no
   longer exists, and Administration no longer links to it.
8. Try reaching the page as a user without tools > import_patrons -
   confirm access is denied.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to