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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt (-1 / +2 lines)
Lines 22-27 Link Here
22
            [% IF rancor %]
22
            [% IF rancor %]
23
                function RancorReplaceField( new_text, ind_1, ind_2 ){
23
                function RancorReplaceField( new_text, ind_1, ind_2 ){
24
                    var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField();
24
                    var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField();
25
                    // The new_text is entity-encoded and we want decoded text
26
                    new_text = new DOMParser().parseFromString(new_text, 'text/html').body.innerText;
25
                    cur_field.setText(new_text);
27
                    cur_field.setText(new_text);
26
                    [% IF update_ind1 %]cur_field.setIndicator1(ind_1);[% END %]
28
                    [% IF update_ind1 %]cur_field.setIndicator1(ind_1);[% END %]
27
                    [% IF update_ind2 %]cur_field.setIndicator2(ind_2);[% END %]
29
                    [% IF update_ind2 %]cur_field.setIndicator2(ind_2);[% END %]
28
- 

Return to bug 33144