View | Details | Raw Unified | Return to bug 20678
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/add_draft_record_batch.sql (-1 lines)
Line 1 Link Here
1
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 (+3 lines)
Line 0 Link Here
1
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');
2
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');
3
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 (+1 lines)
Lines 43-48 Link Here
43
    [%- CASE 'edit_items' -%]<span>Edit items</span>
43
    [%- CASE 'edit_items' -%]<span>Edit items</span>
44
    [%- CASE 'edit_items_restricted' -%]<span>Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)</span>
44
    [%- CASE 'edit_items_restricted' -%]<span>Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)</span>
45
    [%- CASE 'fast_cataloging' -%]<span>Fast cataloging</span>
45
    [%- CASE 'fast_cataloging' -%]<span>Fast cataloging</span>
46
    [%- CASE 'commit_MARC_records_to_catalog' -%]<span>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</span>
46
    [%- CASE 'remaining_permissions' -%]<span>Remaining permissions for managing fines and fees</span>
47
    [%- CASE 'remaining_permissions' -%]<span>Remaining permissions for managing fines and fees</span>
47
    [%- CASE 'writeoff' -%]<span>Write off fines and fees</span>
48
    [%- CASE 'writeoff' -%]<span>Write off fines and fees</span>
48
    [%- CASE 'budget_add_del' -%]<span>Add and delete budgets (but can't modify budgets)</span>
49
    [%- CASE 'budget_add_del' -%]<span>Add and delete budgets (but can't modify budgets)</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-5 / +6 lines)
Lines 467-480 function Changefwk() { Link Here
467
        [% ELSE %]
467
        [% ELSE %]
468
            <!-- Not using fast cataloging - Display split menu -->
468
            <!-- Not using fast cataloging - Display split menu -->
469
            <div class="btn-group">
469
            <div class="btn-group">
470
                <button class="btn btn-default btn-sm" id="saverecord"><i class="fa fa-save"></i> Save</button>
470
                <button class="btn btn-default btn-sm" id="saverecord"><i class="fa fa-save"></i> Save </button>
471
                <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
471
                <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
472
                <span class="caret"></span>
472
                <span class="caret"></span>
473
                </button>
473
                </button>
474
                <ul class="dropdown-menu">
474
                <ul class="dropdown-menu">
475
                    <li><a id="saveandview" href="#">Save and view record</a></li>
475
                    [% IF CAN_user_editcatalogue_commit_MARC_records_to_catalog %]
476
                    <li><a id="saveanditems" href="#">Save and edit items</a></li>
476
                        <li><a id="saveandview" href="#">Save and view record</a></li>
477
                    <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
477
                        <li><a id="saveanditems" href="#">Save and edit items</a></li>
478
                        <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
479
                    [% END %]
478
                    <li><a id="previewrecord" name="previewrecord" href="#">Save without cataloging</a></li>
480
                    <li><a id="previewrecord" name="previewrecord" href="#">Save without cataloging</a></li>
479
                </ul>
481
                </ul>
480
            </div>
482
            </div>
481
- 

Return to bug 20678