Lines 8-16
Link Here
|
8 |
//<![CDATA[ |
8 |
//<![CDATA[ |
9 |
|
9 |
|
10 |
$(document).ready(function() { |
10 |
$(document).ready(function() { |
11 |
$('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) { |
11 |
var $tabs = $('#addbibliotabs').tabs(); |
12 |
$("#"+ui.panel.id+" input:eq(0)").focus(); |
12 |
$( "ul.sortable_field", $tabs ).sortable({ |
13 |
}); |
13 |
placeholder: "ui-state-highlight", |
|
|
14 |
}).disableSelection(); |
15 |
$( "ul.sortable_subfield", $tabs ).sortable({ |
16 |
placeholder: "ui-state-highlight", |
17 |
}).disableSelection(); |
14 |
|
18 |
|
15 |
/* check cookie to hide/show marcdocs*/ |
19 |
/* check cookie to hide/show marcdocs*/ |
16 |
if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){ |
20 |
if($.cookie("marcdocs_[% borrowernumber %]") == 'false'){ |
Lines 420-430
function Changefwk(FwkList) {
Link Here
|
420 |
</ul> |
424 |
</ul> |
421 |
|
425 |
|
422 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
426 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
423 |
<div id="tab[% BIG_LOO.number %]XX"> |
427 |
<ul id="tab[% BIG_LOO.number %]XX" class="sortable_field"> |
424 |
|
428 |
|
425 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
429 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
426 |
[% IF ( innerloo.tag ) %] |
430 |
[% IF ( innerloo.tag ) %] |
427 |
<div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
431 |
<li 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 %]"> |
432 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
429 |
[% UNLESS hide_marc %] |
433 |
[% UNLESS hide_marc %] |
430 |
[% IF advancedMARCEditor %] |
434 |
[% IF advancedMARCEditor %] |
Lines 504-513
function Changefwk(FwkList) {
Link Here
|
504 |
</span> |
508 |
</span> |
505 |
|
509 |
|
506 |
</div> |
510 |
</div> |
507 |
|
511 |
<ul class="sortable_subfield"> |
508 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
512 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
509 |
<!-- One line on the marc editor --> |
513 |
<!-- 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 %]"> |
514 |
<li class="subfield_line" style="[% subfield_loo.visibility %]" id="subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]"> |
511 |
|
515 |
|
512 |
[% UNLESS advancedMARCEditor %] |
516 |
[% 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"> |
517 |
[% 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 518-526
function Changefwk(FwkList) {
Link Here
|
518 |
[% UNLESS hide_marc %] |
522 |
[% UNLESS hide_marc %] |
519 |
<span class="subfieldcode"> |
523 |
<span class="subfieldcode"> |
520 |
[% IF ( subfield_loo.fixedfield ) %] |
524 |
[% 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" /> |
525 |
<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" /> |
522 |
[% ELSE %] |
526 |
[% ELSE %] |
523 |
<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" /> |
527 |
<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" /> |
524 |
[% END %] |
528 |
[% END %] |
525 |
<input type="text" |
529 |
<input type="text" |
526 |
title="[% subfield_loo.marc_lib_plain %]" |
530 |
title="[% subfield_loo.marc_lib_plain %]" |
Lines 559-572
function Changefwk(FwkList) {
Link Here
|
559 |
[% END %] |
563 |
[% END %] |
560 |
</span> |
564 |
</span> |
561 |
|
565 |
|
562 |
</div> |
566 |
</li> |
563 |
<!-- End of the line --> |
567 |
<!-- End of the line --> |
564 |
[% END %] |
568 |
[% END %] |
565 |
|
569 |
</ul> |
566 |
</div> |
570 |
</li> |
567 |
[% END %]<!-- if innerloo.tag --> |
571 |
[% END %]<!-- if innerloo.tag --> |
568 |
[% END %]<!-- BIG_LOO.innerloop --> |
572 |
[% END %]<!-- BIG_LOO.innerloop --> |
569 |
</div> |
573 |
</ul> |
570 |
[% END %]<!-- BIG_LOOP --> |
574 |
[% END %]<!-- BIG_LOOP --> |
571 |
|
575 |
|
572 |
</div><!-- tabs --> |
576 |
</div><!-- tabs --> |