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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt (-19 / +32 lines)
Lines 36-64 Link Here
36
</div>
36
</div>
37
37
38
    [% IF items.count %]
38
    [% IF items.count %]
39
        <div class="lostitems-table_table_controls">
39
        [% IF csv_profiles.count %]
40
            <div class="lostitems-table_table_controls">
40
                | <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
41
                | <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
41
                <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
42
                <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
42
                <span class="itemselection_actions">
43
                <span class="itemselection_actions">
43
                  | Actions:
44
                    | Actions:
44
                  [% IF csv_profiles.count %]
45
                    <a class="itemselection_action_export"><i class="fa fa-download"></i> Export selected items</a>
45
                      <a class="itemselection_action_export"><i class="fa fa-download"></i> Export selected items</a>
46
                    Using the following CSV profile:
46
                      Using the following CSV profile:
47
                    <select name="csv_profile_id" id="csv_profile_id">
47
                      <select name="csv_profile_id" id="csv_profile_id">
48
                        [% FOREACH csv_profile IN csv_profiles %]
48
                          [% FOREACH csv_profile IN csv_profiles %]
49
                            <option value="[% csv_profile.export_format_id %]">
49
                              <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</<option>
50
                                [% csv_profile.profile %]
50
                          [% END %]
51
                            </option>
51
                      </select>
52
                        [% END %]
52
                  [% ELSE %]
53
                    </select>
53
                      <span class="itemselection_action_export" title="You should create a CSV profile for export_lost_items"><i class="fa fa-download"></i> Export selected items</a>
54
                  [% END %]
55
                </span>
54
                </span>
56
        </div>
55
            </div>
56
        [% ELSE %]
57
            <div class="dialog message">
58
                [% IF ( CAN_user_tools_manage_csv_profiles ) %]
59
                    To enable the export of selected items, <a href="/cgi-bin/koha/tools/csv-profiles.pl">create a CSV profile</a> of the type "SQL" with usage option "Export lost items in report."
60
                [% ELSE %]
61
                    To enable the export of selected items, your administrator must create a CSV profile of the type "SQL" with usage option "Export lost items in report."
62
                [% END %]
63
            </div>
64
            <div class="lostitems-table_table_controls">
65
            </div>
66
        [% END %]
57
67
58
        <table id="lostitems-table">
68
        <table id="lostitems-table">
59
            <thead>
69
            <thead>
60
                <tr>
70
                <tr>
61
                    <th class="NoSort"></th>
71
                    [% IF csv_profiles.count %]
72
                        <th class="NoSort"></th>
73
                    [% END %]
62
                    <th>Title</th>
74
                    <th>Title</th>
63
                    <th>Author</th>
75
                    <th>Author</th>
64
                    <th>Lost status</th>
76
                    <th>Lost status</th>
Lines 79-87 Link Here
79
            <tbody>
91
            <tbody>
80
                [% FOREACH item IN items %]
92
                [% FOREACH item IN items %]
81
                    <tr>
93
                    <tr>
82
                        <td style="text-align:center;vertical-align:middle">
94
                        [% IF csv_profiles.count %]
83
                            <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
95
                            <td style="text-align:center;vertical-align:middle">
84
                        </td>
96
                                <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
97
                            </td>
98
                        [% END %]
85
                        <td>
99
                        <td>
86
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a>
100
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a>
87
                        </td>
101
                        </td>
88
- 

Return to bug 20807