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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt (+1 lines)
Lines 167-172 Link Here
167
167
168
                <div class="page-section">
168
                <div class="page-section">
169
                    <h3>History</h3>
169
                    <h3>History</h3>
170
170
                    <table class="accountline-offsets-table" id="accountline-debits-table">
171
                    <table class="accountline-offsets-table" id="accountline-debits-table">
171
                        <thead>
172
                        <thead>
172
                            <tr>
173
                            <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt (-16 / +17 lines)
Lines 27-48 Link Here
27
    <div class="row">
27
    <div class="row">
28
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
28
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
29
29
30
  <h1>Koha offline circulation</h1>
30
            <h1>Koha offline circulation</h1>
31
  <p>Your file was uploaded. Once all files are uploaded, please process them in pending offline circulation actions.</p>
31
            <div class="page-section">
32
32
                <p>Your file was uploaded. Once all files are uploaded, please process them in pending offline circulation actions.</p>
33
[% FOREACH message IN messages %]
33
34
  [% IF ( message.message ) %]
34
                [% FOREACH message IN messages %]
35
      [% IF ( message.ERROR_file_version ) %]
35
                    [% IF ( message.message ) %]
36
          <div class="dialog alert"><p>Warning: This file is version [% message.upload_version | html %], but I only know how to import version [% message.current_version | html %]. I'll try my best.</p>
36
                        [% IF ( message.ERROR_file_version ) %]
37
      [% END %]
37
                            <div class="dialog alert"><p>Warning: This file is version [% message.upload_version | html %], but I only know how to import version [% message.current_version | html %]. I'll try my best.</div>
38
  [% END %]
38
                        [% END %]
39
[% END %]
39
                    [% END %]
40
40
                [% END %]
41
<p><a href="process_koc.pl">Upload another KOC file</a></p>
41
42
42
                <p><a href="process_koc.pl">Upload another KOC file</a></p>
43
<p><a href="list.pl">View pending offline circulation actions</a></p>
43
44
44
                <p><a href="list.pl">View pending offline circulation actions</a></p>
45
            </div> <!-- /.page-section -->
46
        </div>
45
    </div>
47
    </div>
46
</div>
47
48
48
[% INCLUDE 'intranet-bottom.inc' %]
49
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-53 / +55 lines)
Lines 35-99 Link Here
35
35
36
        <h1>Offline circulation</h1>
36
        <h1>Offline circulation</h1>
37
37
38
	    [% IF ( pending_operations ) %]
38
        [% IF ( pending_operations ) %]
39
39
40
	        <form>
40
           <form>
41
                <p>
41
                <p>
42
                    <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
42
                    <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
43
                    <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
43
                    <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
44
                </p>
44
                </p>
45
45
46
	        <table id="operations">
46
            <div class="page-section">
47
	            <thead>
47
                <table id="operations">
48
		            <tr>
48
                    <thead>
49
		                <th>&nbsp;</th>
49
                        <tr>
50
			            <th>Date</th>
50
                            <th>&nbsp;</th>
51
			            <th>Action</th>
51
                            <th>Date</th>
52
			            <th>Barcode</th>
52
                            <th>Action</th>
53
                                    <th>Card number</th>
53
                            <th>Barcode</th>
54
                                    <th>Amount</th>
54
                            <th>Card number</th>
55
		            </tr>
55
                            <th>Amount</th>
56
		        </thead>
56
                        </tr>
57
		        <tbody>
57
                    </thead>
58
		            [% FOREACH operation IN pending_operations %]
58
                    <tbody>
59
		                <tr class="oc-[% operation.action | html %]">
59
                        [% FOREACH operation IN pending_operations %]
60
                            <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
60
                            <tr class="oc-[% operation.action | html %]">
61
                            <td>
61
                                <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
62
                                <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
62
                                <td>
63
                            </td>
63
                                    <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
64
                            <td>
64
                                </td>
65
                                [% SWITCH ( operation.action ) -%]
65
                                <td>
66
                                    [%   CASE "issue" -%]
