Lines 9-17
Link Here
|
9 |
$("#loading").hide(); |
9 |
$("#loading").hide(); |
10 |
}); |
10 |
}); |
11 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
12 |
$('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) { |
12 |
var $tabs = $('#addbibliotabs').tabs(); |
13 |
$("#"+ui.panel.id+" input:eq(0)").focus(); |
13 |
$( "ul.sortable_field", $tabs ).sortable({ |
14 |
}); |
14 |
placeholder: "ui-state-highlight", |
|
|
15 |
}).disableSelection(); |
16 |
$( "ul.sortable_subfield", $tabs ).sortable({ |
17 |
placeholder: "ui-state-highlight", |
18 |
}).disableSelection(); |
15 |
|
19 |
|
16 |
/* check cookie to hide/show marcdocs*/ |
20 |
/* check cookie to hide/show marcdocs*/ |
17 |
if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){ |
21 |
if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){ |
Lines 429-439
function Changefwk(FwkList) {
Link Here
|
429 |
</ul> |
433 |
</ul> |
430 |
|
434 |
|
431 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
435 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
432 |
<div id="tab[% BIG_LOO.number %]XX"> |
436 |
<ul id="tab[% BIG_LOO.number %]XX" class="sortable_field"> |
433 |
|
437 |
|
434 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
438 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
435 |
[% IF ( innerloo.tag ) %] |
439 |
[% IF ( innerloo.tag ) %] |
436 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
440 |
<li class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
437 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
441 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
438 |
[% UNLESS hide_marc %] |
442 |
[% UNLESS hide_marc %] |
439 |
[% IF advancedMARCEditor %] |
443 |
[% IF advancedMARCEditor %] |
Lines 513-522
function Changefwk(FwkList) {
Link Here
|
513 |
</span> |
517 |
</span> |
514 |
|
518 |
|
515 |
</div> |
519 |
</div> |
516 |
|
520 |
<ul class="sortable_subfield"> |
517 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
521 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
518 |
<!-- One line on the marc editor --> |
522 |
<!-- One line on the marc editor --> |
519 |
<div class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
523 |
<li class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
520 |
|
524 |
|
521 |
[% UNLESS advancedMARCEditor %] |
525 |
[% UNLESS advancedMARCEditor %] |
522 |
[% 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"> |
526 |
[% 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"> |
Lines 527-535
function Changefwk(FwkList) {
Link Here
|
527 |
[% UNLESS hide_marc %] |
531 |
[% UNLESS hide_marc %] |
528 |
<span class="subfieldcode"> |
532 |
<span class="subfieldcode"> |
529 |
[% IF ( subfield_loo.fixedfield ) %] |
533 |
[% IF ( subfield_loo.fixedfield ) %] |
530 |
<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" /> |
534 |
<img class="buttonUp" style="display:none;" src="/intranet-tmpl/prog/img/cursor_split_16.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move" title="Move" /> |
531 |
[% ELSE %] |
535 |
[% ELSE %] |
532 |
<img class="buttonUp" 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" /> |
536 |
<img class="buttonUp" src="/intranet-tmpl/prog/img/cursor_split_16.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move" title="Move" /> |
533 |
[% END %] |
537 |
[% END %] |
534 |
<input type="text" |
538 |
<input type="text" |
535 |
title="[% subfield_loo.marc_lib_plain %]" |
539 |
title="[% subfield_loo.marc_lib_plain %]" |
Lines 568-581
function Changefwk(FwkList) {
Link Here
|
568 |
[% END %] |
572 |
[% END %] |
569 |
</span> |
573 |
</span> |
570 |
|
574 |
|
571 |
</div> |
575 |
</li> |
572 |
<!-- End of the line --> |
576 |
<!-- End of the line --> |
573 |
[% END %] |
577 |
[% END %] |
574 |
|
578 |
</ul> |
575 |
</div> |
579 |
</li> |
576 |
[% END %]<!-- if innerloo.tag --> |
580 |
[% END %]<!-- if innerloo.tag --> |
577 |
[% END %]<!-- BIG_LOO.innerloop --> |
581 |
[% END %]<!-- BIG_LOO.innerloop --> |
578 |
</div> |
582 |
</ul> |
579 |
[% END %]<!-- BIG_LOOP --> |
583 |
[% END %]<!-- BIG_LOOP --> |
580 |
|
584 |
|
581 |
</div><!-- tabs --> |
585 |
</div><!-- tabs --> |