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

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (+6 lines)
Lines 1914-1916 ul.budget_hierarchy li:first-child:after { Link Here
1914
.holdcount { font-size : 105%; line-height : 200%; }
1914
.holdcount { font-size : 105%; line-height : 200%; }
1915
.holdcount a { border : 1px solid #a4bedd; background-color : #e4ecf5; font-weight : bold; -moz-border-radius: 4px; padding : .1em .4em; text-decoration : none; }
1915
.holdcount a { border : 1px solid #a4bedd; background-color : #e4ecf5; font-weight : bold; -moz-border-radius: 4px; padding : .1em .4em; text-decoration : none; }
1916
.holdcount a:hover { background-color : #ebeff7; }
1916
.holdcount a:hover { background-color : #ebeff7; }
1917
.container {
1918
	border : 1px solid #EEE;
1919
	padding : 1em;
1920
	margin : 1em 0;
1921
}
1922
fieldset.rows+h3 {clear:both;padding-top:.5em;}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tmpl (-140 / +134 lines)
Lines 20-94 var maxMatchPoint = <!-- TMPL_VAR name="max_matchpoint" -->; Link Here
20
var maxMatchCheck = <!-- TMPL_VAR name="max_matchcheck" -->;
20
var maxMatchCheck = <!-- TMPL_VAR name="max_matchcheck" -->;
21
21
22
function InsertMatchpoint(loc, index) {
22
function InsertMatchpoint(loc, index) {
23
    var original= document.getElementById(index);
23
    var original= $("#"+index);
24
    var clone = original.cloneNode(true);
24
    var clone = original.clone();
25
    clone.style.display = 'block';
25
    clone.show();
26
26
27
    // update IDs and form names
27
    // update IDs and form names
28
    maxMatchPoint++;
28
    maxMatchPoint++;
29
    clone.setAttribute('id', 'mp_' + maxMatchPoint);
29
    clone.attr('id', 'mp_' + maxMatchPoint);
30
    var divs = clone.getElementsByTagName('div');
30
    $("span.counter",clone).html(maxMatchPoint);
31
    for (var i = 0; i < divs.length; i++) {
31
    $("label",clone).each(function(){
32
        var s = divs[i].getAttribute('id');
32
      var s = $(this).attr("for");
33
        if (s.match(/mp_num/)) {
33
        if (s.match(/mp_num/)) {
34
            divs[i].setAttribute('id', s.replace(/mp_num/, 'mp_' + maxMatchPoint));
34
            $(this).attr("for",s.replace(/mp_num/, 'mp_' + maxMatchPoint));
35
        }
35
        }
36
    }
36
    });
37
    var inputs = clone.getElementsByTagName('input');
37
38
    for (var i = 0; i < inputs.length; i++) {
38
    $("div",clone).each(function(){
39
        var s = inputs[i].getAttribute('id');
39
      var s = $(this).attr("id");
40
        if (s.match(/mp_num/)) {
40
        if (s.match(/mp_num/)) {
41
            inputs[i].setAttribute('id', s);
41
            $(this).attr("id",s.replace(/mp_num/, 'mp_' + maxMatchPoint));
42
            inputs[i].setAttribute('id', s.replace(/mp_num/, 'mp_' + maxMatchPoint));
43
        }
42
        }
44
        var s = inputs[i].getAttribute('name');
43
    });
45
        if (s.match(/mp_num/)) {
44
    $("input",clone).each(function(){
46
            inputs[i].setAttribute('name', s.replace(/mp_num/, 'mp_' + maxMatchPoint));
45
        var s = $(this).attr("id");
46
        if(s.match(/mp_num/)){
47
          $(this).attr("id",s.replace(/mp_num/, 'mp_' + maxMatchPoint));
47
        }
48
        }
48
    }
49
49
50
    loc.parentNode.parentNode.insertBefore(clone, loc.nextSibling);
50
        var s = $(this).attr("name");
51
        if(s.match(/mp_num/)){
52
          $(this).attr("name",s.replace(/mp_num/, 'mp_' + maxMatchPoint));
53
        }
54
    });
55
    $("#match_points").append(clone);
51
}
56
}
52
57
53
function InsertMatchcheck(loc, index) {
58
function InsertMatchcheck(loc, index) {
54
    var original= document.getElementById(index);
59
    var original= $("#"+index);
55
    var clone = original.cloneNode(true);
60
    var clone = original.clone();
56
    clone.style.display = 'block';
61
    clone.show();
57
62
58
    // update IDs and form names
63
    // update IDs and form names
59
    maxMatchCheck++;
64
    maxMatchCheck++;
60
    clone.setAttribute('id', 'mc_' + maxMatchCheck);
65
    clone.attr('id', 'mc_' + maxMatchCheck);
61
    var divs = clone.getElementsByTagName('div');
66
    $("span.counter",clone).html(maxMatchCheck);
62
    for (var i = 0; i < divs.length; i++) {
67
    $("label",clone).each(function(){
63
        var s = divs[i].getAttribute('id');
68
      var s = $(this).attr("for");
64
        if (s.match(/mc_num/)) {
69
        if (s.match(/mc_num/)) {
65
            divs[i].setAttribute('id', s.replace(/mc_num/, 'mc_' + maxMatchCheck));
70
            $(this).attr("for",s.replace(/mc_num/, 'mc_' + maxMatchCheck));
66
        }
71
        }
67
    }
72
    });
68
    var inputs = clone.getElementsByTagName('input');
73
69
    for (var i = 0; i < inputs.length; i++) {
74
    $("div",clone).each(function(){
70
        var s = inputs[i].getAttribute('id');
75
      var s = $(this).attr("id");
71
        if (s.match(/mc_num/)) {
76
        if (s.match(/mc_num/)) {
72
            inputs[i].setAttribute('id', s);
77
            $(this).attr("id",s.replace(/mc_num/, 'mc_' + maxMatchCheck));
73
            inputs[i].setAttribute('id', s.replace(/mc_num/, 'mc_' + maxMatchCheck));
74
        }
78
        }
75
        var s = inputs[i].getAttribute('name');
79
    });
76
        if (s.match(/mc_num/)) {
80
    $("input",clone).each(function(){
77
            inputs[i].setAttribute('name', s.replace(/mc_num/, 'mc_' + maxMatchCheck));
81
        var s = $(this).attr("id");
82
        if(s.match(/mc_num/)){
83
          $(this).attr("id",s.replace(/mc_num/, 'mc_' + maxMatchCheck));
78
        }
84
        }
79
    }
80
85
81
    loc.parentNode.parentNode.insertBefore(clone, loc.nextSibling);
86
        var s = $(this).attr("name");
87
        if(s.match(/mc_num/)){
88
          $(this).attr("name",s.replace(/mc_num/, 'mc_' + maxMatchCheck));
89
        }
90
    });
91
    $("#match_checks").append(clone);
82
}
92
}
83
93
84
function DeleteMatchpoint(loc) {
94
function DeleteMatchpoint(loc) {
85
    var parentdiv = loc.parentNode.parentNode.parentNode;
95
    $(loc).parent().parent().parent().remove();
86
    parentdiv.parentNode.removeChild(parentdiv);
96
    if($(".matchgroup",$("#match_points")).length == 0){
97
      maxMatchPoint = 0;
98
      $("#addMatchPoint").show();
99
    }
87
}
100
}
88
101
89
function DeleteMatchcheck(loc) {
102
function DeleteMatchcheck(loc) {
90
    var parentdiv = loc.parentNode.parentNode.parentNode;
103
    $(loc).parent().parent().parent().remove();
91
    parentdiv.parentNode.removeChild(parentdiv);
104
    if($(".matchgroup",$("#match_checks")).length == 0){
105
      maxMatchCheck = 0;
106
      $("#addMatchCheck").show();
107
    }
92
}
108
}
93
109
94
function DoCancel(f) {
110
function DoCancel(f) {
Lines 145-151 function CheckRuleForm(f) { Link Here
145
//]]>
161
//]]>
146
</script>
162
</script>
147
<style type="text/css">
163
<style type="text/css">
164
  fieldset.rows fieldset.rows { border-width : 0; }
165
  fieldset.rows fieldset.rows fieldset.rows { border-width : 1px; }
166
  fieldset, fieldset.rows { width : 90%; padding: .3em .6em .3em .6em; }
148
	fieldset.rows fieldset {font-size:100%;}
167
	fieldset.rows fieldset {font-size:100%;}
168
  div.matchgroup { border:1px solid #DDD; border-left-width: 15px; padding:.4em; margin-bottom:.6em;}
149
</style>
169
</style>
150
</head>
170
</head>
151
<body>
171
<body>
Lines 188-214 function CheckRuleForm(f) { Link Here
188
            <input type="hidden" name="code" value="<!-- TMPL_VAR name="code" -->" />
208
            <input type="hidden" name="code" value="<!-- TMPL_VAR name="code" -->" />
189
            <!-- TMPL_VAR name="code" -->
209
            <!-- TMPL_VAR name="code" -->
190
          <!-- TMPL_ELSE -->
210
          <!-- TMPL_ELSE -->
191
		  <label for="code">Matching rule code: </label>
211
		  <label for="code" class="required">Matching rule code: </label>
192
            <input type="text" id="code" name="code"  size="10" maxlength="10" />
212
            <input type="text" id="code" name="code"  size="10" maxlength="10" /> <span class="required">Required</span>
193
          <!-- /TMPL_IF -->
213
          <!-- /TMPL_IF -->
194
       </li>
214
       </li>
195
       <li><label for="description">Description: </label>
215
       <li><label for="description" class="required">Description: </label>
196
           <input type="text" id="description" name="description" size="50" maxlength="250" 
216
           <input type="text" id="description" name="description" size="50" maxlength="250" 
197
                  value="<!-- TMPL_VAR name="description" escape="HTML" -->" />
217
                  value="<!-- TMPL_VAR name="description" escape="HTML" -->" /> <span class="required">Required</span>
198
       </li>
218
       </li>
199
       <li><label for="description">Match threshold: </label>
219
       <li><label for="threshold" class="required">Match threshold: </label>
200
           <input type="text" id="threshold" name="threshold" size="5" maxlength="5" 
220
           <input type="text" id="threshold" name="threshold" size="5" maxlength="5" 
201
                  value="<!-- TMPL_VAR name="threshold" escape="HTML" -->" />
221
                  value="<!-- TMPL_VAR name="threshold" escape="HTML" -->" /> <span class="required">Required</span>
202
       </li>
222
       </li>
203
    </ol>
223
    </ol>
204
  </fieldset>
224
  </fieldset>
205
  <fieldset class="rows">
225
206
  <legend >Match points <a class="button" onclick="InsertMatchpoint(this, 'mp_template')">Add matchpoint</a></legend>
226
  <fieldset class="rows" id="match_points">
227
  <h4>Match points</h4>
228
  <!-- TMPL_IF name="edit_matching_rule" -->
229
  <!-- TMPL_IF NAME="matchpoints" --><p id="addMatchPoint" style="display:none;"><!-- TMPL_ELSE --><p id="addMatchPoint"><!-- /TMPL_IF --><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a></p>
230
  <!-- TMPL_ELSE --><p id="addMatchPoint" style="display:none;"><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a></p><!-- /TMPL_IF -->
207
  <!-- TMPL_IF name="edit_matching_rule" -->
231
  <!-- TMPL_IF name="edit_matching_rule" -->
208
  <!-- TMPL_LOOP name="matchpoints" -->
232
  <!-- TMPL_LOOP name="matchpoints" -->
209
  <div id="mp_<!-- TMPL_VAR name="mp_num" -->">
233
  <div id="mp_<!-- TMPL_VAR name="mp_num" -->" class="matchgroup">
210
  <fieldset class="rows">
234
  <fieldset class="rows">
211
    <legend><a class="button" onclick="DeleteMatchpoint(this)">Remove this matchpoint</a></legend>
235
    <legend>Match Point <!-- TMPL_VAR NAME="mp_num" --> | <a href="#" class="button" onclick="InsertMatchpoint('mp_<!-- TMPL_VAR NAME="mp_num" -->', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
212
    <ol>
236
    <ol>
213
      <li>
237
      <li>
214
        <label for="mp_<!-- TMPL_VAR name="mp_num" -->_search_index">Search index: </label>
238
        <label for="mp_<!-- TMPL_VAR name="mp_num" -->_search_index">Search index: </label>
Lines 224-232 function CheckRuleForm(f) { Link Here
224
               value="<!-- TMPL_VAR name="score" escape="HTML" -->" 
248
               value="<!-- TMPL_VAR name="score" escape="HTML" -->" 
225
               maxlength="5" />
249
               maxlength="5" />
226
      </li>
250
      </li>
251
      </ol>
227
      <!-- TMPL_LOOP name="components" -->
252
      <!-- TMPL_LOOP name="components" -->
228
      <div id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->">
253
      <fieldset class="rows" id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->">
229
      <fieldset class="rows">
254
      <legend>Matchpoint components</legend>
230
        <ol>
255
        <ol>
231
          <li>
256
          <li>
232
            <label for="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_tag">Tag: </label>
257
            <label for="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_tag">Tag: </label>
Lines 256-284 function CheckRuleForm(f) { Link Here
256
                   value="<!-- TMPL_VAR name="length" escape="HTML" -->"
281
                   value="<!-- TMPL_VAR name="length" escape="HTML" -->"
257
                   size="5" maxlength="5" />
282
                   size="5" maxlength="5" />
258
          </li>
283
          </li>
259
          <!-- TMPL_LOOP name="norms" -->
284
              <!-- TMPL_LOOP name="norms" -->
260
          <div id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num"-->">
285
              <li id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num"-->">
261
              <li>
286
                <label for="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n__<!-- TMPL_VAR name="norm_num"-->_norm">Normalization rule: </label>
262
                <label for="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n__<!-- TMPL_VAR name="norm_num"-->">Normalization rule: </label>
263
                <input type="text" id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n__<!-- TMPL_VAR name="norm_num"-->_norm" 
287
                <input type="text" id="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n__<!-- TMPL_VAR name="norm_num"-->_norm" 
264
                       name="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num"-->_norm" 
288
                       name="mp_<!-- TMPL_VAR name="mp_num" -->_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num"-->_norm" 
265
                       value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
289
                       value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
266
                       size="20" maxlength="50" />
290
                       size="20" maxlength="50" />
267
              </li>
291
              </li>
268
          </div>
292
              <!-- /TMPL_LOOP -->
269
          <!-- /TMPL_LOOP -->
270
        </ol>
293
        </ol>
271
      </fieldset>
294
      </fieldset>
272
      </div>
273
      <!-- /TMPL_LOOP -->
295
      <!-- /TMPL_LOOP -->
274
    </ol>
296
      </fieldset>
297
      <br style="clear:both;" />
298
      </div>
275
  </fieldset>
299
  </fieldset>
276
  </div>
300
277
  <!-- /TMPL_LOOP -->
301
  <!-- /TMPL_LOOP -->
278
  <!-- TMPL_ELSE -->
302
  <!-- TMPL_ELSE -->
279
  <div id="mp_1">
303
  <div id="mp_1" class="matchgroup">
280
  <fieldset class="rows">
304
  <fieldset class="rows">
281
    <legend><a class="button" onclick="DeleteMatchpoint(this)">Remove this matchpoint</a></legend>
305
    <legend>Match Point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
282
    <ol>
306
    <ol>
283
      <li>
307
      <li>
284
        <label for="mp_1_search_index">Search index: </label>
308
        <label for="mp_1_search_index">Search index: </label>
Lines 289-296 function CheckRuleForm(f) { Link Here
289
        <label for="mp_1_score">Score: </label>
313
        <label for="mp_1_score">Score: </label>
290
        <input type ="text" id="mp_1_score" name="mp_1_score" size="5" maxlength="5" />
314
        <input type ="text" id="mp_1_score" name="mp_1_score" size="5" maxlength="5" />
291
      </li>
315
      </li>
292
      <div id="mp_1_c_1">
316
    </ol>
293
      <fieldset class="rows">
317
    <fieldset class="rows" id="mp_1_c_1">
318
      <legend>Matchpoint components</legend>
294
        <ol>
319
        <ol>
295
          <li>
320
          <li>
296
            <label for="mp_1_c_1_tag">Tag: </label>
321
            <label for="mp_1_c_1_tag">Tag: </label>
Lines 308-339 function CheckRuleForm(f) { Link Here
308
            <label for="mp_1_c_1_length">Length: </label>
333
            <label for="mp_1_c_1_length">Length: </label>
309
            <input type="text" id="mp_1_c_1_length" name="mp_1_c_1_length" size="5" maxlength="5" />
334
            <input type="text" id="mp_1_c_1_length" name="mp_1_c_1_length" size="5" maxlength="5" />
310
          </li>
335
          </li>
311
          <div id="mp_1_c_1_n_1">
336
            <li id="mp_1_c_1_n_1">
312
            <li>
313
              <label for="mp_1_c_1_n_1_norm">Normalization rule: </label>
337
              <label for="mp_1_c_1_n_1_norm">Normalization rule: </label>
314
              <input type="text" id="mp_1_c_1_n_1_norm" name="mp_1_c_1_n_1_norm" size="20" maxlength="50" />
338
              <input type="text" id="mp_1_c_1_n_1_norm" name="mp_1_c_1_n_1_norm" size="20" maxlength="50" />
315
            </li>
339
            </li>
316
          </div>
317
        </ol>
340
        </ol>
318
      </fieldset>
341
    </fieldset>
342
    </fieldset>
343
      <br style="clear:both;" />
319
      </div>
344
      </div>
320
    </ol>
345
321
  </fieldset>
346
  </fieldset>
322
  </div>
323
  <!-- /TMPL_IF -->
347
  <!-- /TMPL_IF -->
324
  </fieldset>
348
325
  <fieldset class="rows">
349
  <fieldset class="rows" id="match_checks">
326
  <legend >Required match checks <a class="button" onclick="InsertMatchcheck(this, 'mc_template')">Add match check</a></legend>
350
  <h4>Required match checks</h4>
351
  <!-- TMPL_IF name="edit_matching_rule" -->
352
  <!-- TMPL_IF NAME="matchchecks" --><p id="addMatchCheck" style="display:none;"><!-- TMPL_ELSE --><p id="addMatchCheck"><!-- /TMPL_IF --><a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a></p>
353
  <!-- TMPL_ELSE --><p id="addMatchCheck" style="display:none;"><a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a></p><!-- /TMPL_IF -->
327
  <!-- TMPL_IF name="edit_matching_rule" -->
354
  <!-- TMPL_IF name="edit_matching_rule" -->
328
  <!-- TMPL_LOOP name="matchchecks" -->
355
  <!-- TMPL_LOOP name="matchchecks" -->
329
  <div id="mc_<!-- TMPL_VAR name="mc_num" -->">
356
  <fieldset class="rows" id="mc_<!-- TMPL_VAR name="mc_num" -->">
330
  <fieldset class="rows">
357
    <legend>Match check <!-- TMPL_VAR NAME="mc_num" --><a href="#" class="button" onclick="InsertMatchcheck('mc_<!-- TMPL_VAR NAME="mc_num" -->', 'mc_template'); return false;">Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
331
    <legend><a class="button" onclick="DeleteMatchcheck(this)">Remove this match check</a></legend>
332
    <input type="hidden" id="mc_<!-- TMPL_VAR name="mc_num" -->_id" name="mc_<!-- TMPL_VAR name="mc_num" -->_id" value="1" />
358
    <input type="hidden" id="mc_<!-- TMPL_VAR name="mc_num" -->_id" name="mc_<!-- TMPL_VAR name="mc_num" -->_id" value="1" />
333
    <ol>
334
      <!-- TMPL_LOOP name="src_components" -->
359
      <!-- TMPL_LOOP name="src_components" -->
335
      <div id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->">
360
      <fieldset class="rows" id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->">
336
      <fieldset class="rows">
337
        <legend>Source (incoming) record check field</legend>
361
        <legend>Source (incoming) record check field</legend>
338
        <ol>
362
        <ol>
339
          <li>
363
          <li>
Lines 365-387 function CheckRuleForm(f) { Link Here
365
                   size="5" maxlength="5" />
389
                   size="5" maxlength="5" />
366
          </li>
390
          </li>
367
          <!-- TMPL_LOOP name="norms" -->
391
          <!-- TMPL_LOOP name="norms" -->
368
          <div id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->">
392
            <li id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->">
369
            <li>
370
              <label for="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm">Normalization rule: </label>
393
              <label for="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm">Normalization rule: </label>
371
              <input type="text" id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
394
              <input type="text" id="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
372
                     name="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
395
                     name="mc_<!-- TMPL_VAR name="mc_num" -->_src_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
373
                    value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
396
                    value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
374
                    size="20" maxlength="50" />
397
                    size="20" maxlength="50" />
375
            </li>
398
            </li>
376
          </div>
377
          <!-- /TMPL_LOOP -->
399
          <!-- /TMPL_LOOP -->
378
        </ol>
400
        </ol>
379
      </fieldset>
401
      </fieldset>
380
      </div>
381
      <!-- /TMPL_LOOP -->
402
      <!-- /TMPL_LOOP -->
382
      <!-- TMPL_LOOP name="tgt_components" -->
403
      <!-- TMPL_LOOP name="tgt_components" -->
383
      <div id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->">
404
      <fieldset class="rows" id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->">
384
      <fieldset class="rows">
385
        <legend>Target (database) record check field</legend>
405
        <legend>Target (database) record check field</legend>
386
        <ol>
406
        <ol>
387
          <li>
407
          <li>
Lines 413-444 function CheckRuleForm(f) { Link Here
413
                   size="5" maxlength="5" />
433
                   size="5" maxlength="5" />
414
          </li>
434
          </li>
415
          <!-- TMPL_LOOP name="norms" -->
435
          <!-- TMPL_LOOP name="norms" -->
416
          <div id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->">
436
            <li id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->">
417
            <li>
418
              <label for="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm">Normalization rule: </label>
437
              <label for="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm">Normalization rule: </label>
419
              <input type="text" id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
438
              <input type="text" id="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
420
                     name="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
439
                     name="mc_<!-- TMPL_VAR name="mc_num" -->_tgt_c_<!-- TMPL_VAR name="comp_num" -->_n_<!-- TMPL_VAR name="norm_num" -->_norm" 
421
                    value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
440
                    value="<!-- TMPL_VAR name="norm" escape="HTML" -->"
422
                    size="20" maxlength="50" />
441
                    size="20" maxlength="50" />
423
            </li>
442
            </li>
424
          </div>
425
          <!-- /TMPL_LOOP -->
443
          <!-- /TMPL_LOOP -->
426
        </ol>
444
        </ol>
427
      </fieldset>
445
      </fieldset>
428
      </div>
429
      <!-- /TMPL_LOOP -->
446
      <!-- /TMPL_LOOP -->
430
    </ol>
431
  </fieldset>
447
  </fieldset>
432
  </div>
433
  <!-- /TMPL_LOOP -->
448
  <!-- /TMPL_LOOP -->
434
  <!-- TMPL_ELSE -->
449
  <!-- TMPL_ELSE -->
435
  <div id="mc_1">
450
  <div id="mc_1" class="matchgroup">
436
  <fieldset class="rows">
451
  <fieldset class="rows">
437
    <legend><a class="button" onclick="DeleteMatchcheck(this)">Remove this match check</a></legend>
452
    <legend>Match check 1 | <a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
438
    <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
453
    <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
439
    <ol>
454
      <fieldset class="rows" id="mc_1_src_c_1">
440
      <div id="mc_1_src_c_1">
441
      <fieldset class="rows">
442
        <legend>Source (incoming) record check field</legend>
455
        <legend>Source (incoming) record check field</legend>
443
        <ol>
456
        <ol>
444
          <li>
457
          <li>
Lines 457-473 function CheckRuleForm(f) { Link Here
457
            <label for="mc_1_src_c_1_length">Length: </label>
470
            <label for="mc_1_src_c_1_length">Length: </label>
458
            <input type="text" id="mc_1_src_c_1_length" name="mc_1_src_c_1_length" size="5" maxlength="5" />
471
            <input type="text" id="mc_1_src_c_1_length" name="mc_1_src_c_1_length" size="5" maxlength="5" />
459
          </li>
472
          </li>
460
          <div id="mc_1_src_c_1_n_1">
473
            <li id="mc_1_src_c_1_n_1">
461
            <li>
462
              <label for="mc_1_src_c_1_n_1_norm">Normalization rule: </label>
474
              <label for="mc_1_src_c_1_n_1_norm">Normalization rule: </label>
463
              <input type="text" id="mc_1_src_c_1_n_1_norm" name="mc_1_src_c_1_n_1_norm" size="20" maxlength="50" />
475
              <input type="text" id="mc_1_src_c_1_n_1_norm" name="mc_1_src_c_1_n_1_norm" size="20" maxlength="50" />
464
            </li>
476
            </li>
465
          </div>
466
        </ol>
477
        </ol>
467
      </fieldset>
478
      </fieldset>
468
      </div>
479
469
      <div id="mc_1_tgt_c_1">
480
      <fieldset class="rows" id="mc_1_tgt_c_1">
470
      <fieldset class="rows">
471
        <legend>Target (database) record check field</legend>
481
        <legend>Target (database) record check field</legend>
472
        <ol>
482
        <ol>
473
          <li>
483
          <li>
Lines 486-502 function CheckRuleForm(f) { Link Here
486
            <label for="mc_1_tgt_c_1_length">Length: </label>
496
            <label for="mc_1_tgt_c_1_length">Length: </label>
487
            <input type="text" id="mc_1_tgt_c_1_length" name="mc_1_tgt_c_1_length" size="5" maxlength="5" />
497
            <input type="text" id="mc_1_tgt_c_1_length" name="mc_1_tgt_c_1_length" size="5" maxlength="5" />
488
          </li>
498
          </li>
489
          <div id="mc_1_tgt_c_1_n_1">
499
            <li id="mc_1_tgt_c_1_n_1">
490
            <li>
491
              <label for="mc_1_tgt_c_1_n_1_norm">Normalization rule: </label>
500
              <label for="mc_1_tgt_c_1_n_1_norm">Normalization rule: </label>
492
              <input type="text" id="mc_1_tgt_c_1_n_1_norm" name="mc_1_tgt_c_1_n_1_norm" size="20" maxlength="50" />
501
              <input type="text" id="mc_1_tgt_c_1_n_1_norm" name="mc_1_tgt_c_1_n_1_norm" size="20" maxlength="50" />
493
            </li>
502
            </li>
494
          </div>
495
        </ol>
503
        </ol>
496
      </fieldset>
504
      </fieldset>
497
      </div>
498
    </ol>
499
  </fieldset>
505
  </fieldset>
506
  <br style="clear:both;" />
500
  </div>
507
  </div>
501
  <!-- /TMPL_IF -->
508
  <!-- /TMPL_IF -->
502
  </fieldset>
509
  </fieldset>
Lines 576-584 function CheckRuleForm(f) { Link Here
576
583
577
<!-- /TMPL_IF -->
584
<!-- /TMPL_IF -->
578
 <!-- TMPL_IF name="matching_rule_form" -->
585
 <!-- TMPL_IF name="matching_rule_form" -->
579
<div id="mp_template" style="display:none">
586
<div id="mp_template" class="matchgroup" style="display:none;">
580
  <fieldset class="rows">
587
  <fieldset class="rows">
581
    <legend><a class="button" onclick="DeleteMatchpoint(this)">Remove this matchpoint</a></legend>
588
    <legend>Match point <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
582
    <ol>
589
    <ol>
583
      <li>
590
      <li>
584
        <label for="mp_num_search_index">Search index: </label>
591
        <label for="mp_num_search_index">Search index: </label>
Lines 589-596 function CheckRuleForm(f) { Link Here
589
        <label for="mp_num_score">Score: </label>
596
        <label for="mp_num_score">Score: </label>
590
        <input type ="text" id="mp_num_score" name="mp_num_score" size="5" maxlength="5" />
597
        <input type ="text" id="mp_num_score" name="mp_num_score" size="5" maxlength="5" />
591
      </li>
598
      </li>
592
      <div id="mp_num_c_1">
599
    </ol>
593
      <fieldset class="rows">
600
      <fieldset id="mp_num_c_1" class="rows">
601
      <legend>Matchpoint components</legend>
594
        <ol>
602
        <ol>
595
          <li>
603
          <li>
596
            <label for="mp_num_c_1_tag">Tag: </label>
604
            <label for="mp_num_c_1_tag">Tag: </label>
Lines 608-634 function CheckRuleForm(f) { Link Here
608
            <label for="mp_num_c_1_length">Length: </label>
616
            <label for="mp_num_c_1_length">Length: </label>
609
            <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
617
            <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
610
          </li>
618
          </li>
611
          <div id="mp_num_c_1_n_1">
619
            <li id="mp_num_c_1_n_1">
612
            <li>
613
              <label for="mp_num_c_1_n_1_norm">Normalization rule: </label>
620
              <label for="mp_num_c_1_n_1_norm">Normalization rule: </label>
614
              <input type="text" id="mp_num_c_1_n_1_norm" name="mp_num_c_1_n_1_norm" size="20" maxlength="50" />
621
              <input type="text" id="mp_num_c_1_n_1_norm" name="mp_num_c_1_n_1_norm" size="20" maxlength="50" />
615
            </li>
622
            </li>
616
          </div>
617
        </ol>
623
        </ol>
618
      </fieldset>
624
      </fieldset>
619
      </div>
620
    </ol>
621
  </fieldset>
625
  </fieldset>
622
</div>
626
      <br style="clear:both;" />
623
627
      </div>
624
628
625
<div id="mc_template" style="display:none">
629
<div id="mc_template" class="matchgroup" style="display:none">
626
<fieldset class="rows">
630
<fieldset class="rows">
627
  <legend><a class="button" onclick="DeleteMatchcheck(this)">Remove this match check</a></legend>
631
  <legend>Match check <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
628
  <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
632
  <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
629
  <ol>
633
    <fieldset class="rows" id="mc_num_src_c_1">
630
    <div id="mc_num_src_c_1">
631
    <fieldset class="rows">
632
      <legend>Source (incoming) record check field</legend>
634
      <legend>Source (incoming) record check field</legend>
633
      <ol>
635
      <ol>
634
        <li>
636
        <li>
Lines 645-663 function CheckRuleForm(f) { Link Here
645
        </li>
647
        </li>
646
        <li>
648
        <li>
647
          <label for="mc_num_src_c_1_length">Length: </label>
649
          <label for="mc_num_src_c_1_length">Length: </label>
648
          <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
650
          <input type="text" id="mc_num_src_c_1_length" name="mc_num_src_c_1_length" size="5" maxlength="5" />
649
        </li>
651
        </li>
650
        <div id="mc_num_src_c_1_n_1">
652
          <li id="mc_num_src_c_1_n_1">
651
          <li>
652
            <label for="mc_num_src_c_1_n_1_norm">Normalization rule: </label>
653
            <label for="mc_num_src_c_1_n_1_norm">Normalization rule: </label>
653
            <input type="text" id="mc_num_src_c_1_n_1_norm" name="mc_num_src_c_1_n_1_norm" size="20" maxlength="50" />
654
            <input type="text" id="mc_num_src_c_1_n_1_norm" name="mc_num_src_c_1_n_1_norm" size="20" maxlength="50" />
654
          </li>
655
          </li>
655
        </div>
656
      </ol>
656
      </ol>
657
    </fieldset>
657
    </fieldset>
658
    </div>
658
    <fieldset class="rows" id="mc_num_tgt_c_1">
659
    <div id="mc_num_tgt_c_1">
660
    <fieldset class="rows">
661
      <legend>Target (database) record check field</legend>
659
      <legend>Target (database) record check field</legend>
662
      <ol>
660
      <ol>
663
        <li>
661
        <li>
Lines 674-692 function CheckRuleForm(f) { Link Here
674
        </li>
672
        </li>
675
        <li>
673
        <li>
676
          <label for="mc_num_tgt_c_1_length">Length: </label>
674
          <label for="mc_num_tgt_c_1_length">Length: </label>
677
          <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
675
          <input type="text" id="mc_num_tgt_c_1_length" name="mc_num_tgt_c_1_length" size="5" maxlength="5" />
678
        </li>
676
        </li>
679
        <div id="mc_num_tgt_c_1_n_1">
677
          <li id="mc_num_tgt_c_1_n_1">
680
          <li>
681
            <label for="mc_num_tgt_c_1_n_1_norm">Normalization rule: </label>
678
            <label for="mc_num_tgt_c_1_n_1_norm">Normalization rule: </label>
682
            <input type="text" id="mc_num_tgt_c_1_n_1_norm" name="mc_num_tgt_c_1_n_1_norm" size="20" maxlength="50" />
679
            <input type="text" id="mc_num_tgt_c_1_n_1_norm" name="mc_num_tgt_c_1_n_1_norm" size="20" maxlength="50" />
683
          </li>
680
          </li>
684
        </div>
685
      </ol>
681
      </ol>
686
    </fieldset>
682
    </fieldset>
687
    </div>
688
  </ol>
689
</fieldset>
683
</fieldset>
684
<br style="clear:both;" />
690
</div>
685
</div>
691
<!-- /TMPL_IF -->
686
<!-- /TMPL_IF -->
692
687
693
- 

Return to bug 5006