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

(-)a/installer/data/mysql/atomicupdate/bug_35131.pl (-5 / +7 lines)
Lines 1-15 Link Here
1
use Modern::Perl;
1
use Modern::Perl;
2
2
3
return {
3
return {
4
    bug_number => 35131,
4
    bug_number  => 35131,
5
    description => "Add preference ShowBarcodeOnPatronRecord",
5
    description => "Add preference ShowBarcodeOnPatronRecord",
6
    up => sub {
6
    up          => sub {
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        $dbh->do(q{
9
        $dbh->do(
10
            q{
10
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
('ShowBarcodeOnPatronRecord', '0', '|0|Code39|COOP2of5|EAN13|EAN8|IATA2of5|Industrial2of5|ITF|Matrix2of5|NW7|QRcode|UPCA|UPCE', 'Show a patron carnumber as a barcode on the patron record ', 'Choice')
12
('ShowBarcodeOnPatronRecord', '0', '|0|Code39|COOP2of5|EAN13|EAN8|IATA2of5|Industrial2of5|ITF|Matrix2of5|NW7|QRcode|UPCA|UPCE', 'Show a patron carnumber as a barcode on the patron record ', 'Choice')
12
        });
13
        }
14
        );
13
        say $out "Added new system preference 'ShowBarcodeOnPatronRecord'";
15
        say $out "Added new system preference 'ShowBarcodeOnPatronRecord'";
14
    },
16
    },
15
};
17
};
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+4 lines)
Lines 1269-1274 dd { Link Here
1269
    > div {
1269
    > div {
1270
        width: 100%;
1270
        width: 100%;
1271
    }
1271
    }
1272
1273
    #patron-barcode {
1274
        margin-left: 0.9em;
1275
    }
1272
}
1276
}
1273
1277
1274
.patroninfo-section {
1278
.patroninfo-section {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-2 / +5 lines)
Lines 11-17 Link Here
11
    [% patron_type_class = 'is-staff' %]
11
    [% patron_type_class = 'is-staff' %]
12
[% END %]
12
[% END %]
13
<div class="patroninfo [% patron_type_class | html %]">
13
<div class="patroninfo [% patron_type_class | html %]">
14
14
[% IF patron.cardnumber && Koha.Preference('ShowBarcodeOnPatronRecord') %]
15
    <div id="patron-barcode">
16
        <img src="/cgi-bin/koha/svc/barcode?type=[% Koha.Preference('ShowBarcodeOnPatronRecord') | uri %]&notext=1&height=50&barcode=[% patron.cardnumber | uri %]" alt="[% patron.cardnumber | html %]" />
17
    </div>
18
[% END %]
15
[% IF ( patronimages ) %]
19
[% IF ( patronimages ) %]
16
    <h5 class="text-center">
20
    <h5 class="text-center">
17
[% ELSE %]
21
[% ELSE %]
Lines 58-64 Link Here
58
        [% IF patron.pronouns %]
62
        [% IF patron.pronouns %]
59
            <li class="patronpronouns">([% patron.pronouns | html %])</li>
63
            <li class="patronpronouns">([% patron.pronouns | html %])</li>
60
        [% END %]
64
        [% END %]
61
62
        [% PROCESS 'display-address-style' %]
65
        [% PROCESS 'display-address-style' %]
63
66
64
        [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
67
        [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +19 lines)
Lines 135-140 Patrons: Link Here
135
           class: integer
135
           class: integer
136
         - days. Leave empty to disable this behavior.
136
         - days. Leave empty to disable this behavior.
137
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
137
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
138
     -
139
         - "Show a "
140
         - pref: ShowBarcodeOnPatronRecord
141
           default: no
142
           choices:
143
               0: "Don't show"
144
               Code39: "Code39"
145
               COOP2of5: "COOP2of5"
146
               EAN13: "EAN13"
147
               EAN8: "EAN8"
148
               IATA2of5: "IATA2of5"
149
               Industrial2of5: "Industrial2of5"
150
               ITF: "ITF"
151
               Matrix2of5: "Matrix2of5"
152
               NW7: "NW7"
153
               QRcode: "QRcode"
154
               UPCA: "UPCA"
155
               UPCE: "UPCE"
156
         - " barcode of the patron record."
138
157
139
    Membership expiry:
158
    Membership expiry:
140
     -
159
     -
141
- 

Return to bug 35131