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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +6 lines)
Lines 131-137 Link Here
131
                            </li>
131
                            </li>
132
							<li>
132
							<li>
133
								<label for="object">Object: </label>
133
								<label for="object">Object: </label>
134
                                <input type="text" id="object" name="object" value="[% object | html %]" />
134
                                [% IF patron %][%# From the members module %]
135
                                    [% object | html %] ([% INCLUDE 'patron-title.inc' patron => patron %] )
136
                                [% ELSE %]
137
                                    <input type="text" id="object" name="object" value="[% object | html %]" />
138
                                [% END %]
135
							</li>
139
							</li>
136
							<li>
140
							<li>
137
								<label for="info">Info:</label>
141
								<label for="info">Info:</label>
Lines 276-282 Link Here
276
			</div>
280
			</div>
277
		</div>
281
		</div>
278
		<div class="yui-b noprint">
282
		<div class="yui-b noprint">
279
        [% IF ( circulation ) %]
283
        [% IF patron %]
280
				[% INCLUDE 'circ-menu.inc' %]
284
				[% INCLUDE 'circ-menu.inc' %]
281
			[% ELSE %]
285
			[% ELSE %]
282
				[% IF ( CATALOGUING ) %]
286
				[% IF ( CATALOGUING ) %]
(-)a/tools/viewlog.pl (-6 lines)
Lines 73-82 if ( $src eq 'circ' ) { Link Here
73
    use C4::Members::Attributes qw(GetBorrowerAttributes);
73
    use C4::Members::Attributes qw(GetBorrowerAttributes);
74
    my $borrowernumber = $object;
74
    my $borrowernumber = $object;
75
    my $patron = Koha::Patrons->find( $borrowernumber );
75
    my $patron = Koha::Patrons->find( $borrowernumber );
76
    my $circ_info = 1;
77
    unless ( $patron ) {
78
         $circ_info = 0;
79
    }
80
    if ( C4::Context->preference('ExtendedPatronAttributes') ) {
76
    if ( C4::Context->preference('ExtendedPatronAttributes') ) {
81
        my $attributes = GetBorrowerAttributes( $borrowernumber );
77
        my $attributes = GetBorrowerAttributes( $borrowernumber );
82
        $template->param(
78
        $template->param(
Lines 87-93 if ( $src eq 'circ' ) { Link Here
87
83
88
    $template->param(
84
    $template->param(
89
        patron      => $patron,
85
        patron      => $patron,
90
        circulation => $circ_info,
91
    );
86
    );
92
}
87
}
93
88
94
- 

Return to bug 21242