Lines 19-24
Link Here
|
19 |
[% MACRO jsinclude BLOCK %] |
19 |
[% MACRO jsinclude BLOCK %] |
20 |
<script type="text/javascript"> |
20 |
<script type="text/javascript"> |
21 |
$(document).ready(function(){ |
21 |
$(document).ready(function(){ |
|
|
22 |
[% IF tag_number == 'rancor' %] |
23 |
function RancorReplaceField( new_text ){ |
24 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
25 |
cur_field.setText(new_text); |
26 |
return true; |
27 |
} |
28 |
[% IF ( clear ) %] |
29 |
var new_line = ""; |
30 |
[% ELSE %] |
31 |
var new_line = " |
32 |
[%- FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP -%]‡ |
33 |
[%- SUBFIELD_LOO.marc_subfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r ') -%] |
34 |
[%- FOREACH marc_value IN SUBFIELD_LOO.marc_values -%] |
35 |
[%- marc_value |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') -%] |
36 |
[%- END -%] |
37 |
[%- END -%]‡9[% authid %]"; |
38 |
[% END %] |
39 |
RancorReplaceField( new_line ); |
40 |
[% ELSE %] |
22 |
var index_start = "[% index %]"; |
41 |
var index_start = "[% index %]"; |
23 |
var whichfield; |
42 |
var whichfield; |
24 |
try { |
43 |
try { |
Lines 88-100
Link Here
|
88 |
} |
107 |
} |
89 |
|
108 |
|
90 |
[% UNLESS ( clear ) %] |
109 |
[% UNLESS ( clear ) %] |
91 |
[% FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP %] |
110 |
[% FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP %] |
92 |
SetSubfieldValues( |
111 |
SetSubfieldValues( |
93 |
"[% tag_number |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% SUBFIELD_LOO.marc_subfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]" |
112 |
"[% tag_number |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %][% SUBFIELD_LOO.marc_subfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]" |
94 |
[% FOREACH marc_value IN SUBFIELD_LOO.marc_values %] |
113 |
[% FOREACH marc_value IN SUBFIELD_LOO.marc_values %] |
95 |
,"[% marc_value |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]" |
114 |
,"[% marc_value |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]" |
|
|
115 |
[% END %] |
116 |
); |
96 |
[% END %] |
117 |
[% END %] |
97 |
); |
|
|
98 |
[% END %] |
118 |
[% END %] |
99 |
var indicators = field_start.getElementsByClassName('indicator flat'); |
119 |
var indicators = field_start.getElementsByClassName('indicator flat'); |
100 |
[% IF update_ind1 %] |
120 |
[% IF update_ind1 %] |
Lines 124-129
Link Here
|
124 |
[% END %] |
144 |
[% END %] |
125 |
} |
145 |
} |
126 |
} |
146 |
} |
|
|
147 |
[% END %] |
127 |
|
148 |
|
128 |
opener.close(); |
149 |
opener.close(); |
129 |
window.close(); |
150 |
window.close(); |