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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchedit.tt (-11 / +14 lines)
Lines 19-33 Link Here
19
		$("#subfieldchoice option").remove();
19
		$("#subfieldchoice option").remove();
20
20
21
		    var subfield = $('#subfieldchoice');
21
		    var subfield = $('#subfieldchoice');
22
			$("<option>").attr("value", "@")
22
            if (data.length >0)  {
23
                                 .text( _('Whole field'))
24
                                 .appendTo('#subfieldchoice');
25
                for( var i=0; i < data.length ; i++){
23
                for( var i=0; i < data.length ; i++){
26
			$("<option>").attr("value", data[i].subfield)
24
                    $("<option>").attr("value", data[i].subfield)
27
                                 .text(data[i].subfield)
25
                         .text(data[i].subfield)
28
                                 .appendTo('#subfieldchoice');
26
                         .appendTo('#subfieldchoice');
29
                }
27
                }
30
                subfieldChanged();
28
            } else {
29
                $("<option>").attr("value", "@")
30
                     .text( _('Whole field'))
31
                     .appendTo('#subfieldchoice');
32
            }
33
            subfieldChanged();
31
            }
34
            }
32
        });
35
        });
33
     }
36
     }
Lines 70-78 Link Here
70
73
71
     function addRule(){
74
     function addRule(){
72
        var actionlabel = {
75
        var actionlabel = {
73
                mod: _('Modify'),
76
                mod: _('Modify subfield'),
74
                del: _('Delete'),
77
                del: _('Delete subfield'),
75
                add: _('Create')
78
                add: _('Create subfield'),
79
                addfield: _('Create field and subfield')
76
                };
80
                };
77
        var repvallabel  = $('#repvalchoice :selected').text()  || $("#repvalchoice").val();
81
        var repvallabel  = $('#repvalchoice :selected').text()  || $("#repvalchoice").val();
78
82
79
- 

Return to bug 5725