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

--- Comment #15 from Agustín Moyano <agustinmoy...@theke.io> ---
Created attachment 105540
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105540&action=edit
Bug 23019: Add profiles to stage-import-batch and magnage-import-batch pages

This patch adds the logic and the needed UI elements to be able to pre-load an
import profile. It also displays which profile was used to stage an import in
staged import manager.

To test:
1. Apply all patches
2. Updatedatabase
3. Go to Stage MARC records for Import tool in admin, and upload a file with
MARC records.
CHECK => after uploading, there is a fieldset with the legend “Profile
settings”
              => inside the fieldset there is a select labeled “Pre fill values
with profile”. The only value it has is “Do not use profile”.

4. Change some settings, and set “profile 1” as profile name and click on “Add
profile”
SUCCESS => The select now has the new profile selected

5. Change profile select to “Do not use profile”
SUCCESS => Default values are now displayed in the form

6. Reload the page and upload the file again
SUCCESS => the select still has the profile recently added

7. Select the profile, change some parameter in the form and set the profile
name to “profile 2”, and click add profile
SUCCESS => there are two profiles now, and if you toggle between them, the
parameter changes

8. Select profile 1, change one parameter and click on update profile
SUCCESS => if you toggle that profile with the other, the new parameter of the
value is shown when you select profile 1

9. Select profile 2, change some parameter and click Add profile (leaving the
name as profile 2)
SUCCESS => the page complains there is another profile with the same name, and
asks if you want to replace it.

10. Click on accept
SUCCESS => profile 2 now has the new value in the parameter

11. Select profile 2 and change the name to profile 1
SUCCESS => the page complains there is another profile with that name, and asks
if you want to replace it

12. Click on accept
SUCCESS => in profile select there is only one profile called profile 1 that
has the values of profile 2

13. Select profile 1 and click remove profile
SUCCESS => there is no profile in profile select.

14. Create a profile and click on “Stage for import”
15. Go to Staged MARC management page
SUCCESS => Improt should have the name of the profile in profile column, and
when you click on the file name, there should be the name of the profile in the
details.

16. prove t/db_dependent/ImportBatch.t
t/db_dependent/api/v1/import_batch_profiles.t
17. Sign off

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to