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

--- Comment #1 from Jacob O'Mara <[email protected]> ---
Created attachment 206027
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206027&action=edit
Bug 42625: Add record source library group exemption schema

Test plan:
 1. Apply all patches, run updatedatabase.pl, yarn build and
    yarn api:bundle, then restart Plack
 2. Administration > Library groups > New group. Enter a title, check
    "Use for record source editing", save, then add library A to the
    group with "Add library"
 3. Administration > Record sources > New record source. Enter a name,
    leave "Can be edited" unchecked, select the group under "Editable
    by library groups" and save. Edit it again: the group is selected
 4. Cataloging > MARC modification templates > New template. On the
    template page pick the source under "Set record source" and save.
    Do not add an action
 5. Cataloging > Batch record modification > "Enter a list of record
    numbers". Enter a biblionumber, pick the template, continue and
    modify. The job reports success and the record's detail page shows
    "Record source: <name>" with a lock icon
 6. Log in as a cataloguer from library B with edit_catalogue and
    records_batchmod but not edit_locked_records. On the record,
    Edit > Edit record is disabled with "This record is locked". Run
    step 5 again: the job reports "Its record source is locked and you
    do not have permission to edit it"
 7. Log in as a cataloguer from library A with the same permissions.
    Edit > Edit record opens the editor
 8. Still as this cataloguer, open the template from step 4. The
    "Set record source" form is replaced by read only text that names
    the source and the "Set record source" permission
 9. As superlibrarian, edit the library group, uncheck "Use for record
    source editing" and click Update. Cancel the confirmation: the
    modal stays open. Click Update again and confirm. Edit the record
    source: no group is selected
10. Create a second, editable record source and a template that sets
    it. Batch modify the record from step 5 with it. The detail page
    shows the second source without a lock icon
11. Cataloging > Stage records for import. Upload a MARC file, pick the
    template from step 4 and stage. Open the job, click "View batch"
    and import the batch. The imported record shows the template's
    source
12. Start two Connexion daemons (misc/bin/connexion_import_daemon.pl)
    with import_mode: direct, different ports and
    marc_modification_template_id set to the two templates. Send a
    compatible marc record to each port. Each new record
    shows its daemon's source and Manage staged records lists one
    webservice batch per daemon
13. Run: prove t/db_dependent/Koha/RecordSource.t
    t/db_dependent/Koha/Patron.t t/db_dependent/Koha/Biblio.t
    t/db_dependent/LibraryGroups.t
    t/db_dependent/Koha/MarcModificationTemplates.t
    t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t
    t/db_dependent/ImportBatch.t t/db_dependent/api/v1/library_groups.t
    t/db_dependent/api/v1/record_sources.t
14. Run: yarn cypress run --spec

t/cypress/integration/Admin/RecordSources_spec.ts,t/cypress/integration/Tools/MarcModificationTemplateRecordSource_spec.ts

-- 
You are receiving this mail because:
You are the assignee for the bug.
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