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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-19 / +63 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4
[% INCLUDE 'datatables.inc' %]
3
<title>Koha &rsaquo; Cataloging</title>
5
<title>Koha &rsaquo; Cataloging</title>
4
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript">
7
<script type="text/javascript">
Lines 41-46 Link Here
41
            $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
43
            $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
42
        });
44
        });
43
45
46
        $('#reservoir_search_table').dataTable($.extend(true, {}, dataTablesDefaults, {
47
            "autoWidth": false,
48
            "aoColumnDefs": [
49
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
50
            ],
51
            "sPaginationType": "four_button"
52
        }));
53
54
        $('#catalogue_search_table').dataTable($.extend(true, {}, dataTablesDefaults, {
55
            "autoWidth": false,
56
            "aoColumnDefs": [
57
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
58
            ],
59
            "sPaginationType": "four_button"
60
        }));
61
44
     });
62
     });
45
63
46
    /* this function open a popup to search on z3950 server.  */
64
    /* this function open a popup to search on z3950 server.  */
Lines 132-148 Link Here
132
</div>
150
</div>
133
<div class="pages">[% pagination_bar %]</div>
151
<div class="pages">[% pagination_bar %]</div>
134
<div class="searchresults">
152
<div class="searchresults">
135
    <table>
153
    <table id="catalogue_search_table">
154
      <thead>
136
        <tr>
155
        <tr>
137
            <th>&nbsp;</th>
156
            <th>&nbsp;</th>
138
            <th>Title</th>
157
            <th>Title</th>
139
            <th>Location</th>
158
            <th>Location</th>
140
            <th>Preview</th>
159
            <th>&nbsp;</th>
141
            [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th>&nbsp;</th>[% ELSE %][% END %]
142
            [% IF ( CAN_user_editcatalogue_edit_items ) %]<th>&nbsp;</th>[% END %]
143
        </tr>
160
        </tr>
144
    [% FOREACH resultsloo IN resultsloop %]
161
      </thead>
145
        <tr>
162
      <tbody>
163
      [% FOREACH resultsloo IN resultsloop %]
164
        [% IF ( loop.even ) %]
165
            <tr class="highlight">
166
        [% ELSE %]
167
            <tr>
168
        [% END %]
146
            <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber %]" name="biblionumber" value="[% resultsloo.biblionumber %]" /></td>
169
            <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber %]" name="biblionumber" value="[% resultsloo.biblionumber %]" /></td>
147
            <td>
170
            <td>
148
                <p>
171
                <p>
Lines 195-206 Link Here
195
                        [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %]
218
                        [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %]
196
                    </span>
219
                    </span>
197
                </td>
220
                </td>
198
                    <td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber %]" class="previewData">Card</a>
221
                <td>
222
                  <div class="dropdown">
223
                    <a class="btn btn-mini dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber %]" role="button" data-toggle="dropdown" href="#">
224
                      Actions <b class="caret"></b>
225
                    </a>
226
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber %]">
227
                      <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
228
                      <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
229
                      [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]"><i class="fa fa-pencil"></i> Edit biblio</a></li>[% END %]
230
                      [% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>[% END %]
231
                    </ul>
232
                  </div>
199
                </td>
233
                </td>
200
                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]">Edit biblio</a></td>[% END %]
201
                [% IF ( CAN_user_editcatalogue_edit_items ) %]<td><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]">Add/Edit items</a></td>[% END %]
202
            </tr>
234
            </tr>
203
    [% END %]
235
    [% END %]
236
    </tbody>
204
    </table>
237
    </table>
205
</div>
238
</div>
206
[% ELSE %]
239
[% ELSE %]
Lines 216-231 Link Here
216
<div id="searchresult-breeding">
249
<div id="searchresult-breeding">
217
    <h3>Biblios in reservoir</h3>
250
    <h3>Biblios in reservoir</h3>
218
    [% IF ( breeding_loop ) %]
251
    [% IF ( breeding_loop ) %]
219
        <table>
252
        <table id="reservoir_search_table">
253
          <thead>
220
            <tr>
254
            <tr>
221
                <th>Title</th>
255
                <th>Title</th>
222
                <th>ISBN</th>
256
                <th>ISBN</th>
223
                <th>Date</th>
257
                <th>Date</th>
224
                <th>Edition</th>
258
                <th>Edition</th>
225
                <th>Coming from</th>
259
                <th>Coming from</th>
226
                <th>Preview</th>
260
                <th>&nbsp;</th>
227
                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th>&nbsp;</th>[% END %]
228
            </tr>
261
            </tr>
262
          </thead>
263
          <tbody>
229
            [% FOREACH breeding_loo IN breeding_loop %]
264
            [% FOREACH breeding_loo IN breeding_loop %]
230
               <tr>
265
               <tr>
231
                <td>[% breeding_loo.title |html %]
266
                <td>[% breeding_loo.title |html %]
Lines 234-246 Link Here
234
                <td>[% breeding_loo.copyrightdate %]</td>
269
                <td>[% breeding_loo.copyrightdate %]</td>
235
                <td>[% breeding_loo.edition %]</td>
270
                <td>[% breeding_loo.edition %]</td>
236
                <td>[% breeding_loo.file %]</td>
271
                <td>[% breeding_loo.file %]</td>
237
                <td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.id %]" class="previewData">Card</a>
272
                <td>
238
                    </td>
273
                  <div class="dropdown">
239
                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td>
274
                    <a class="btn btn-mini dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id %]" role="button" data-toggle="dropdown" href="#">
240
                    <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]">Add biblio</a>
275
                      Actions <b class="caret"></b>
241
                </td>[% END %]
276
                    </a>
242
            </tr>
277
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id %]">
278
                      <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
279
                      <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.id %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
280
                      [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
281
                        <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]"><i class="fa fa-plus"></i> Add biblio</a></li>
282
                      [% END %]
283
                    </ul>
284
                  </div>
285
               </td>
286
               </tr>
243
            [% END %]
287
            [% END %]
288
          </tbody>
244
        </table>
289
        </table>
245
    [% ELSE %]
290
    [% ELSE %]
246
    <p>None</p>
291
    <p>None</p>
247
- 

Return to bug 15952