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

(-)a/catalogue/itemsearch.pl (-3 / +4 lines)
Lines 235-244 if (scalar keys %params > 0) { Link Here
235
    }
235
    }
236
236
237
    $template->param(
237
    $template->param(
238
        filter => $filter,
238
        filter        => $filter,
239
        search_params => $search_params,
239
        search_params => $search_params,
240
        results => $results,
240
        results       => $results,
241
        total_rows => $total_rows,
241
        total_rows    => $total_rows,
242
        user          => Koha::Patrons->find( $borrowernumber ),
242
    );
243
    );
243
244
244
    if ($format eq 'csv') {
245
    if ($format eq 'csv') {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc (-1 / +1 lines)
Lines 29-34 Link Here
29
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]",
29
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]",
30
  "[% (item.issues || 0) | html %]",
30
  "[% (item.issues || 0) | html %]",
31
  "[% FILTER escape_quotes ~%]
31
  "[% FILTER escape_quotes ~%]
32
    <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>
32
    <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>
33
  [%~ END %]"
33
  [%~ END %]"
34
]
34
]
(-)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