[Koha-bugs] [Bug 23019] Ability to create 'matching profiles' when importing records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat May 16 00:01:46 CEST 2020


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

--- Comment #5 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 104976
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104976&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. prove t/db_dependent/ImportBatch.t
t/db_dependent/api/v1/import_batch_profiles.t
15. Sign off

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


More information about the Koha-bugs mailing list