View | Details | Raw Unified | Return to bug 33596
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-38 / +39 lines)
Lines 50-97 div#result { margin-top: 1em; } Link Here
50
       [% END %]
50
       [% END %]
51
51
52
    [% ELSE %]
52
    [% ELSE %]
53
        <p>The merge was successful. <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% ref_biblionumber | uri %]">View the merged record.</a></p>
53
        <div class="dialog message">The merge was successful. <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% ref_biblionumber | uri %]">View the merged record.</a></div>
54
        <h3>Report</h3>
54
        <div class="page-section">
55
        <table>
55
            <h3>Report</h3>
56
            <thead>
56
            <table>
57
                <tr>
57
                <thead>
58
                    <th>Biblionumber</th>
59
                    [% FOREACH key IN report_header.keys.sort %]
60
                        [% tag = key.substr(0, 3) %]
61
                        [% code = key.substr(3, 1) %]
62
                        [% IF code == '@' %]
63
                            [% header = tag %]
64
                        [% ELSE %]
65
                            [% header = tag _ '$' _ code %]
66
                        [% END %]
67
                        <th>[% header | html %]</th>
68
                    [% END %]
69
                </tr>
70
            </thead>
71
            <tbody>
72
                [% FOREACH record IN report_records %]
73
                    <tr>
58
                    <tr>
74
                        <td>
59
                        <th>Biblionumber</th>
75
                            [% record.biblionumber | html %]
76
                            [% IF loop.first %]
77
                                <span>(record kept)</span>
78
                            [% END %]
79
                        </td>
80
                        [% FOREACH key IN report_header.keys.sort %]
60
                        [% FOREACH key IN report_header.keys.sort %]
61
                            [% tag = key.substr(0, 3) %]
62
                            [% code = key.substr(3, 1) %]
63
                            [% IF code == '@' %]
64
                                [% header = tag %]
65
                            [% ELSE %]
66
                                [% header = tag _ '$' _ code %]
67
                            [% END %]
68
                            <th>[% header | html %]</th>
69
                        [% END %]
70
                    </tr>
71
                </thead>
72
                <tbody>
73
                    [% FOREACH record IN report_records %]
74
                        <tr>
81
                            <td>
75
                            <td>
82
                                [% values = record.fields.$key %]
76
                                [% record.biblionumber | html %]
83
                                [% IF values %]
77
                                [% IF loop.first %]
84
                                    [% FOREACH value IN record.fields.$key %]
78
                                    <span>(record kept)</span>
85
                                        [% value | html %]
86
                                        [% UNLESS loop.last %]<br />[% END %]
87
                                    [% END %]
88
                                [% END %]
79
                                [% END %]
89
                            </td>
80
                            </td>
90
                        [% END %]
81
                            [% FOREACH key IN report_header.keys.sort %]
91
                    </tr>
82
                                <td>
92
                [% END %]
83
                                    [% values = record.fields.$key %]
93
            </tbody>
84
                                    [% IF values %]
94
        </table>
85
                                        [% FOREACH value IN record.fields.$key %]
86
                                            [% value | html %]
87
                                            [% UNLESS loop.last %]<br />[% END %]
88
                                        [% END %]
89
                                    [% END %]
90
                                </td>
91
                            [% END %]
92
                        </tr>
93
                    [% END %]
94
                </tbody>
95
            </table>
96
        </div> <!-- /.page-section -->
95
    [% END %]
97
    [% END %]
96
98
97
[% ELSE %]
99
[% ELSE %]
98
- 

Return to bug 33596