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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-16 / +14 lines)
Lines 391-414 Link Here
391
                                        [% END %]
391
                                        [% END %]
392
                                    </td>
392
                                    </td>
393
                                    <td>
393
                                    <td>
394
                                        [% IF ( loopro.module == 'CIRCULATION' ) %]
394
                                        [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %]
395
                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info | uri %]&amp;biblionumber=[% loopro.biblionumber | uri %]&amp;bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.info | uri %]" title="Display detail for this item">Item [% loopro.barcode | html %]</a>
395
                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info | uri %]&amp;biblionumber=[% loopro.biblionumber | uri %]&amp;bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.info | uri %]" title="Display detail for this item">Item [% loopro.barcode | html %]</a>
396
                                        [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
397
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
398
                                            <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
399
                                                <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% FOREACH info IN loopro.info.split(' \| ') %][% IF loop.first %][% info | html %][% END %][% END %]" class="compare" /> Compare</label>
400
                                            </div>
401
                                        [% ELSIF loopro.module == "NOTICES" %]
402
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
403
                                            <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
404
                                                <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% IF loopro.notice %][% loopro.notice.title | html %][% ELSE %][% loopro.object | html %][% END %]" class="compare" /> Compare</label>
405
                                            </div>
396
                                        [% ELSE %]
406
                                        [% ELSE %]
397
                                            [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
407
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
398
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
408
                                                [% loopro.info | html %]
399
                                                <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
409
                                            </div>
400
                                                    <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% FOREACH info IN loopro.info.split(' \| ') %][% IF loop.first %][% info | html %][% END %][% END %]" class="compare" /> Compare</label>
401
                                                </div>
402
                                            [% ELSIF loopro.module == "NOTICES" %]
403
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
404
                                                <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
405
                                                    <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% IF loopro.notice %][% loopro.notice.title | html %][% ELSE %][% loopro.object | html %][% END %]" class="compare" /> Compare</label>
406
                                                </div>
407
                                            [% ELSE %]
408
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
409
                                                    [% loopro.info | html %]
410
                                                </div>
411
                                            [% END %]
412
                                        [% END %]
410
                                        [% END %]
413
                                    </td>
411
                                    </td>
414
                                    <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
412
                                    <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
(-)a/tools/viewlog.pl (-1 / +1 lines)
Lines 157-162 if ($do_it) { Link Here
157
            $itemnumber = $log->info if ( $log->module eq "CIRCULATION" );
157
            $itemnumber = $log->info if ( $log->module eq "CIRCULATION" );
158
            my $item = Koha::Items->find($itemnumber);
158
            my $item = Koha::Items->find($itemnumber);
159
            if ($item) {
159
            if ($item) {
160
                $result->{'object_found'}     = 1;
160
                $result->{'biblionumber'}     = $item->biblionumber;
161
                $result->{'biblionumber'}     = $item->biblionumber;
161
                $result->{'biblioitemnumber'} = $item->biblionumber;
162
                $result->{'biblioitemnumber'} = $item->biblionumber;
162
                $result->{'barcode'}          = $item->barcode;
163
                $result->{'barcode'}          = $item->barcode;
163
- 

Return to bug 32037