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

(-)a/circ/circulation.pl (+1 lines)
Lines 705-710 $template->param( Link Here
705
    soundon           => C4::Context->preference("SoundOn"),
705
    soundon           => C4::Context->preference("SoundOn"),
706
    fast_cataloging   => $fast_cataloging,
706
    fast_cataloging   => $fast_cataloging,
707
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
707
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
708
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
708
);
709
);
709
710
710
# save stickyduedate to session
711
# save stickyduedate to session
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc (-1 / +1 lines)
Lines 118-124 function update_child() { Link Here
118
        [% END %]
118
        [% END %]
119
	[% END %]
119
	[% END %]
120
	[% IF ( CAN_user_borrowers ) %]
120
	[% IF ( CAN_user_borrowers ) %]
121
        [% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
121
        [% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
122
        [% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
122
        [% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
123
    [% END %]
123
    [% END %]
124
    <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
124
    <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 114-120 function update_child() { Link Here
114
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;category_type=A">Edit</a></li>
114
                <li><a id="editpatron" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;category_type=A">Edit</a></li>
115
            [% END %]
115
            [% END %]
116
        [% END %]
116
        [% END %]
117
	[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
117
	[% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
118
	[% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li> [% END %]
118
	[% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li> [% END %]
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +1 lines)
Lines 42-48 Patrons: Link Here
42
         - "Guarantors can be the following of those they guarantee:"
42
         - "Guarantors can be the following of those they guarantee:"
43
         - pref: borrowerRelationship
43
         - pref: borrowerRelationship
44
           class: multi
44
           class: multi
45
         - (input multiple choices separated by |)
45
         - (input multiple choices separated by |). Leave empty to deactivate
46
     -
46
     -
47
         - "Borrowers can have the following titles:"
47
         - "Borrowers can have the following titles:"
48
         - pref: BorrowersTitles
48
         - pref: BorrowersTitles
(-)a/members/boraccount.pl (+1 lines)
Lines 128-133 $template->param( Link Here
128
    is_child            => ($data->{'category_type'} eq 'C'),
128
    is_child            => ($data->{'category_type'} eq 'C'),
129
    reverse_col         => $reverse_col,
129
    reverse_col         => $reverse_col,
130
    accounts            => $accts,
130
    accounts            => $accts,
131
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
131
);
132
);
132
133
133
output_html_with_http_headers $input, $cookie, $template->output;
134
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/deletemem.pl (+1 lines)
Lines 102-107 if ($countissues > 0 or $flags->{'CHARGES'} or $data->{'borrowernumber'}){ Link Here
102
        email => $bor->{'email'},
102
        email => $bor->{'email'},
103
        branchcode => $bor->{'branchcode'},
103
        branchcode => $bor->{'branchcode'},
104
        branchname => GetBranchName($bor->{'branchcode'}),
104
        branchname => GetBranchName($bor->{'branchcode'}),
105
		activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
105
    );
106
    );
106
    if ($countissues >0) {
107
    if ($countissues >0) {
107
        $template->param(ItemsOnIssues => $countissues);
108
        $template->param(ItemsOnIssues => $countissues);
(-)a/members/mancredit.pl (+1 lines)
Lines 106-111 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
106
		    branchcode => $data->{'branchcode'},
106
		    branchcode => $data->{'branchcode'},
107
		    branchname => GetBranchName($data->{'branchcode'}),
107
		    branchname => GetBranchName($data->{'branchcode'}),
108
		    is_child        => ($data->{'category_type'} eq 'C'),
108
		    is_child        => ($data->{'category_type'} eq 'C'),
109
			activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
109
        );
110
        );
110
    output_html_with_http_headers $input, $cookie, $template->output;
111
    output_html_with_http_headers $input, $cookie, $template->output;
111
}
112
}
(-)a/members/maninvoice.pl (+1 lines)
Lines 133-138 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
133
		branchcode => $data->{'branchcode'},
133
		branchcode => $data->{'branchcode'},
134
		branchname => GetBranchName($data->{'branchcode'}),
134
		branchname => GetBranchName($data->{'branchcode'}),
135
		is_child        => ($data->{'category_type'} eq 'C'),
135
		is_child        => ($data->{'category_type'} eq 'C'),
136
		activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
136
    );
137
    );
137
    output_html_with_http_headers $input, $cookie, $template->output;
138
    output_html_with_http_headers $input, $cookie, $template->output;
138
}
139
}
(-)a/members/member-flags.pl (+1 lines)
Lines 191-196 $template->param( Link Here
191
		branchname => GetBranchName($bor->{'branchcode'}),
191
		branchname => GetBranchName($bor->{'branchcode'}),
192
		loop => \@loop,
192
		loop => \@loop,
193
		is_child        => ($bor->{'category_type'} eq 'C'),
193
		is_child        => ($bor->{'category_type'} eq 'C'),
194
		activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
194
		);
195
		);
