Lines 8-15
Link Here
|
8 |
[% Asset.js("js/cataloging.js") | $raw %] |
8 |
[% Asset.js("js/cataloging.js") | $raw %] |
9 |
[% INCLUDE 'browser-strings.inc' %] |
9 |
[% INCLUDE 'browser-strings.inc' %] |
10 |
[% Asset.js("js/browser.js") | $raw %] |
10 |
[% Asset.js("js/browser.js") | $raw %] |
11 |
<script type="text/javascript"> |
11 |
<script> |
12 |
//<![CDATA[ |
|
|
13 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
12 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
14 |
browser.show(); |
13 |
browser.show(); |
15 |
|
14 |
|
Lines 30-40
Link Here
|
30 |
|
29 |
|
31 |
[% IF tab %] |
30 |
[% IF tab %] |
32 |
$('#addbibliotabs').selectTabByID("#[% tab | html %]"); |
31 |
$('#addbibliotabs').selectTabByID("#[% tab | html %]"); |
|
|
32 |
console.log("[% tab %]"); |
33 |
[% END %] |
33 |
[% END %] |
34 |
|
34 |
|
35 |
Sticky = $("#toolbar"); |
35 |
Sticky = $("#toolbar"); |
36 |
Sticky.hcSticky({ |
36 |
Sticky.hcSticky({ |
37 |
stickTo: ".main", |
37 |
stickTo: "#f", |
38 |
stickyClass: "floating" |
38 |
stickyClass: "floating" |
39 |
}); |
39 |
}); |
40 |
|
40 |
|
Lines 134-139
Link Here
|
134 |
$("#frameworkcode").val( frameworkcode ); |
134 |
$("#frameworkcode").val( frameworkcode ); |
135 |
Changefwk(); |
135 |
Changefwk(); |
136 |
}); |
136 |
}); |
|
|
137 |
|
138 |
$(".toolbar-tabs a").on("click",function(e){ |
139 |
e.preventDefault(); |
140 |
$(".toolbar-tabs li").removeClass("selected"); |
141 |
$(this).parent().addClass("selected"); |
142 |
var tabid = $(this).data("tabid"); |
143 |
$("#addbibliotabs").tabs( "option", "active", tabid ); |
144 |
$(".tag_anchors").removeClass("tab_selected").hide(); |
145 |
$(".tag_anchors_" + tabid ).addClass("tab_selected").show(); |
146 |
}); |
147 |
|
148 |
$(".tag_anchor").on("click", function(e){ |
149 |
e.preventDefault(); |
150 |
var toolbar_height = $("#toolbar").outerHeight(); |
151 |
$(".tag_anchor").removeClass("selected"); |
152 |
$(this).addClass("selected"); |
153 |
var link = this.href; |
154 |
var linkid = link.substring( link.indexOf("#") + 1 ); |
155 |
var dest = $("#" + linkid ); |
156 |
var yoffset = dest.offset(); |
157 |
window.scrollTo( 0, yoffset.top - toolbar_height - 20 ); |
158 |
}); |
159 |
|
137 |
}); |
160 |
}); |
138 |
|
161 |
|
139 |
function redirect(dest){ |
162 |
function redirect(dest){ |
Lines 394-400
function Changefwk() {
Link Here
|
394 |
f.submit(); |
417 |
f.submit(); |
395 |
} |
418 |
} |
396 |
|
419 |
|
397 |
//]]> |
|
|
398 |
</script> |
420 |
</script> |
399 |
[% Asset.css("css/addbiblio.css") | $raw %] |
421 |
[% Asset.css("css/addbiblio.css") | $raw %] |
400 |
|
422 |
|
Lines 450-456
function Changefwk() {
Link Here
|
450 |
[% END %] |
472 |
[% END %] |
451 |
|
473 |
|
452 |
[% IF ( done ) %] |
474 |
[% IF ( done ) %] |
453 |
<script type="text/javascript"> |
475 |
<script> |
454 |
opener.document.forms['f'].biblionumber.value=[% biblionumber | html %]; |
476 |
opener.document.forms['f'].biblionumber.value=[% biblionumber | html %]; |
455 |
opener.document.forms['f'].title.value='[% title | html %]'; |
477 |
opener.document.forms['f'].title.value='[% title | html %]'; |
456 |
window.close(); |
478 |
window.close(); |
Lines 552-558
function Changefwk() {
Link Here
|
552 |
<a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a> |
574 |
<a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a> |
553 |
[% END %] |
575 |
[% END %] |
554 |
[% END %] |
576 |
[% END %] |
555 |
</div> |
577 |
<div class="toolbar-tabs-container"> |
|
|
578 |
<ul class="toolbar-tabs"> |
579 |
[%- FOREACH BIG_LOO IN BIG_LOOP -%][%- SET tabname = BIG_LOO.number + 1 -%][% IF loop.first %]<li class="selected">[% ELSE %]<li>[% END %]<a data-tabid="[% BIG_LOO.number %]" href="#tab[% BIG_LOO.number %]XX">[% tabname %]</a></li>[%- END -%] |
580 |
</ul> |
581 |
<ul class="tag_anchors_list"> |
582 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
583 |
[% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %] |
584 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
585 |
[% IF ( innerloo.tag ) %] |
586 |
<li class="tag_anchors tag_anchors_[% BIG_LOO.number %] [% tab_selected %]"><a class="tag_anchor" id="tag_anchor_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]" title="tag_anchor_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]" href="#div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">[% innerloo.tag %]</a></li> |
587 |
[% END %] |
588 |
[% END %] |
589 |
[% END %] |
590 |
</ul> |
591 |
</div> |
592 |
</div> <!-- /#toolbar.btn-toolbar --> |
556 |
|
593 |
|
557 |
[% IF bib_doesnt_exist %] |
594 |
[% IF bib_doesnt_exist %] |
558 |
<div class="dialog alert"> |
595 |
<div class="dialog alert"> |
Lines 578-588
function Changefwk() {
Link Here
|
578 |
</ul> |
615 |
</ul> |
579 |
|
616 |
|
580 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
617 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
|
|
618 |
[% SET tabname = BIG_LOO.number + 1 %] |
581 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
619 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
582 |
|
620 |
|
|
|
621 |
<h3>Section [% tabname %]</h3> |
583 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
622 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
584 |
[% IF ( innerloo.tag ) %] |
623 |
[% IF ( innerloo.tag ) %] |
585 |
<div class="tag" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
624 |
<div class="tag clearfix" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]"> |
586 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
625 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
587 |
[% IF advancedMARCEditor %] |
626 |
[% IF advancedMARCEditor %] |
588 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a> |
627 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a> |
589 |
- |
|
|