|
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 277-284
function Changefwk(FwkList) {
Link Here
|
| 277 |
<div class="yui-g"> |
294 |
<div class="yui-g"> |
| 278 |
|
295 |
|
| 279 |
<h1>[% IF ( biblionumber ) %]Editing <em>[% title |html %]</em> (Record number [% biblionumber %])</h1>[% ELSE %]Add MARC record</h1>[% END %] |
296 |
<h1>[% IF ( biblionumber ) %]Editing <em>[% title |html %]</em> (Record number [% biblionumber %])</h1>[% ELSE %]Add MARC record</h1>[% END %] |
| 280 |
[% IF marcflavour != 'NORMARC' %] |
297 |
[% IF marcflavour != 'NORMARC' AND NOT advancedMARCEditor %] |
| 281 |
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div> |
298 |
<div><label><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links</label><br/></div> |
| 282 |
[% END %] |
299 |
[% END %] |
| 283 |
|
300 |
|
| 284 |
[% UNLESS ( number ) %] |
301 |
[% UNLESS ( number ) %] |
|
Lines 325-331
function Changefwk(FwkList) {
Link Here
|
| 325 |
$("#z3950searchc").empty(); |
342 |
$("#z3950searchc").empty(); |
| 326 |
$("#savebutton").empty(); |
343 |
$("#savebutton").empty(); |
| 327 |
yuiToolbar(); |
344 |
yuiToolbar(); |
| 328 |
|
|
|
| 329 |
$("#marcDocsSelect").click(function(){ |
345 |
$("#marcDocsSelect").click(function(){ |
| 330 |
if($(this).attr("checked")){ |
346 |
if($(this).attr("checked")){ |
| 331 |
showMARCdocLinks(); |
347 |
showMARCdocLinks(); |
|
Lines 401-406
function Changefwk(FwkList) {
Link Here
|
| 401 |
</option> |
417 |
</option> |
| 402 |
[% END %] |
418 |
[% END %] |
| 403 |
</select> |
419 |
</select> |
|
|
420 |
<label><input id="hide_tags" type="checkbox" class="vertical-align:middle;"/>Hide tags</label> |
| 404 |
<input type="hidden" name="op" value="addbiblio" /></li> |
421 |
<input type="hidden" name="op" value="addbiblio" /></li> |
| 405 |
</ul> |
422 |
</ul> |
| 406 |
</div> |
423 |
</div> |
|
Lines 426-438
function Changefwk(FwkList) {
Link Here
|
| 426 |
[% IF ( innerloo.tag ) %] |
443 |
[% IF ( innerloo.tag ) %] |
| 427 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
444 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
| 428 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
445 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
| 429 |
[% UNLESS hide_marc %] |
|
|
| 430 |
[% IF advancedMARCEditor %] |
446 |
[% IF advancedMARCEditor %] |
| 431 |
<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> |
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> |
| 432 |
[% ELSE %] |
448 |
[% ELSE %] |
| 433 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %] |
449 |
<span class="tagnum" title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span> |
| 434 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
450 |
[% IF marcflavour != 'NORMARC' %]<a class="marcdocs" onclick="PopupMARCFieldDoc('[% innerloo.tag %]', [% BIG_LOO.number %]); return false;"> ?</a>[% END %] |
| 435 |
</span> |
|
|
| 436 |
[% END %] |
451 |
[% END %] |
| 437 |
[% IF ( innerloo.fixedfield ) %] |
452 |
[% IF ( innerloo.fixedfield ) %] |
| 438 |
<input type="text" |
453 |
<input type="text" |
|
Lines 467-500
function Changefwk(FwkList) {
Link Here
|
| 467 |
maxlength="1" |
482 |
maxlength="1" |
| 468 |
value="[% innerloo.indicator2 %]" /> |
483 |
value="[% innerloo.indicator2 %]" /> |
| 469 |
[% END %] - |
484 |
[% END %] - |
| 470 |
[% ELSE %] |
|
|
| 471 |
[% IF ( innerloo.fixedfield ) %] |
| 472 |
<input type="hidden" |
| 473 |
tabindex="1" |
| 474 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 475 |
value="[% innerloo.indicator1 %]" /> |
| 476 |
<input type="hidden" |
| 477 |
tabindex="1" |
| 478 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 479 |
value="[% innerloo.indicator2 %]" /> |
| 480 |
[% ELSE %] |
| 481 |
<input type="hidden" |
| 482 |
tabindex="1" |
| 483 |
name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" |
| 484 |
value="[% innerloo.indicator1 %]" /> |
| 485 |
<input type="hidden" |
| 486 |
tabindex="1" |
| 487 |
name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" |
| 488 |
value="[% innerloo.indicator2 %]" /> |
| 489 |
[% END %] |
| 490 |
[% END %] |
| 491 |
|
485 |
|
| 492 |
[% UNLESS advancedMARCEditor %] |
486 |
[% UNLESS advancedMARCEditor %] |
| 493 |
<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> |
487 |
<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> |
| 494 |
[% END %] |
488 |
[% END %] |
| 495 |
<span class="field_controls"> |
489 |
<span class="field_controls"> |
| 496 |
[% IF ( innerloo.repeatable ) %] |
490 |
[% IF ( innerloo.repeatable ) %] |
| 497 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','[% hide_marc %]','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
491 |
<a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','0','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag"> |
| 498 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
492 |
<img src="/intranet-tmpl/prog/img/repeat-tag.png" alt="Repeat this Tag" /> |
| 499 |
</a> |
493 |
</a> |
| 500 |
[% END %] |
494 |
[% END %] |
|
Lines 508-521
function Changefwk(FwkList) {
Link Here
|
| 508 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
502 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
| 509 |
<!-- One line on the marc editor --> |
503 |
<!-- One line on the marc editor --> |
| 510 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
504 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
| 511 |
|
505 |
|
| 512 |
[% UNLESS advancedMARCEditor %] |
506 |
[% UNLESS advancedMARCEditor %] |
| 513 |
[% 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"> |
507 |
[% 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"> |
| 514 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
508 |
[% ELSE %]<label for="tag_[% subfield_loo.tag %]_subfield_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" class="labelsubfield"> |
| 515 |
[% END %] |
509 |
[% END %] |
| 516 |
[% END %] |
510 |
[% END %] |
| 517 |
|
511 |
|
| 518 |
[% UNLESS hide_marc %] |
|
|
| 519 |
<span class="subfieldcode"> |
512 |
<span class="subfieldcode"> |
| 520 |
[% IF ( subfield_loo.fixedfield ) %] |
513 |
[% IF ( subfield_loo.fixedfield ) %] |
| 521 |
<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" /> |
514 |
<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 532-543
function Changefwk(FwkList) {
Link Here
|
| 532 |
class="flat" |
525 |
class="flat" |
| 533 |
tabindex="0" /> |
526 |
tabindex="0" /> |
| 534 |
</span> |
527 |
</span> |
| 535 |
[% ELSE %] |
528 |
|
| 536 |
<input type="hidden" |
|
|
| 537 |
name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" |
| 538 |
value="[% subfield_loo.subfield %]" /> |
| 539 |
[% END %] |
| 540 |
|
| 541 |
[% UNLESS advancedMARCEditor %] |
529 |
[% UNLESS advancedMARCEditor %] |
| 542 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
530 |
[% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] |
| 543 |
[% subfield_loo.marc_lib_plain %] |
531 |
[% subfield_loo.marc_lib_plain %] |
| 544 |
- |
|
|