195
196
196
    output_html_with_http_headers $input, $cookie, $template->output;
197
    output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/member-password.pl (+1 lines)
Lines 121-126 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
121
	    destination => $destination,
121
	    destination => $destination,
122
		is_child        => ($bor->{'category_type'} eq 'C'),
122
		is_child        => ($bor->{'category_type'} eq 'C'),
123
	    defaultnewpassword => $defaultnewpassword,
123
	    defaultnewpassword => $defaultnewpassword,
124
		activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
124
	);
125
	);
125
126
126
127
(-)a/members/moremember.pl (+1 lines)
Lines 481-486 $template->param( Link Here
481
    "dateformat_" . (C4::Context->preference("dateformat") || '') => 1,
481
    "dateformat_" . (C4::Context->preference("dateformat") || '') => 1,
482
    samebranch     => $samebranch,
482
    samebranch     => $samebranch,
483
    quickslip		  => $quickslip,
483
    quickslip		  => $quickslip,
484
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
484
);
485
);
485
486
486
#Get the slip news items
487
#Get the slip news items
(-)a/members/notices.pl (+1 lines)
Lines 68-73 $template->param( Link Here
68
			sentnotices 		=> 1,
68
			sentnotices 		=> 1,
69
                        branchname              => GetBranchName($borrower->{'branchcode'}),
69
                        branchname              => GetBranchName($borrower->{'branchcode'}),
70
                        categoryname            => $borrower->{'description'},
70
                        categoryname            => $borrower->{'description'},
71
			activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
71
);
72
);
72
output_html_with_http_headers $input, $cookie, $template->output;
73
output_html_with_http_headers $input, $cookie, $template->output;
73
74
(-)a/members/pay.pl (+2 lines)
Lines 103-108 for (@names) { Link Here
103
    }
103
    }
104
}
104
}
105
105
106
$template->param( activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne '') );
107
106
add_accounts_to_template();
108
add_accounts_to_template();
107
109
108
output_html_with_http_headers $input, $cookie, $template->output;
110
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/paycollect.pl (+1 lines)
Lines 138-143 $template->param( Link Here
138
    borrowenumber => $borrowernumber,    # some templates require global
138
    borrowenumber => $borrowernumber,    # some templates require global
139
    borrower      => $borrower,
139
    borrower      => $borrower,
140
    total         => $total_due
140
    total         => $total_due
141
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
141
);
142
);
142
143
143
output_html_with_http_headers $input, $cookie, $template->output;
144
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/readingrec.pl (-1 / +1 lines)
Lines 133-138 $template->param( Link Here
133
			   			branchname => GetBranchName($data->{'branchcode'}),
133
			   			branchname => GetBranchName($data->{'branchcode'}),
134
						showfulllink => (scalar @loop_reading > 50),					
134
						showfulllink => (scalar @loop_reading > 50),					
135
						loop_reading => \@loop_reading,
135
						loop_reading => \@loop_reading,
136
						activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
136
);
137
);
137
output_html_with_http_headers $input, $cookie, $template->output;
138
output_html_with_http_headers $input, $cookie, $template->output;
138
139
139
- 

Return to bug 6964