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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+35 lines)
Lines 592-597 Link Here
592
            </div>
592
            </div>
593
            [%# /div#patron-library-details %]
593
            [%# /div#patron-library-details %]
594
594
595
            [% IF consents.size %]
596
                <div id="patron-consents" class="patroninfo-section">
597
                    <div class="patroninfo-heading">
598
                        <h3>Consents</h3>
599
                    </div>
600
                    <div class="rows">
601
                        <ol>
602
                            [% FOREACH consent IN consents %]
603
                                <li>
604
                                    <span class="label">
605
                                        [% IF consent.type == 'GDPR_PROCESSING' %]
606
                                            Privacy policy consent:
607
                                        [% ELSIF consent.title.title.${lang} %]
608
                                            [% consent.title.title.${lang} | html %]:
609
                                        [% ELSIF consent.title.title.en %]
610
                                            [% consent.title.title.en | html %]:
611
                                        [% ELSE %]
612
                                            [% consent.type | html %]:
613
                                        [% END %]
614
                                    </span>
615
                                    [% IF consent.given_on %]
616
                                        <span class="text-success"> <i class="fa fa-check"></i> Given on [% consent.given_on | $KohaDates with_hours => 1 %] </span>
617
                                    [% ELSIF consent.refused_on %]
618
                                        <span class="text-danger"> <i class="fa fa-times"></i> Refused on [% consent.refused_on | $KohaDates with_hours => 1 %] </span>
619
                                    [% ELSE %]
620
                                        <span class="text-muted">Not specified</span>
621
                                    [% END %]
622
                                </li>
623
                            [% END %]
624
                        </ol>
625
                    </div>
626
                </div>
627
                [%# /div#patron-consents %]
628
            [% END %]
629
595
            <div id="patron-alternate-address" class="patroninfo-section">
630
            <div id="patron-alternate-address" class="patroninfo-section">
596
                [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
631
                [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
597
                    <div class="patroninfo-heading">
632
                    <div class="patroninfo-heading">
(-)a/members/moremember.pl (-1 / +20 lines)
Lines 41-46 use Koha::Patron::Messages; Link Here
41
use Koha::CsvProfiles;
41
use Koha::CsvProfiles;
42
use Koha::Holds;
42
use Koha::Holds;
43
use Koha::Patrons;
43
use Koha::Patrons;
44
use Koha::Patron::Consents;
44
use Koha::Patron::Files;
45
use Koha::Patron::Files;
45
use Koha::Token;
46
use Koha::Token;
46
use Koha::Checkouts;
47
use Koha::Checkouts;
Lines 316-319 if ( C4::Context->preference('UseRecalls') ) { Link Here
316
    );
317
    );
317
}
318
}
318
319
320
# Fetch available consent types and patron's consents
321
my $consent_types = Koha::Patron::Consents->available_types;
322
if ( keys %$consent_types ) {
323
    my @consents_data;
324
    for my $type ( sort keys %$consent_types ) {
325
        my $consent = $patron->consent($type);
326
        push @consents_data, {
327
            type       => $type,
328
            title      => $consent_types->{$type},
329
            given_on   => $consent->given_on,
330
            refused_on => $consent->refused_on,
331
        };
332
    }
333
    $template->param(
334
        consents      => \@consents_data,
335
        consent_types => $consent_types,
336
    );
337
}
338
319
output_html_with_http_headers $input, $cookie, $template->output;
339
output_html_with_http_headers $input, $cookie, $template->output;
320
- 

Return to bug 41749