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

(-)a/catalogue/itemsearch.pl (-3 / +4 lines)
Lines 251-260 if ( defined $format ) { Link Here
251
    }
251
    }
252
252
253
    $template->param(
253
    $template->param(
254
        filter => $filter,
254
        filter        => $filter,
255
        search_params => $search_params,
255
        search_params => $search_params,
256
        results => $results,
256
        results       => $results,
257
        total_rows => $total_rows,
257
        total_rows    => $total_rows,
258
        user          => Koha::Patrons->find( $borrowernumber ),
258
    );
259
    );
259
260
260
    if ($format eq 'csv') {
261
    if ($format eq 'csv') {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc (-1 / +1 lines)
Lines 32-37 Link Here
32
  "[% (item.issues || 0) | html %]",
32
  "[% (item.issues || 0) | html %]",
33
  "[% IF item.checkout %][% item.checkout.date_due | $KohaDates %][% END %]",
33
  "[% IF item.checkout %][% item.checkout.date_due | $KohaDates %][% END %]",
34
  "[% FILTER escape_quotes ~%]
34
  "[% FILTER escape_quotes ~%]
35
    <div class="btn-group dropup"><button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-pencil"></i> Edit <span class="caret"></span> </button> <ul class="dropdown-menu pull-right"> <li><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]">Edit item</a></li> <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% item.biblionumber | html %]">Edit record</a></li> </ul> </div>
35
    <div class="btn-group dropup"><button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-pencil"></i> Edit <span class="caret"></span> </button> <ul class="dropdown-menu pull-right"> [% IF user.can_edit_item( item ) %]<li><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]">Edit item</a></li>[% END %] <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% item.biblionumber | html %]">Edit record</a></li> </ul> </div>
36
  [%~ END %]"
36
  [%~ END %]"
37
]
37
]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_json.tt (-2 / +1 lines)
Lines 4-10 Link Here
4
  "iTotalDisplayRecords": [% total_rows | html %],
4
  "iTotalDisplayRecords": [% total_rows | html %],
5
  "aaData": [
5
  "aaData": [
6
  [%- FOREACH item IN results -%]
6
  [%- FOREACH item IN results -%]
7
    [%- INCLUDE 'catalogue/itemsearch_item.json.inc' item = item -%]
7
    [%- INCLUDE 'catalogue/itemsearch_item.json.inc' item = item, user = user -%]
8
    [%- UNLESS loop.last %],[% END -%]
8
    [%- UNLESS loop.last %],[% END -%]
9
  [%- END -%]
9
  [%- END -%]
10
  ]
10
  ]
11
- 

Return to bug 20256