66
                                    [% SWITCH ( operation.action ) -%]
67
                                        <span>Check out</span>
67
                                        [%   CASE "issue" -%]
68
                                    [%   CASE "return" -%]
68
                                            <span>Check out</span>
69
                                        <span>Check in</span>
69
                                        [%   CASE "return" -%]
70
                                    [%   CASE "payment" -%]
70
                                            <span>Check in</span>
71
                                        <span>Payment</span>
71
                                        [%   CASE "payment" -%]
72
                                    [%   CASE # default case -%]
72
                                            <span>Payment</span>
73
                                        <span>[% operation.action | html %]</span>
73
                                        [%   CASE # default case -%]
74
                                [% END -%]
74
                                            <span>[% operation.action | html %]</span>
75
                            </td>
75
                                    [% END -%]
76
			                <td>
76
                                </td>
77
                                [% IF ( operation.biblionumber ) %]
77
                                <td>
78
                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
78
                                    [% IF ( operation.biblionumber ) %]
79
			                    [% ELSE %]
79
                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
80
			                        <span class="error">[% operation.barcode | html %]</span>
80
                                    [% ELSE %]
81
			                    [% END %]
81
                                        <span class="error">[% operation.barcode | html %]</span>
82
			                </td>
82
                                    [% END %]
83
			                <td>
83
                                </td>
84
			                [% IF ( operation.actionissue || operation.actionpayment) %]
84
                                <td>
85
		                        [% IF ( operation.borrowernumber ) %]
85
                                    [% IF ( operation.actionissue || operation.actionpayment) %]
86
                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
86
                                        [% IF ( operation.borrowernumber ) %]
87
		                        [% ELSE %]
87
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
88
		                            <span class="error">[% operation.cardnumber | html %]</span>
88
                                        [% ELSE %]
89
		                        [% END %]
89
                                            <span class="error">[% operation.cardnumber | html %]</span>
90
			                [% END %]
90
                                        [% END %]
91
			                </td>
91
                                    [% END %]
92
                                        <td>[% operation.amount | html %]</td>
92
                                </td>
93
		                </tr>
93
                                <td>[% operation.amount | html %]</td>
94
		            [% END %]
94
                            </tr>
95
		        </tbody>
95
                        [% END %]
96
	        </table>
96
                    </tbody>
97
                </table>
98
            </div> <!-- /.page-section -->
97
99
98
            <p id="actions">For the selected operations:
100
            <p id="actions">For the selected operations:
99
            <input type="button" id="process" value="Process" />
101
            <input type="button" id="process" value="Process" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-47 / +49 lines)
Lines 67-119 Link Here
67
                        <div id="manage-patroncards-layouts">
67
                        <div id="manage-patroncards-layouts">
68
                            [% IF ( table_loop ) %]
68
                            [% IF ( table_loop ) %]
69
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]">
69
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]">
70
                            <h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
70
                            <div class="page-section">
71
                            <table>
71
                                <h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
72
                                [% FOREACH table_loo IN table_loop %]
72
                                <table>
73
                                [% IF ( table_loo.header_fields ) %]
73
                                    [% FOREACH table_loo IN table_loop %]
74
                                <tr>
74
                                        [% IF ( table_loo.header_fields ) %]
75
                                [% FOREACH header_field IN table_loo.header_fields %]
75
                                            <tr>
76
                                    [% SWITCH header_field.field_label -%]
76
                                                [% FOREACH header_field IN table_loo.header_fields %]
77
                                        [%-  CASE 'Layout ID'     -%]<th>Layout ID</th>
77
                                                    [% SWITCH header_field.field_label -%]
78
                                        [%-  CASE 'Layout'        -%]<th>Layout</th>
78
                                                        [%-  CASE 'Layout ID'     -%]<th>Layout ID</th>
79
                                        [%-  CASE 'Action'        -%]<th>Action</th>
79
                                                        [%-  CASE 'Layout'        -%]<th>Layout</th>
80
                                        [%-  CASE 'Actions'       -%]<th class="noExport">Actions</th>
