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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +14 lines)
Lines 39-44 Link Here
39
39
40
        </select>
40
        </select>
41
        &emsp; <span id="anyone_remark" style="display:none;color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
41
        &emsp; <span id="anyone_remark" style="display:none;color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
42
        &emsp; <span id="staff_remark" style="display:none;color:red;">The Staff only permission has no actual effect while this list is strictly private.</span>
42
    </li>
43
    </li>
43
[% END %]
44
[% END %]
44
</head>
45
</head>
Lines 811-826 Link Here
811
812
812
            if( perms < 2 ) {
813
            if( perms < 2 ) {
813
                $("#anyone_remark").hide();
814
                $("#anyone_remark").hide();
815
                $("#staff_remark").hide();
814
            } else if( category==1 ) {
816
            } else if( category==1 ) {
815
                // If we move to Private (without shares), show Anyone remark
817
                // If we move to Private (without shares), show either:
818
                // Anyone remark if Anyone can change the list
819
                // Or Staff remark is Staff only can change the list
816
                // Note: the number of shares is not tested real-time
820
                // Note: the number of shares is not tested real-time
817
                [% IF !shelf.is_shared %]
821
                [% IF !shelf.is_shared %]
818
                    $("#anyone_remark").show();
822
                    if( perms== 2) {
823
                        $("#anyone_remark").show();
824
                        $("#staff_remark").hide();
825
                    } else if ( perms==3 ) {
826
                        $("#anyone_remark").hide();
827
                        $("#staff_remark").show();
828
                    }
819
                [% ELSE %]
829
                [% ELSE %]
820
                    $("#anyone_remark").hide();
830
                    $("#anyone_remark").hide();
831
                    $("#staff_remark").hide();
821
                [% END %]
832
                [% END %]
822
            } else { // category==2
833
            } else { // category==2
823
                $("#anyone_remark").hide();
834
                $("#anyone_remark").hide();
835
                $("#staff_remark").hide();
824
            }
836
            }
825
        }
837
        }
826
        [% IF op == 'view' %]
838
        [% IF op == 'view' %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-3 / +13 lines)
Lines 53-58 Link Here
53
53
54
        </select>
54
        </select>
55
        &emsp; <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span>
55
        &emsp; <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span>
56
        &emsp; <span id="staff_remark" style="display:none;color:red;">The "Staff only" permission has no actual effect while this list is strictly private.</span>
56
    </li>
57
    </li>
57
[% END %]
58
[% END %]
58
59
Lines 1102-1117 function AdjustRemark() { Link Here
1102
1103
1103
    if( perms < 2 ) {
1104
    if( perms < 2 ) {
1104
        $("#anyone_remark").hide();
1105
        $("#anyone_remark").hide();
1106
        $("#staff_remark".hide();
1105
    } else if( category==1 ) {
1107
    } else if( category==1 ) {
1106
        // If we move to Private (without shares), show Anyone remark
1108
        // If we move to Private (without shares), show one of the following:
1109
        // Anyone remark, if anyone can change the list
1110
        // Staff remark, if only Staff can change the list
1107
        // Note: the number of shares is not tested real-time
1111
        // Note: the number of shares is not tested real-time
1108
        [% IF !shelf.is_shared %]
1112
        [% IF !shelf.is_shared %]
1109
            $("#anyone_remark").show();
1113
            if ( perms==2 ) {
1114
                $("#anyone_remark").show();
1115
                $("#staff_remark").hide();
1116
            } else if ( perms==3 ) {
1117
                $("#anyone_remark").hide();
1118
                $("#staff_remark").show();
1110
        [% ELSE %]
1119
        [% ELSE %]
1111
            $("#anyone_remark").hide();
1120
            $("#anyone_remark").hide();
1121
            $("#staff_remark").hide();
1112
        [% END %]
1122
        [% END %]
1113
    } else { // category==2
1123
    } else { // category==2
1114
        $("#anyone_remark").hide();
1124
        $("#anyone_remark").hide();
1125
        $("#staff_remark").hide();
1115
    }
1126
    }
1116
}
1127
}
1117
</script>
1128
</script>
1118
- 

Return to bug 26346