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

--- Comment #18 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 210713
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210713&action=edit
Bug 44011: Add record source to MARC modification templates

Test plan:
 1. Apply all patches, run updatedatabase.pl and restart Plack
 2. Administration > Record sources. Create source L with "Can be
    edited" unchecked and source E with "Can be edited" checked
 3. Cataloging > MARC modification templates > New template. On the
    template page pick source L under "Set record source" and save.
    Do not add an action. Create a second template that sets source E
 4. Cataloging > Batch record modification > "Enter a list of record
    numbers". Enter a biblionumber, pick the first template, continue
    and modify. The job reports success and the record's detail page
    shows "Record source: L" with a lock icon
 5. Batch modify the same record with the second template. The detail
    page shows source E without a lock icon
 6. Log in as a cataloguer with edit_catalogue, records_batchmod and
    marc_modification_templates but not set_record_sources. Open the
    first template: the "Set record source" form is replaced by read
    only text that names the source and the "Set record source"
    permission. In Batch record modification the two templates are
    not listed
 7. As superlibrarian, create a new template with "Duplicate a
    template" set to the first template. The copy sets source L
 8. Set MarcModificationTemplatesLog to Log. Create, edit and delete
    a template. Tools > Log viewer, module "MARC modification
    templates" lists the three actions. With the preference set to
    Don't log the module is flagged "Log not enabled"
 9. Run: prove t/db_dependent/Koha/MarcModificationTemplates.t
    t/db_dependent/MarcModificationTemplates.t
    t/db_dependent/Koha/BackgroundJob/BatchUpdateBiblio.t
10. Run: yarn cypress run --spec
    t/cypress/integration/Tools/MarcModificationTemplateRecordSource_spec.ts

Signed-off-by: Brendan Lawlor <[email protected]>
Sponsored-by: CLAMS
Signed-off-by: Andrew Fuerste Henry <[email protected]>

-- 
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