80
                                                        [%-  CASE 'Action'        -%]<th>Action</th>
81
                                        [%-  CASE 'Select'        -%][% IF ( print ) %]<th>Select</th>[% END %]
81
                                                        [%-  CASE 'Actions'       -%]<th class="noExport">Actions</th>
82
                                        [%-  CASE 'Template ID'   -%]<th>Template ID</th>
82
                                                        [%-  CASE 'Select'        -%][% IF ( print ) %]<th>Select</th>[% END %]
83
                                        [%-  CASE 'Template Name' -%]<th>Template name</th>
83
                                                        [%-  CASE 'Template ID'   -%]<th>Template ID</th>
84
                                        [%-  CASE 'Description'   -%]<th>Description</th>
84
                                                        [%-  CASE 'Template Name' -%]<th>Template name</th>
85
                                        [%-  CASE 'Profile ID'    -%]<th>Profile ID</th>
85
                                                        [%-  CASE 'Description'   -%]<th>Description</th>
86
                                        [%-  CASE 'Printer Name'  -%]<th>Printer name</th>
86
                                                        [%-  CASE 'Profile ID'    -%]<th>Profile ID</th>
87
                                        [%-  CASE 'Paper Bin'     -%]<th>Paper bin</th>
87
                                                        [%-  CASE 'Printer Name'  -%]<th>Printer name</th>
88
                                        [%-  CASE 'Batch ID'      -%]<th>Batch ID</th>
88
                                                        [%-  CASE 'Paper Bin'     -%]<th>Paper bin</th>
89
                                        [%-  CASE 'Patron Count'  -%]<th>Patron count</th>
89
                                                        [%-  CASE 'Batch ID'      -%]<th>Batch ID</th>
90
                                        [%-  CASE                 -%]<th>[% header_field.field_label | html %]</th>
90
                                                        [%-  CASE 'Patron Count'  -%]<th>Patron count</th>
91
                                    [% END -%]
91
                                                        [%-  CASE                 -%]<th>[% header_field.field_label | html %]</th>
92
                                [% END %]
92
                                                    [% END -%]
93
                                </tr>
93
                                                [% END %]
94
                                [% ELSE %]
94
                                            </tr>
95
                                <tr>
95
                                        [% ELSE %]
96
                                [% FOREACH text_field IN table_loo.text_fields %]
96
                                            <tr>
97
                                [% IF ( text_field.select_field ) %]
97
                                                [% FOREACH text_field IN table_loo.text_fields %]
98
                                    <td>
98
                                                    [% IF ( text_field.select_field ) %]
99
                                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a>
99
                                                        <td>
