|
Lines 59-65
Link Here
|
| 59 |
return false; |
59 |
return false; |
| 60 |
}); |
60 |
}); |
| 61 |
|
61 |
|
| 62 |
}); |
62 |
[% IF hide_marc %] |
|
|
63 |
var hide = false; |
| 64 |
[% ELSE %] |
| 65 |
var hide = true; |
| 66 |
[% END %] |
| 67 |
$("#hide_tags").change( function(){ |
| 68 |
if ( $(this).is(':checked') ) { |
| 69 |
$(".tagnum").hide(); |
| 70 |
$(".subfieldcode").hide(); |
| 71 |
} else { |
| 72 |
$(".tagnum").show(); |
| 73 |
$(".subfieldcode").show(); |
| 74 |
} |
| 75 |
} ); |
| 76 |
$("#hide_tags").attr("checked", !hide) |
| 77 |
$("#hide_tags").change(); |
| 78 |
|
| 79 |
}); |
| 63 |
|
80 |
|
| 64 |
function redirect(dest){ |
81 |
function redirect(dest){ |
| 65 |
$("#redirect").attr("value",dest); |
82 |
$("#redirect").attr("value",dest); |
|
Lines 319-326
function Changefwk(FwkList) {
Link Here
|
| 319 |
[% END %] |
336 |
[% END %] |
| 320 |
</h1> |
337 |
</h1> |
| 321 |
|
338 |
|
| 322 |
[% IF marcflavour != 'NORMARC' %] |
339 |
[% IF marcflavour != 'NORMARC' AND NOT advancedMARCEditor %] |
| 323 |
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div> |
340 |
<div><label><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links</label><br/></div> |
| 324 |
[% END %] |
341 |
[% END %] |
| 325 |
|
342 |
|
| 326 |
[% UNLESS ( number ) %] |
343 |
[% UNLESS ( number ) %] |
|
Lines 416-423
function Changefwk(FwkList) {
Link Here
|
| 416 |
[% frameworkcodeloo.frameworktext %] |
433 |
[% frameworkcodeloo.frameworktext %] |
| 417 |
</option> |
434 |
</option> |
| 418 |
[% END %] |
435 |
[% END %] |
| 419 |
</select> |
436 |
</select> |
| 420 |
</div> |
437 |
<label><input id="hide_tags" type="checkbox" class="vertical-align:middle;"/>Hide tags</label> |
|
|
438 |
<input type="hidden" name="op" value="addbiblio" /> |
| 439 |
</div> |
| 421 |
</div> |
440 |
</div> |
| 422 |
|
441 |
|
| 423 |
[% IF ( popup ) %] |
442 |
[% IF ( popup ) %] |
|
Lines 442-454
function Changefwk(FwkList) {
Link Here
|
| 442 |
[% IF ( innerloo.tag ) %] |
461 |
[% IF ( innerloo.tag ) %] |
| 443 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
462 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
| 444 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
463 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
| 445 |
[% UNLESS hide_marc %] |
|
|
| 446 |
[% IF advancedMARCEditor %] |
464 |
[% IF advancedMARCEditor %] |
| 447 |
<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> |
465 |
<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> |
| 448 |
[% ELSE %] |
466 |
[% ELSE %] |
| 449 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
467 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span> |
| 450 |
[% IF marcflavour != 'NORMARC' %]<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
468 |
[% IF marcflavour != 'NORMARC' %]<a href="#" class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
| 451 |
</span> |
|
|
| 452 |
[% END %] |
469 |
[% END %] |
| 453 |
[% IF ( innerloo.fixedfield ) %] |
470 |
[% IF ( innerloo.fixedfield ) %] |
| 454 |
<input type="text" |
471 |
<input type="text" |
|
Lines 483-516
function Changefwk(FwkList) {
Link Here
|
| 483 |
maxlength="1" |
500 |
maxlength="1" |
| 484 |
value="[% innerloo.indicator2 %]" /> |
501 |
value="[% innerloo.indicator2 %]" /> |
| 485 |
[% END %] - |
502 |
[% END %] - |
| 486 |
[% ELSE %] |
|
|
| 487 |
[% IF ( innerloo.fixedfield ) %] |
| 488 |
<input type="hidden" |
| 489 |
tabindex="1" |
| 490 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 491 |
value="[% innerloo.indicator1 %]" /> |
| 492 |
<input type="hidden" |
| 493 |
tabindex="1" |
| 494 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 495 |
value="[% innerloo.indicator2 %]" /> |
| 496 |
[% ELSE %] |
| 497 |
<input type="hidden" |
| 498 |
tabindex="1" |
| 499 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 500 |
value="[% innerloo.indicator1 %]" /> |
| 501 |
<input type="hidden" |
| 502 |
tabindex="1" |
| 503 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 504 |
value="[% innerloo.indicator2 %]" /> |
| 505 |
[% END %] |
| 506 |
[% END %] |
| 507 |
|
503 |
|
| 508 |
[% UNLESS advancedMARCEditor %] |
504 |
[% UNLESS advancedMARCEditor %] |
| 509 |
<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> |
505 |
<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> |
| 510 |
[% END %] |
506 |
[% END %] |
| 511 |
<span class="field_controls"> |
507 |
<span class="field_controls"> |
| 512 |
[% IF ( innerloo.repeatable ) %] |
508 |
[% IF ( innerloo.repeatable ) %] |
| 513 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','[% hide_marc %]','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
509 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','0','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
| 514 |
<img src="[% interface %]/[% theme %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
510 |
<img src="[% interface %]/[% theme %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
| 515 |
</a> |
511 |
</a> |
| 516 |
[% END %] |
512 |
[% END %] |
|
Lines 524-537
function Changefwk(FwkList) {
Link Here
|
| 524 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
520 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
| 525 |
<!-- One line on the marc editor --> |
521 |
<!-- One line on the marc editor --> |
| 526 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
522 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
| 527 |
|
523 |
|
| 528 |
[% UNLESS advancedMARCEditor %] |
524 |
[% UNLESS advancedMARCEditor %] |
| 529 |
[% 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"> |
525 |
[% 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"> |
| 530 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
526 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
| 531 |
[% END %] |
527 |
[% END %] |
| 532 |
[% END %] |
528 |
[% END %] |
| 533 |
|
529 |
|
| 534 |
[% UNLESS hide_marc %] |
|
|
| 535 |
<span class="subfieldcode"> |
530 |
<span class="subfieldcode"> |
| 536 |
[% IF ( subfield_loo.fixedfield ) %] |
531 |
[% IF ( subfield_loo.fixedfield ) %] |
| 537 |
<img class="buttonUp" style="display:none;" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" /> |
532 |
<img class="buttonUp" style="display:none;" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" /> |
|
Lines 548-559
function Changefwk(FwkList) {
Link Here
|
| 548 |
class="flat" |
543 |
class="flat" |
| 549 |
tabindex="0" /> |
544 |
tabindex="0" /> |
| 550 |
</span> |
545 |
</span> |
| 551 |
[% ELSE %] |
546 |
|
| 552 |
<input type="hidden" |
|
|
| 553 |
name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" |
| 554 |
value="[% subfield_loo.subfield %]" /> |
| 555 |
[% END %] |
| 556 |
|
| 557 |
[% UNLESS advancedMARCEditor %] |
547 |
[% UNLESS advancedMARCEditor %] |
| 558 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
548 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
| 559 |
[% subfield_loo.marc_lib_plain %] |
549 |
[% subfield_loo.marc_lib_plain %] |
| 560 |
- |
|
|