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

(-)a/installer/data/mysql/atomicupdate/bug_12145_-_add_LockMoveUpButtons_syspref.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES ('LockMoveUpButtons', 0, NULL, "Lock and unlock the 'Move up' buttons in the MARC editor.", 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 246-251 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
246
('LocalHoldsPriority',  '0', NULL,  'Enables the LocalHoldsPriority feature',  'YesNo'),
246
('LocalHoldsPriority',  '0', NULL,  'Enables the LocalHoldsPriority feature',  'YesNo'),
247
('LocalHoldsPriorityItemControl',  'holdingbranch',  'holdingbranch|homebranch',  'decides if the feature operates using the item''s home or holding library.',  'Choice'),
247
('LocalHoldsPriorityItemControl',  'holdingbranch',  'holdingbranch|homebranch',  'decides if the feature operates using the item''s home or holding library.',  'Choice'),
248
('LocalHoldsPriorityPatronControl',  'PickupLibrary',  'HomeLibrary|PickupLibrary',  'decides if the feature operates using the library set as the patron''s home library, or the library set as the pickup library for the given hold.',  'Choice'),
248
('LocalHoldsPriorityPatronControl',  'PickupLibrary',  'HomeLibrary|PickupLibrary',  'decides if the feature operates using the library set as the patron''s home library, or the library set as the pickup library for the given hold.',  'Choice'),
249
('LockMoveUpButtons', 0, NULL, "Lock and unlock the 'Move up' buttons in the MARC editor.", 'YesNo'),
249
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
250
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
250
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
251
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
251
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
252
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+6 lines)
Lines 2-7 Cataloging: Link Here
2
# broken, omitted: marc
2
# broken, omitted: marc
3
    Interface:
3
    Interface:
4
        -
4
        -
5
            - pref: LockMoveUpButtons
6
              choices:
7
                  yes: Lock
8
                  no: "Don't lock"
9
            - "the 'Move up' buttons in the MARC editor."
10
        -
5
            - Use
11
            - Use
6
            - pref: DefaultClassificationSource
12
            - pref: DefaultClassificationSource
7
              choices: class-sources
13
              choices: class-sources
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-1 / +27 lines)
Lines 18-23 Link Here
18
        $("#loading").hide();
18
        $("#loading").hide();
19
    });
19
    });
20
	 $(document).ready(function() {
20
	 $(document).ready(function() {
21
        var showButtons = true;
22
        [% IF Koha.Preference('LockMoveUpButtons') %]
23
            showButtons = false;
24
        [% ELSE %]
25
            showButtons = true;
26
        [% END %]
27
        toggleMoveUpButtons(showButtons);
28
        $("#lockMoveUpButtons").click(function(){
29
            if ( showButtons == true ) {
30
                showButtons = false;
31
            } else {
32
                showButtons = true;
33
            }
34
            toggleMoveUpButtons(showButtons);
35
        });
36
21
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
37
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
22
			$("#"+ui.panel.id+" input:eq(0)").focus();
38
			$("#"+ui.panel.id+" input:eq(0)").focus();
23
		});
39
		});
Lines 226-231 function toggleMARCTagLinks(flag){ Link Here
226
    }
242
    }
227
}
243
}
228
244
245
function toggleMoveUpButtons(flag){
246
    if( flag === true ){
247
        $(".buttonUp").show();
248
        $("#lockMoveUpButtons i").removeClass('fa-check-square-o').addClass('fa-square-o');
249
    } else {
250
        $(".buttonUp").hide();
251
        $("#lockMoveUpButtons i").addClass('fa-check-square-o').removeClass('fa-square-o');
252
    }
253
}
254
229
/**
255
/**
230
 * check if mandatory subfields are written
256
 * check if mandatory subfields are written
231
 */
257
 */
Lines 489-494 function Changefwk() { Link Here
489
                    <a href="#" id="marcTagsSelect"><i class="fa fa-check-square-o"></i> Show tags</a>
515
                    <a href="#" id="marcTagsSelect"><i class="fa fa-check-square-o"></i> Show tags</a>
490
                </li>
516
                </li>
491
            [% END %]
517
            [% END %]
518
            <li><a href="#" id="lockMoveUpButtons"><i class="fa fa-square-o"></i> Lock subfield positions</a></li>
492
            <li class="divider"></li>
519
            <li class="divider"></li>
493
            <li class="nav-header">Change framework</li>
520
            <li class="nav-header">Change framework</li>
494
            <li>
521
            <li>
495
- 

Return to bug 12145