Lines 53-59
Link Here
|
53 |
redirect("items"); |
53 |
redirect("items"); |
54 |
return false; |
54 |
return false; |
55 |
}); |
55 |
}); |
56 |
}); |
56 |
|
|
|
57 |
[% IF hide_marc %] |
58 |
var hide = false; |
59 |
[% ELSE %] |
60 |
var hide = true; |
61 |
[% END %] |
62 |
$("#hide_tags").change( function(){ |
63 |
if ( $(this).is(':checked') ) { |
64 |
$(".tagnum").hide(); |
65 |
$(".subfieldcode").hide(); |
66 |
} else { |
67 |
$(".tagnum").show(); |
68 |
$(".subfieldcode").show(); |
69 |
} |
70 |
} ); |
71 |
$("#hide_tags").attr("checked", !hide) |
72 |
$("#hide_tags").change(); |
73 |
|
74 |
}); |
57 |
|
75 |
|
58 |
function redirect(dest){ |
76 |
function redirect(dest){ |
59 |
$("#redirect").attr("value",dest); |
77 |
$("#redirect").attr("value",dest); |
Lines 310-317
function Changefwk(FwkList) {
Link Here
|
310 |
[% END %] |
328 |
[% END %] |
311 |
</h1> |
329 |
</h1> |
312 |
|
330 |
|
313 |
[% IF marcflavour != 'NORMARC' %] |
331 |
[% IF marcflavour != 'NORMARC' AND NOT advancedMARCEditor %] |
314 |
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div> |
332 |
<div><label><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links</label><br/></div> |
315 |
[% END %] |
333 |
[% END %] |
316 |
|
334 |
|
317 |
[% UNLESS ( number ) %] |
335 |
[% UNLESS ( number ) %] |
Lines 385-390
function Changefwk(FwkList) {
Link Here
|
385 |
</option> |
403 |
</option> |
386 |
[% END %] |
404 |
[% END %] |
387 |
</select> |
405 |
</select> |
|
|
406 |
<label><input id="hide_tags" type="checkbox" class="vertical-align:middle;"/>Hide tags</label> |
407 |
<input type="hidden" name="op" value="addbiblio" /> |
388 |
</div> |
408 |
</div> |
389 |
[% END %] |
409 |
[% END %] |
390 |
</div> |
410 |
</div> |
Lines 411-423
function Changefwk(FwkList) {
Link Here
|
411 |
[% IF ( innerloo.tag ) %] |
431 |
[% IF ( innerloo.tag ) %] |
412 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
432 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
413 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
433 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
414 |
[% UNLESS hide_marc %] |
|
|
415 |
[% IF advancedMARCEditor %] |
434 |
[% IF advancedMARCEditor %] |
416 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a> |
435 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a> |
417 |
[% ELSE %] |
436 |
[% ELSE %] |
418 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
437 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span> |
419 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
438 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
420 |
</span> |
|
|
421 |
[% END %] |
439 |
[% END %] |
422 |
[% IF ( innerloo.fixedfield ) %] |
440 |
[% IF ( innerloo.fixedfield ) %] |
423 |
<input type="text" |
441 |
<input type="text" |
Lines 452-485
function Changefwk(FwkList) {
Link Here
|
452 |
maxlength="1" |
470 |
maxlength="1" |
453 |
value="[% innerloo.indicator2 %]" /> |
471 |
value="[% innerloo.indicator2 %]" /> |
454 |
[% END %] - |
472 |
[% END %] - |
455 |
[% ELSE %] |
|
|
456 |
[% IF ( innerloo.fixedfield ) %] |
457 |
<input type="hidden" |
458 |
tabindex="1" |
459 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
460 |
value="[% innerloo.indicator1 %]" /> |
461 |
<input type="hidden" |
462 |
tabindex="1" |
463 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
464 |
value="[% innerloo.indicator2 %]" /> |
465 |
[% ELSE %] |
466 |
<input type="hidden" |
467 |
tabindex="1" |
468 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
469 |
value="[% innerloo.indicator1 %]" /> |
470 |
<input type="hidden" |
471 |
tabindex="1" |
472 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
473 |
value="[% innerloo.indicator2 %]" /> |
474 |
[% END %] |
475 |
[% END %] |
476 |
|
473 |
|
477 |
[% UNLESS advancedMARCEditor %] |
474 |
[% UNLESS advancedMARCEditor %] |
478 |
<a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib %]</a> |
475 |
<a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib %]</a> |
479 |
[% END %] |
476 |
[% END %] |
480 |
<span class="field_controls"> |
477 |
<span class="field_controls"> |
481 |
[% IF ( innerloo.repeatable ) %] |
478 |
[% IF ( innerloo.repeatable ) %] |
482 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','[% hide_marc %]','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
479 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','0','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
483 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
480 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
484 |
</a> |
481 |
</a> |
485 |
[% END %] |
482 |
[% END %] |
Lines 493-506
function Changefwk(FwkList) {
Link Here
|
493 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
490 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
494 |
<!-- One line on the marc editor --> |
491 |
<!-- One line on the marc editor --> |
495 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
492 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
496 |
|
493 |
|
497 |
[% UNLESS advancedMARCEditor %] |
494 |
[% UNLESS advancedMARCEditor %] |
498 |
[% IF ( subfield_loo.fixedfield ) %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" style="display:none;" class="labelsubfield"> |
495 |
[% IF ( subfield_loo.fixedfield ) %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" style="display:none;" class="labelsubfield"> |
499 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
496 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
500 |
[% END %] |
497 |
[% END %] |
501 |
[% END %] |
498 |
[% END %] |
502 |
|
499 |
|
503 |
[% UNLESS hide_marc %] |
|
|
504 |
<span class="subfieldcode"> |
500 |
<span class="subfieldcode"> |
505 |
[% IF ( subfield_loo.fixedfield ) %] |
501 |
[% IF ( subfield_loo.fixedfield ) %] |
506 |
<img class="buttonUp" style="display:none;" src="/intranet-tmpl/prog/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" /> |
502 |
<img class="buttonUp" style="display:none;" src="/intranet-tmpl/prog/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" /> |
Lines 517-528
function Changefwk(FwkList) {
Link Here
|
517 |
class="flat" |
513 |
class="flat" |
518 |
tabindex="0" /> |
514 |
tabindex="0" /> |
519 |
</span> |
515 |
</span> |
520 |
[% ELSE %] |
516 |
|
521 |
<input type="hidden" |
|
|
522 |
name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" |
523 |
value="[% subfield_loo.subfield %]" /> |
524 |
[% END %] |
525 |
|
526 |
[% UNLESS advancedMARCEditor %] |
517 |
[% UNLESS advancedMARCEditor %] |
527 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
518 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
528 |
[% subfield_loo.marc_lib_plain %] |
519 |
[% subfield_loo.marc_lib_plain %] |
529 |
- |
|
|