Lines 1-4
Link Here
|
1 |
[% SET footerjs = 1 %] |
1 |
[% SET footerjs = 1 %] |
|
|
2 |
[% USE raw %] |
3 |
[% USE To %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
<title>Koha › Cataloging › 4XX plugin</title> |
5 |
<title>Koha › Cataloging › 4XX plugin</title> |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 167-221
Link Here
|
167 |
var subfield = subfields[i+1]; |
169 |
var subfield = subfields[i+1]; |
168 |
|
170 |
|
169 |
if(code.value == '9'){ |
171 |
if(code.value == '9'){ |
170 |
subfield.value = "[% subfield_value_9 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
172 |
subfield.value = "[% To.json( subfield_value_9 ) | $raw ]"; |
171 |
} |
173 |
} |
172 |
if(code.value == '0'){ |
174 |
if(code.value == '0'){ |
173 |
subfield.value = "[% subfield_value_0 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
175 |
subfield.value = "[% To.json( subfield_value_0 ) | $raw ]"; |
174 |
} |
176 |
} |
175 |
if(code.value == 'a'){ |
177 |
if(code.value == 'a'){ |
176 |
subfield.value = "[% subfield_value_a |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
178 |
subfield.value = "[% To.json( subfield_value_a ) | $raw ]"; |
177 |
} |
179 |
} |
178 |
if(code.value == 'c'){ |
180 |
if(code.value == 'c'){ |
179 |
subfield.value = "[% subfield_value_c |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
181 |
subfield.value = "[% To.json( subfield_value_c ) | $raw ]"; |
180 |
} |
182 |
} |
181 |
if(code.value == 'd'){ |
183 |
if(code.value == 'd'){ |
182 |
subfield.value = "[% subfield_value_d |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
184 |
subfield.value = "[% To.json( subfield_value_d ) | $raw ]"; |
183 |
} |
185 |
} |
184 |
if(code.value == 'e'){ |
186 |
if(code.value == 'e'){ |
185 |
subfield.value = "[% subfield_value_e |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
187 |
subfield.value = "[% To.json( subfield_value_e ) | $raw ]"; |
186 |
} |
188 |
} |
187 |
if(code.value == 'h'){ |
189 |
if(code.value == 'h'){ |
188 |
subfield.value = "[% subfield_value_h |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
190 |
subfield.value = "[% To.json( subfield_value_h ) | $raw ]"; |
189 |
} |
191 |
} |
190 |
if(code.value == 'i'){ |
192 |
if(code.value == 'i'){ |
191 |
subfield.value = "[% subfield_value_i |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
193 |
subfield.value = "[% To.json( subfield_value_i ) | $raw ]"; |
192 |
} |
194 |
} |
193 |
if(code.value == 'l'){ |
195 |
if(code.value == 'l'){ |
194 |
subfield.value = "[% subfield_value_l |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
196 |
subfield.value = "[% To.json( subfield_value_l ) | $raw ]"; |
195 |
} |
197 |
} |
196 |
if(code.value == 'n'){ |
198 |
if(code.value == 'n'){ |
197 |
subfield.value = "[% subfield_value_n |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
199 |
subfield.value = "[% To.json( subfield_value_n ) | $raw ]"; |
198 |
} |
200 |
} |
199 |
if(code.value == 'o'){ |
201 |
if(code.value == 'o'){ |
200 |
subfield.value = "[% subfield_value_o |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
202 |
subfield.value = "[% To.json( subfield_value_o ) | $raw ]"; |
201 |
} |
203 |
} |
202 |
if(code.value == 'p'){ |
204 |
if(code.value == 'p'){ |
203 |
subfield.value = "[% subfield_value_p |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
205 |
subfield.value = "[% To.json( subfield_value_p ) | $raw ]"; |
204 |
} |
206 |
} |
205 |
if(code.value == 't'){ |
207 |
if(code.value == 't'){ |
206 |
subfield.value = "[% subfield_value_t |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
208 |
subfield.value = "[% To.json( subfield_value_t ) | $raw ]"; |
207 |
} |
209 |
} |
208 |
if(code.value == 'u'){ |
210 |
if(code.value == 'u'){ |
209 |
subfield.value = "[% subfield_value_u |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
211 |
subfield.value = "[% To.json( subfield_value_u ) | $raw ]"; |
210 |
} |
212 |
} |
211 |
if(code.value == 'v'){ |
213 |
if(code.value == 'v'){ |
212 |
subfield.value = "[% subfield_value_v |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
214 |
subfield.value = "[% To.json( subfield_value_v ) | $raw ]"; |
213 |
} |
215 |
} |
214 |
if(code.value == 'x'){ |
216 |
if(code.value == 'x'){ |
215 |
subfield.value = "[% subfield_value_x |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
217 |
subfield.value = "[% To.json( subfield_value_x ) | $raw ]"; |
216 |
} |
218 |
} |
217 |
if(code.value == 'y'){ |
219 |
if(code.value == 'y'){ |
218 |
subfield.value = "[% subfield_value_y |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
220 |
subfield.value = "[% To.json( subfield_value_y ) | $raw ]"; |
219 |
} |
221 |
} |
220 |
} |
222 |
} |
221 |
} |
223 |
} |
222 |
- |
|
|