100
                                      [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
100
                                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a>
101
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
101
                                                        [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
102
                                    </td>
102
                                                        <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
103
                                    [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
103
                                                        </td>
104
                                [% ELSIF ( text_field.field_value ) %]
104
                                                        [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
105
                                    <td>[% text_field.field_value | html %]</td>
105
                                                    [% ELSIF ( text_field.field_value ) %]
106
                                [% ELSE %]
106
                                                        <td>[% text_field.field_value | html %]</td>
107
                                    <td>&nbsp;</td>
107
                                                    [% ELSE %]
108
                                [% END %]
108
                                                        <td>&nbsp;</td>
109
                                [% END %]
109
                                                    [% END %]
110
                                </tr>
110
                                                [% END %]
111
                                [% END %]
111
                                            </tr>
112
                                [% END %]
112
                                        [% END %]
113
                            </table>
113
                                    [% END %]
114
                            <fieldset class="action">
114
                                </table>
115
                                [% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
115
                                <fieldset class="action">
116
                            </fieldset>
116
                                    [% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
117
                                </fieldset>
118
                            </div> <!-- /.page-section -->
117
                            [% IF patron_lists %]
119
                            [% IF patron_lists %]
118
                            <fieldset class="rows">
120
                            <fieldset class="rows">
119
                                <legend>Or use a patron list</legend>
121
                                <legend>Or use a patron list</legend>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-43 / +45 lines)
Lines 110-158 Link Here
110
	<p>Use the dictionary to define custom criteria for reporting.</p>
110
	<p>Use the dictionary to define custom criteria for reporting.</p>
111
111
112
		[% IF ( definitions ) %]
112
		[% IF ( definitions ) %]
113
        <h2>Current terms</h2>
113
            <div class="page-section">
114
		<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
114
                <h2>Current terms</h2>
115
        <input type="hidden" name="phase" value="View Dictionary" />
115
                <form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
116
  [% IF ( areas ) %]
116
                    <input type="hidden" name="phase" value="View Dictionary" />
117
        Filter by area
117
                    [% IF ( areas ) %]
118
        <select name="area">
118
                        Filter by area
119
          <option value="">All</option>
119
                        <select name="area">
120
        [% FOREACH area IN areas %]
120
                            <option value="">All</option>
121
          [%- IF ( area.selected ) -%]
121
                            [% FOREACH area IN areas %]
122
          <option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
122
                                [%- IF ( area.selected ) -%]
123
          [%- ELSE -%]
123
                                    <option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
124
          <option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option>
124
                                [%- ELSE -%]
125
          [%- END -%]
125
                                    <option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option>
126
        [% END %]
126
                                [%- END -%]
127
        </select>
127
                            [% END %]
128
      <input type="submit" name="submit" class="btn btn-primary" value="Go" />
128
                        </select>
129
  [% END %]
129
                        <input type="submit" name="submit" class="btn btn-primary" value="Go" />
130
      </form>
130
                    [% END %]
131
      <br />
131
                </form>
132
        <table>
132
                <br />
133
            <tr>
133
                <table>
134
                <th>Name</th>
134
                    <tr>
135
                <th>Description</th>
135
                        <th>Name</th>
136
                <th>Area</th>
136
                        <th>Description</th>
137
                <th>Definition</th>
137
                        <th>Area</th>
138
                <th>Action</th>
138
                        <th>Definition</th>
139
            </tr>
139
                        <th>Action</th>
140
            [% FOREACH definition IN definitions %]
140
                    </tr>
141
            <tr>
141
                    [% FOREACH definition IN definitions %]
142
                <td>[% definition.name | html %]</td>
142
                    <tr>
143
                <td>[% definition.description | html %]</td>
143
                        <td>[% definition.name | html %]</td>
144
                <td>[% definition.areaname | html %]</td>
144
                        <td>[% definition.description | html %]</td>
145
                <td>[% definition.saved_sql | html %]</td>
145
                        <td>[% definition.areaname | html %]</td>
146
                <td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
146
                        <td>[% definition.saved_sql | html %]</td>
147
                    <input type="hidden" name="id" value="[% definition.id | html %]" />
147
                        <td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
148
                    <input type="hidden" name="phase" value="Delete Definition" />
148
                            <input type="hidden" name="id" value="[% definition.id | html %]" />
149
                    <button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
149
                            <input type="hidden" name="phase" value="Delete Definition" />
150
                </form></td>
150
                            <button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
151
            </tr>
151
                        </form></td>
152
            [% END %]
152
                    </tr>
153
        </table>
153
                    [% END %]
154
                [% ELSE %]
154
                </table>
155
                <div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
155
            </div> <!-- /.page-section -->
156
        [% ELSE %]
157
            <div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
156
		[% END %]
158
		[% END %]
157
[% END %]
159
[% END %]
158
160
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-104 / +106 lines)
Lines 281-394 Link Here
281
                            </div>
281
                            </div>
282
                        [% END %]
282
                        [% END %]
283
283
284
                        <table id="searchresults" class="dataTable">
284
                        <div class="page-section">
285
                            <thead>
285
                            <table id="searchresults" class="dataTable">
286
                                <tr>
286
                                <thead>
287
                                    [% IF ( itemsloop ) %]
287
                                    <tr>
288
                                        <th class="checkall">&nbsp;</th>
288
                                        [% IF ( itemsloop ) %]
289
                                    [% END %]
289
                                            <th class="checkall">&nbsp;</th>
290
                                    [% UNLESS ( item_level_itypes ) %]
290
                                        [% END %]
291
                                        <th>Item type</th>
291
                                        [% UNLESS ( item_level_itypes ) %]
292
                                    [% END %]
292
                                            <th>Item type</th>
293
                                    [% IF sortfield == 'title' %]
293
                                        [% END %]
294
                                        <th class="sorting_[% direction | html %]">
294
                                        [% IF sortfield == 'title' %]
295
                                    [% ELSE %]
295
                                            <th class="sorting_[% direction | html %]">
296
                                        <th class="sorting">
297
                                    [% END %]
298
                                        <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
299
                                    </th>
300
                                    [% IF sortfield == 'author' %]
301
                                        <th class="sorting_[% direction | html %]">
302
                                    [% ELSE %]
303
                                        <th class="sorting">
304
                                    [% END %]
305
                                        <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
306
                                    </th>
307
                                    [% IF sortfield == 'dateadded' %]
308
                                        <th class="sorting_[% direction | html %]">
309
                                    [% ELSE %]
310
                                        <th class="sorting">
311
                                    [% END %]
312
                                        <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
313
                                    </th>
314
                                    [% IF sortfield == 'itemcallnumber' %]
315
                                        <th class="sorting_[% direction | html %]">
316
                                    [% ELSE %]
317
                                        <th class="sorting">
318
                                    [% END %]
319
                                        <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
320
                                    </th>
321
                                </tr>
322
                            </thead>
323
                            [% FOREACH itemsloo IN itemsloop %]
324
                                <tr>
325
                                    [% IF itemsloop %]
326
                                        <td>
327
                                            <input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
328
                                        </td>
329
                                    [% END %]
330
                                    [% UNLESS ( item_level_itypes ) %]
331
                                        <td>
332
                                            [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]
333
                                                <img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />
334
                                            [% END %]
335
                                            <span class="itypetext">[% itemsloo.description | html %]</span>
336
                                        </td>
337
                                    [% END %]
338
                                    <td>
339
                                        [% IF ( itemsloo.XSLTBloc ) %]
340
                                            [% itemsloo.XSLTBloc | $raw %]
341
                                        [% ELSE %]
296
                                        [% ELSE %]
342
                                            [% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
297
                                            <th class="sorting">
343
                                            </a>
344
                                        [% END %]
298
                                        [% END %]
345
                                        <p class="hold">
299
                                            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
346
                                            [% IF ( itemsloo.notforloan ) %]
300
                                        </th>
347
                                                <span class="noholdstext">No holds allowed</span>
301
                                        [% IF sortfield == 'author' %]
348
                                            [% ELSE %]
302
                                            <th class="sorting_[% direction | html %]">
349
                                                [% IF ( itemsloo.ITEM_RESULTS.count ) %]
303
                                        [% ELSE %]
350
                                                    <a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
304
                                            <th class="sorting">
351
                                                    [% IF ( holdfor ) %]
305
                                        [% END %]
352
                                                        <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>
306
                                            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
353
                                                    [% END %]
307
                                        </th>
354
                                                [% ELSE %]
308
                                        [% IF sortfield == 'dateadded' %]
355
                                                    <span class="noholdstext">No holds allowed</span>
309
                                            <th class="sorting_[% direction | html %]">
310
                                        [% ELSE %]
311
                                            <th class="sorting">
312
                                        [% END %]
313
                                            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
314
                                        </th>
315
                                        [% IF sortfield == 'itemcallnumber' %]
316
                                            <th class="sorting_[% direction | html %]">
317
                                        [% ELSE %]
318
                                            <th class="sorting">
319
                                        [% END %]
320
                                            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
321
                                        </th>
322
                                    </tr>
323
                                </thead>
324
                                [% FOREACH itemsloo IN itemsloop %]
325
                                    <tr>
326
                                        [% IF itemsloop %]
327
                                            <td>
328
                                                <input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
329
                                            </td>
330
                                        [% END %]
331
                                        [% UNLESS ( item_level_itypes ) %]
332
                                            <td>
333
                                                [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]
334
                                                    <img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />
356
                                                [% END %]
335
                                                [% END %]
336
                                                <span class="itypetext">[% itemsloo.description | html %]</span>
337
                                            </td>
338
                                        [% END %]
339
                                        <td>
340
                                            [% IF ( itemsloo.XSLTBloc ) %]
341
                                                [% itemsloo.XSLTBloc | $raw %]
342
                                            [% ELSE %]
343
                                                [% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
344
                                                </a>
357
                                            [% END %]
345
                                            [% END %]
358
                                            [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
346
                                            <p class="hold">
359
                                                | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a>
347
                                                [% IF ( itemsloo.notforloan ) %]
360
                                            [% END %]
348
                                                    <span class="noholdstext">No holds allowed</span>
361
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
349
                                                [% ELSE %]
362
                                                | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a>
350
                                                    [% IF ( itemsloo.ITEM_RESULTS.count ) %]
363
                                            [% END %]
351
                                                        <a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
364
                                        </p>
352
                                                        [% IF ( holdfor ) %]
365
                                    </td>
353
                                                            <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>
366
                                    <td>
354
                                                        [% END %]
367
                                        [% itemsloo.author | html %]
355
                                                    [% ELSE %]
368
                                    </td>
356
                                                        <span class="noholdstext">No holds allowed</span>
369
                                    <td>
370
                                        [% itemsloo.dateadded | $KohaDates%]
371
                                    </td>
372
                                    <td>
373
                                        <ul>
374
                                            [% FOREACH item IN itemsloo.ITEM_RESULTS %]
375
                                                <li>
376
                                                    [% Branches.GetName(item.holdingbranch) | html %]
377
                                                    [% IF ( item.location ) %]
378
                                                        <span class="shelvingloc">
379
                                                            [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
380
                                                        </span>
381
                                                    [% END %]
382
                                                    [% IF ( item.itemcallnumber ) %]
383
                                                        [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
384
                                                    [% END %]
357
                                                    [% END %]
385
                                                </li>
358
                                                [% END %]
386
                                            [% END # /FOREACH item %]
359
                                                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
387
                                        </ul>
360
                                                    | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a>
388
                                    </td>
361
                                                [% END %]
389
                                </tr>
362
                                                [% IF ( CAN_user_editcatalogue_edit_items ) %]
390
                            [% END #/FOREACH itemsloo %]
363
                                                    | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a>
391
                        </table> <!-- /#searchresults -->
364
                                                [% END %]
365
                                            </p>
366
                                        </td>
367
                                        <td>
368
                                            [% itemsloo.author | html %]
369
                                        </td>
370
                                        <td>
371
                                            [% itemsloo.dateadded | $KohaDates%]
372
                                        </td>
373
                                        <td>
374
                                            <ul>
375
                                                [% FOREACH item IN itemsloo.ITEM_RESULTS %]
376
                                                    <li>
377
                                                        [% Branches.GetName(item.holdingbranch) | html %]
378
                                                        [% IF ( item.location ) %]
379
                                                            <span class="shelvingloc">
380
                                                                [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
381
                                                            </span>
382
                                                        [% END %]
383
                                                        [% IF ( item.itemcallnumber ) %]
384
                                                            [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
385
                                                        [% END %]
386
                                                    </li>
387
                                                [% END # /FOREACH item %]
388
                                            </ul>
389
                                        </td>
390
                                    </tr>
391
                                [% END #/FOREACH itemsloo %]
392
                            </table> <!-- /#searchresults -->
393
                        </div> <!-- /.page-section -->
394
392
                        <div class="pages">[% pagination_bar | $raw %]</div>
395
                        <div class="pages">[% pagination_bar | $raw %]</div>
393
                    </form>
396
                    </form>
394
                [% END # /IF itemsloop %]
397
                [% END # /IF itemsloop %]
395
- 

Return to bug 32634