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

(-)a/C4/Creators/Lib.pm (-2 / +1 lines)
Lines 345-352 sub get_label_summary { Link Here
345
        $record->{'title'} =~ s/\W*$//;  # strip off ugly trailing chars
345
        $record->{'title'} =~ s/\W*$//;  # strip off ugly trailing chars
346
        # FIXME contructing staff interface URLs should be done *much* higher up the stack - for the most part, C4 module code
346
        # FIXME contructing staff interface URLs should be done *much* higher up the stack - for the most part, C4 module code
347
        # should not know that it's part of a web app
347
        # should not know that it's part of a web app
348
        $record->{'title'} = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' . $record->{'biblionumber'} . '"> ' . $record->{'title'} . '</a>';
348
        $label_summary->{'_summary'} = { title => $record->{title}, author => $record->{author}, biblionumber => $record->{biblionumber} };
349
        $label_summary->{'_summary'} = $record->{'title'} . " | " . ($record->{'author'} ? $record->{'author'} : 'N/A');
350
        $label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'};
349
        $label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'};
351
        $label_summary->{'_barcode'} = $record->{'barcode'};
350
        $label_summary->{'_barcode'} = $record->{'barcode'};
352
        $label_summary->{'_item_number'} = $item->{'item_number'};
351
        $label_summary->{'_item_number'} = $item->{'item_number'};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-2 / +4 lines)
Lines 176-183 Link Here
176
                                                                    <td>
176
                                                                    <td>
177
                                                                        [% IF ( text_field.field_name == '_item_type_tbl' ) %]
177
                                                                        [% IF ( text_field.field_name == '_item_type_tbl' ) %]
178
                                                                            [% ItemTypes.GetDescription( text_field.field_value ) | html %]
178
                                                                            [% ItemTypes.GetDescription( text_field.field_value ) | html %]
179
                                                                        [% ELSIF ( text_field.field_name == '_summary_tbl' ) %]
180
                                                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% text_field.field_value.biblionumber | uri %]">[% text_field.field_value.title | html %]</a>
181
                                                                            [% IF text_field.field_value.author %]| [% text_field.field_value.author | html %][% END %]
179
                                                                        [% ELSE %]
182
                                                                        [% ELSE %]
180
                                                                            [% text_field.field_value | $raw %]
183
                                                                            [% text_field.field_value | html %]
181
                                                                        [% END %]
184
                                                                        [% END %]
182
                                                                    </td>
185
                                                                    </td>
183
                                                                [% END %]
186
                                                                [% END %]
184
- 

Return to bug 37720