|
Lines 22-27
Link Here
|
| 22 |
{ path: "/", expires: 365 }); |
22 |
{ path: "/", expires: 365 }); |
| 23 |
} |
23 |
} |
| 24 |
|
24 |
|
|
|
25 |
[% IF hide_marc %] |
| 26 |
var hide = false; |
| 27 |
[% ELSE %] |
| 28 |
var hide = true; |
| 29 |
[% END %] |
| 30 |
$("#hide_tags").change( function(){ |
| 31 |
if ( $(this).is(':checked') ) { |
| 32 |
$(".tagnum").hide(); |
| 33 |
$(".subfieldcode").hide(); |
| 34 |
} else { |
| 35 |
$(".tagnum").show(); |
| 36 |
$(".subfieldcode").show(); |
| 37 |
} |
| 38 |
} ); |
| 39 |
$("#hide_tags").attr("checked", !hide) |
| 40 |
$("#hide_tags").change(); |
| 41 |
|
| 25 |
}); |
42 |
}); |
| 26 |
|
43 |
|
| 27 |
$('#header_search').tabs().bind('show.ui-tabs', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); }); |
44 |
$('#header_search').tabs().bind('show.ui-tabs', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); }); |
|
Lines 282-289
function Changefwk(FwkList) {
Link Here
|
| 282 |
[% END %] |
299 |
[% END %] |
| 283 |
</h1> |
300 |
</h1> |
| 284 |
|
301 |
|
| 285 |
[% IF marcflavour != 'NORMARC' %] |
302 |
[% IF marcflavour != 'NORMARC' AND NOT advancedMARCEditor %] |
| 286 |
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div> |
303 |
<div><label><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links</label><br/></div> |
| 287 |
[% END %] |
304 |
[% END %] |
| 288 |
|
305 |
|
| 289 |
[% UNLESS ( number ) %] |
306 |
[% UNLESS ( number ) %] |
|
Lines 330-336
function Changefwk(FwkList) {
Link Here
|
| 330 |
$("#z3950searchc").empty(); |
347 |
$("#z3950searchc").empty(); |
| 331 |
$("#savebutton").empty(); |
348 |
$("#savebutton").empty(); |
| 332 |
yuiToolbar(); |
349 |
yuiToolbar(); |
| 333 |
|
|
|
| 334 |
$("#marcDocsSelect").click(function(){ |
350 |
$("#marcDocsSelect").click(function(){ |
| 335 |
if($(this).attr("checked")){ |
351 |
if($(this).attr("checked")){ |
| 336 |
showMARCdocLinks(); |
352 |
showMARCdocLinks(); |
|
Lines 416-421
function Changefwk(FwkList) {
Link Here
|
| 416 |
</option> |
432 |
</option> |
| 417 |
[% END %] |
433 |
[% END %] |
| 418 |
</select> |
434 |
</select> |
|
|
435 |
<label><input id="hide_tags" type="checkbox" class="vertical-align:middle;"/>Hide tags</label> |
| 436 |
<input type="hidden" name="op" value="addbiblio" /> |
| 419 |
</li> |
437 |
</li> |
| 420 |
[% END %] |
438 |
[% END %] |
| 421 |
</ul> |
439 |
</ul> |
|
Lines 443-455
function Changefwk(FwkList) {
Link Here
|
| 443 |
[% IF ( innerloo.tag ) %] |
461 |
[% IF ( innerloo.tag ) %] |
| 444 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
462 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
| 445 |
<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 %]"> |
| 446 |
[% UNLESS hide_marc %] |
|
|
| 447 |
[% IF advancedMARCEditor %] |
464 |
[% IF advancedMARCEditor %] |
| 448 |
<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> |
| 449 |
[% ELSE %] |
466 |
[% ELSE %] |
| 450 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
467 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span> |
| 451 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
468 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
| 452 |
</span> |
|
|
| 453 |
[% END %] |
469 |
[% END %] |
| 454 |
[% IF ( innerloo.fixedfield ) %] |
470 |
[% IF ( innerloo.fixedfield ) %] |
| 455 |
<input type="text" |
471 |
<input type="text" |
|
Lines 484-517
function Changefwk(FwkList) {
Link Here
|
| 484 |
maxlength="1" |
500 |
maxlength="1" |
| 485 |
value="[% innerloo.indicator2 %]" /> |
501 |
value="[% innerloo.indicator2 %]" /> |
| 486 |
[% END %] - |
502 |
[% END %] - |
| 487 |
[% ELSE %] |
|
|
| 488 |
[% IF ( innerloo.fixedfield ) %] |
| 489 |
<input type="hidden" |
| 490 |
tabindex="1" |
| 491 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 492 |
value="[% innerloo.indicator1 %]" /> |
| 493 |
<input type="hidden" |
| 494 |
tabindex="1" |
| 495 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 496 |
value="[% innerloo.indicator2 %]" /> |
| 497 |
[% ELSE %] |
| 498 |
<input type="hidden" |
| 499 |
tabindex="1" |
| 500 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 501 |
value="[% innerloo.indicator1 %]" /> |
| 502 |
<input type="hidden" |
| 503 |
tabindex="1" |
| 504 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 505 |
value="[% innerloo.indicator2 %]" /> |
| 506 |
[% END %] |
| 507 |
[% END %] |
| 508 |
|
503 |
|
| 509 |
[% UNLESS advancedMARCEditor %] |
504 |
[% UNLESS advancedMARCEditor %] |
| 510 |
<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> |
| 511 |
[% END %] |
506 |
[% END %] |
| 512 |
<span class="field_controls"> |
507 |
<span class="field_controls"> |
| 513 |
[% IF ( innerloo.repeatable ) %] |
508 |
[% IF ( innerloo.repeatable ) %] |
| 514 |
<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"> |
| 515 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
510 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
| 516 |
</a> |
511 |
</a> |
| 517 |
[% END %] |
512 |
[% END %] |
|
Lines 525-538
function Changefwk(FwkList) {
Link Here
|
| 525 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
520 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
| 526 |
<!-- One line on the marc editor --> |
521 |
<!-- One line on the marc editor --> |
| 527 |
<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 %]"> |
| 528 |
|
523 |
|
| 529 |
[% UNLESS advancedMARCEditor %] |
524 |
[% UNLESS advancedMARCEditor %] |
| 530 |
[% 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"> |
| 531 |
[% 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"> |
| 532 |
[% END %] |
527 |
[% END %] |
| 533 |
[% END %] |
528 |
[% END %] |
| 534 |
|
529 |
|
| 535 |
[% UNLESS hide_marc %] |
|
|
| 536 |
<span class="subfieldcode"> |
530 |
<span class="subfieldcode"> |
| 537 |
[% IF ( subfield_loo.fixedfield ) %] |
531 |
[% IF ( subfield_loo.fixedfield ) %] |
| 538 |
<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" /> |
532 |
<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 549-560
function Changefwk(FwkList) {
Link Here
|
| 549 |
class="flat" |
543 |
class="flat" |
| 550 |
tabindex="0" /> |
544 |
tabindex="0" /> |
| 551 |
</span> |
545 |
</span> |
| 552 |
[% ELSE %] |
546 |
|
| 553 |
<input type="hidden" |
|
|
| 554 |
name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" |
| 555 |
value="[% subfield_loo.subfield %]" /> |
| 556 |
[% END %] |
| 557 |
|
| 558 |
[% UNLESS advancedMARCEditor %] |
547 |
[% UNLESS advancedMARCEditor %] |
| 559 |
[% 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 %] |
| 560 |
[% subfield_loo.marc_lib_plain %] |
549 |
[% subfield_loo.marc_lib_plain %] |
| 561 |
- |
|
|