Lines 1-70
Link Here
|
1 |
[% BLOCK sourcetab %] |
1 |
[% BLOCK sourcetab %] |
2 |
<div id="tabrecord[% record.recordid | html %]" role="tabpanel" class="tab-pane"> |
2 |
<div class="record"> |
3 |
<div class="record"> |
3 |
<ul id="ulrecord[% record.recordid | html %]"> |
4 |
<ul id="ulrecord[% record.recordid | html %]"> |
4 |
[% FOREACH field IN record.display %] |
5 |
[% FOREACH field IN record.display %] |
5 |
[% IF field.tag != biblionumbertag %] |
6 |
[% IF field.tag != biblionumbertag %] |
6 |
<li id="k[% field.key | html %]"> |
7 |
<li id="k[% field.key | html %]"> |
7 |
[% IF (tabrecord.reference) %] |
8 |
[% IF (tabrecord.reference) %] |
8 |
<input type="checkbox" checked="checked" class="fieldpick" id="rec_[% record.recordid | html %]_[% field.key | html %]" /> |
9 |
<input type="checkbox" checked="checked" class="fieldpick" id="rec_[% record.recordid | html %]_[% field.key | html %]" /> |
9 |
[% ELSE %] |
10 |
[% ELSE %] |
10 |
<input type="checkbox" class="fieldpick" id="rec_[% record.recordid | html %]_[% field.key | html %]" /> |
11 |
<input type="checkbox" class="fieldpick" id="rec_[% record.recordid | html %]_[% field.key | html %]" /> |
11 |
[% END %] |
12 |
[% END %] |
12 |
<label for="rec_[% record.recordid | html %]_[% field.key | html %]"><span class="field">[% field.tag | html %]</span></label> |
13 |
<label for="rec_[% record.recordid | html %]_[% field.key | html %]"><span class="field">[% field.tag | html %]</span></label> |
|
|
14 |
|
13 |
|
15 |
<input type="hidden" name="tag_[% field.tag | html %]_indicator1_[% field.key | html %]" value="[% field.indicator1 | html %]" /> |
14 |
<input type="hidden" name="tag_[% field.tag | html %]_indicator1_[% field.key | html %]" value="[% field.indicator1 | html %]" /> |
16 |
<input type="hidden" name="tag_[% field.tag | html %]_indicator2_[% field.key | html %]" value="[% field.indicator2 | html %]" /> |
15 |
<input type="hidden" name="tag_[% field.tag | html %]_indicator2_[% field.key | html %]" value="[% field.indicator2 | html %]" /> |
17 |
[% IF ( field.value ) %] |
16 |
[% IF ( field.value ) %] |
18 |
/ [% field.value | html %] |
17 |
/ [% field.value | html %] |
19 |
<input type="hidden" name="tag_[% field.tag | html %]_code_00_[% field.key | html %]" value="00" /> |
18 |
<input type="hidden" name="tag_[% field.tag | html %]_code_00_[% field.key | html %]" value="00" /> |
20 |
<input type="hidden" name="tag_[% field.tag | html %]_subfield_00_[% field.key | html %]" value="[% field.value | html %]" /> |
19 |
<input type="hidden" name="tag_[% field.tag | html %]_subfield_00_[% field.key | html %]" value="[% field.value | html %]" /> |
21 |
[% END %] |
20 |
[% END %] |
22 |
|
21 |
|
23 |
[% IF ( field.subfield.size ) %] |
22 |
[% IF ( field.subfield.size ) %] |
24 |
<ul> |
23 |
<ul> |
25 |
[% FOREACH subfield IN field.subfield %] |
24 |
[% FOREACH subfield IN field.subfield %] |
26 |
<li id="k[% subfield.subkey | html %]"> |
25 |
<li id="k[% subfield.subkey | html %]"> |
27 |
[% IF (tabrecord.reference) %] |
26 |
[% IF (tabrecord.reference) %] |
28 |
<input type="checkbox" checked="checked" class="subfieldpick" id="rec_[% record.recordid | html %]_[% subfield.subkey | html %]" /> |
27 |
<input type="checkbox" checked="checked" class="subfieldpick" id="rec_[% record.recordid | html %]_[% subfield.subkey | html %]" /> |
29 |
[% ELSE %] |
28 |
[% ELSE %] |
30 |
<input type="checkbox" class="subfieldpick" id="rec_[% record.recordid | html %]_[% subfield.subkey | html %]" /> |
29 |
<input type="checkbox" class="subfieldpick" id="rec_[% record.recordid | html %]_[% subfield.subkey | html %]" /> |
31 |
[% END %] |
30 |
[% END %] |
32 |
<label for="rec_[% record.recordid | html %]_[% subfield.subkey | html %]"><span class="subfield">[% subfield.subtag | html %]</span> / [% subfield.value | html %]</label> |
31 |
<label for="rec_[% record.recordid | html %]_[% subfield.subkey | html %]"><span class="subfield">[% subfield.subtag | html %]</span> / [% subfield.value | html %]</label> |
33 |
<input type="hidden" name="tag_[% field.tag | html %]_code_[% subfield.subtag | html %]_[% field.key | html %]_[% subfield.subkey | html %]" value="[% subfield.subtag | html %]" /> |
32 |
<input type="hidden" name="tag_[% field.tag | html %]_code_[% subfield.subtag | html %]_[% field.key | html %]_[% subfield.subkey | html %]" value="[% subfield.subtag | html %]" /> |
34 |
<input type="hidden" name="tag_[% field.tag | html %]_subfield_[% subfield.subtag | html %]_[% subfield.key | html %]_[% subfield.subkey | html %]" value="[% subfield.value | html %]" /> |
33 |
<input type="hidden" name="tag_[% field.tag | html %]_subfield_[% subfield.subtag | html %]_[% subfield.key | html %]_[% subfield.subkey | html %]" value="[% subfield.value | html %]" /> |
35 |
</li> |
34 |
</li> |
36 |
[% END %] |
35 |
[% END %] |
37 |
</ul> |
36 |
</ul> |
38 |
[% END %] |
37 |
[% END %] |
39 |
</li> |
38 |
</li> |
40 |
[% END %] |
|
|
41 |
[% END %] |
39 |
[% END %] |
42 |
</ul> |
40 |
[% END %] |
43 |
</div><!-- /div.record --> |
41 |
</ul> |
44 |
</div><!-- /div#tabrecordXXX --> |
42 |
</div><!-- /div.record --> |
45 |
[% END %] |
43 |
[% END %] |
46 |
|
44 |
|
47 |
[% BLOCK mergesource %] |
45 |
[% BLOCK mergesource %] |
48 |
<div id="tabs" class="toptabs"> |
46 |
|
|
|
47 |
[% WRAPPER tabs id= "tabs" %] |
49 |
<h2>Source records</h2> |
48 |
<h2>Source records</h2> |
50 |
<ul class="nav nav-tabs" role="tablist"> |
49 |
[% WRAPPER tabs_nav %] |
51 |
[% FOREACH record IN sourcerecords %] |
50 |
[% FOREACH record IN sourcerecords %] |
52 |
<li role="presentation"> |
51 |
[% WRAPPER tab_item tabname= "tabrecord${record.recordid}" %] |
53 |
<a href="#tabrecord[% record.recordid | uri %]" aria-controls="tabrecord[% record.recordid | uri %]" role="tab" data-toggle="tab"> |
52 |
[% record.recordid | html %] |
54 |
[% record.recordid | html %] |
53 |
[% IF record.reference %]<span>(ref)</span>[% END %] |
55 |
[% IF record.reference %]<span>(ref)</span>[% END %] |
54 |
[% END %] |
56 |
</a> |
|
|
57 |
</li> |
58 |
[% END %] |
55 |
[% END %] |
59 |
</ul> |
56 |
[% END # /WRAPPER tabs_nav %] |
60 |
<div class="tab-content"> |
57 |
|
|
|
58 |
[% WRAPPER tab_panels %] |
61 |
[% IF ( sourcerecords.size ) %] |
59 |
[% IF ( sourcerecords.size ) %] |
62 |
[% FOREACH record IN sourcerecords %] |
60 |
[% FOREACH record IN sourcerecords %] |
63 |
[% PROCESS sourcetab tabrecord=record %] |
61 |
[% WRAPPER tab_panel tabname="tabrecord${record.recordid}" %] |
|
|
62 |
[% PROCESS sourcetab tabrecord=record %] |
63 |
[% END %] |
64 |
[% END %] |
64 |
[% END %] |
65 |
[% END %] |
65 |
[% END %] |
66 |
</div> <!-- /.tab-content --> |
66 |
[% END # /WRAPPER tab_panels %] |
67 |
</div> <!-- // #tabs --> |
67 |
[% END # /WRAPPER tabs %] |
|
|
68 |
|
68 |
[% END %] |
69 |
[% END %] |
69 |
|
70 |
|
70 |
[% BLOCK mergetarget %] |
71 |
[% BLOCK mergetarget %] |
71 |
- |
|
|