@@ -, +, @@ --- installer/data/mysql/atomicupdate/add_draft_record_batch.sql | 1 - .../data/mysql/atomicupdate/bug_20678_save_draft_records.sql | 3 +++ koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 1 + .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 10 ++++++---- 4 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/add_draft_record_batch.sql create mode 100644 installer/data/mysql/atomicupdate/bug_20678_save_draft_records.sql --- a/installer/data/mysql/atomicupdate/add_draft_record_batch.sql +++ a/installer/data/mysql/atomicupdate/add_draft_record_batch.sql @@ -1, +0,0 @@ -INSERT INTO import_batches (import_batch_id,record_type,file_name,comments) VALUES (1, 'biblio', 'Draft record', 'Draft MARC records created in the addbiblio.pl file but not saved to the Koha catalog'); --- a/installer/data/mysql/atomicupdate/bug_20678_save_draft_records.sql +++ a/installer/data/mysql/atomicupdate/bug_20678_save_draft_records.sql @@ -0,0 +1,3 @@ +INSERT INTO import_batches (import_batch_id,record_type,file_name,comments) VALUES (1, 'biblio', 'Draft record', 'Draft MARC records created in the addbiblio.pl file but not saved to the Koha catalog'); +INSERT INTO permissions (module_bit, code, description) VALUES (9, 'commit_MARC_records_to_catalog', 'Commit MARC records to the catalog. If not enabled then a patron will only be able to create draft records if other editcatalogue subpermissions are enabled'); +INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('EnableDraftRecords', 1, NULL, 'IF enabled staff and catalogers will be able to save records to the reservoir as a draft rather than to the catalog. Also the link to the draft records interface in the Cataloguing module will be visible', ''YesNo'); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -43,6 +43,7 @@ [%- CASE 'edit_items' -%]Edit items [%- CASE 'edit_items_restricted' -%]Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required) [%- CASE 'fast_cataloging' -%]Fast cataloging + [%- CASE 'commit_MARC_records_to_catalog' -%]Commit MARC records to the catalog. If not enabled then a patron will only be able to create draft records if other editcatalogue subpermissions are enabled [%- CASE 'remaining_permissions' -%]Remaining permissions for managing fines and fees [%- CASE 'writeoff' -%]Write off fines and fees [%- CASE 'budget_add_del' -%]Add and delete budgets (but can't modify budgets) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -467,14 +467,16 @@ function Changefwk() { [% ELSE %]
- +
--