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

(-)a/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl (-1 / +1 lines)
Lines 2-8 $DBversion = 'XXX'; # will be replaced by the RM Link Here
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
3
4
     if( !column_exists( 'illrequests', 'price_paid' ) ) {
4
     if( !column_exists( 'illrequests', 'price_paid' ) ) {
5
        $dbh->do( "ALTER TABLE illrequests ADD COLUMN price_paid varchar(20) DEFAULT NULL" );
5
        $dbh->do( "ALTER TABLE illrequests ADD COLUMN price_paid varchar(20) DEFAULT NULL AFTER 'cost'" );
6
     }
6
     }
7
7
8
    SetVersion( $DBversion );
8
    SetVersion( $DBversion );
(-)a/installer/data/mysql/atomicupdate/bug_20772-add-readonly-flag-to-illrequestattributes.perl (-1 / +1 lines)
Lines 2-8 $DBversion = 'XXX'; # will be replaced by the RM Link Here
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
3
4
     if( !column_exists( 'illrequestattributes', 'readonly' ) ) {
4
     if( !column_exists( 'illrequestattributes', 'readonly' ) ) {
5
        $dbh->do( "ALTER TABLE illrequestattributes ADD COLUMN readonly tinyint(1) NOT NULL DEFAULT 1" );
5
        $dbh->do( "ALTER TABLE illrequestattributes ADD COLUMN readonly tinyint(1) NOT NULL DEFAULT 1 AFTER 'value'" );
6
        $dbh->do( "UPDATE illrequestattributes SET readonly = 1" );
6
        $dbh->do( "UPDATE illrequestattributes SET readonly = 1" );
7
     }
7
     }
8
8
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-5 / +5 lines)
Lines 441-447 Link Here
441
                                </li>
441
                                </li>
442
                                <li class="cost">
442
                                <li class="cost">
443
                                    <label class="cost">Cost:</label>
443
                                    <label class="cost">Cost:</label>
444
                                    [% request.cost || 'N/A' | html %]
444
                                    [% IF request.cost %][% request.cost | html %][% ELSE %]<span>N/A</span>[% END %]
445
                                </li>
445
                                </li>
446
                                <li class="price_paid">
446
                                <li class="price_paid">
447
                                    <label class="price_paid">Price paid:</label>
447
                                    <label class="price_paid">Price paid:</label>
Lines 514-520 Link Here
514
                            <div class="rows">
514
                            <div class="rows">
515
                                <div class="orderid">
515
                                <div class="orderid">
516
                                    <span class="label orderid">Order ID:</span>
516
                                    <span class="label orderid">Order ID:</span>
517
                                    [% request.orderid || "N/A" | html %]
517
                                    [% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %]
518
                                </div>
518
                                </div>
519
                                <div class="borrowernumber">
519
                                <div class="borrowernumber">
520
                                    <span class="label borrowernumber">Patron:</span>
520
                                    <span class="label borrowernumber">Patron:</span>
Lines 526-532 Link Here
526
526
527
                                <div class="biblio_id">
527
                                <div class="biblio_id">
528
                                    <span class="label biblio_id">Bibliographic record ID:</span>
528
                                    <span class="label biblio_id">Bibliographic record ID:</span>
529
                                    [% request.biblio_id || "N/A" | html %]
529
                                    [% IF request.biblio_id %][% request.biblio_id | html %][% ELSE %]<span>N/A</span>[% END %]
530
                                </div>
530
                                </div>
531
                                <div class="branchcode">
531
                                <div class="branchcode">
532
                                    <span class="label branchcode">Library:</span>
532
                                    <span class="label branchcode">Library:</span>
Lines 546-556 Link Here
546
                                </div>
546
                                </div>
547
                                <div class="cost">
547
                                <div class="cost">
548
                                    <span class="label cost">Cost:</span>
548
                                    <span class="label cost">Cost:</span>
549
                                    [% request.cost || "N/A" | html %]
549
                                    [% IF request.cost %][% request.cost | html %][% ELSE %]<span>N/A</span>[% END %]
550
                                </div>
550
                                </div>
551
                                <div class="price_paid">
551
                                <div class="price_paid">
552
                                    <span class="label price_paid">Price paid:</span>
552
                                    <span class="label price_paid">Price paid:</span>
553
                                    [% request.price_paid || "N/A" %]
553
                                    [% IF request.price_paid %][% request.price_paid | html %][% ELSE %]<span>N/A</span>[% END %]
554
                                </div>
554
                                </div>
555
                                <div class="req_id">
555
                                <div class="req_id">
556
                                    <span class="label req_id">Request number:</span>
556
                                    <span class="label req_id">Request number:</span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-4 / +7 lines)
Lines 125-132 Link Here
125
                            [% FOREACH request IN requests %]
125
                            [% FOREACH request IN requests %]
126
                                [% status = request.status | html %]
126
                                [% status = request.status | html %]
127
                                <tr>
127
                                <tr>
128
                                    <td>[% request.metadata.Author || 'N/A' | html %]</td>
128
                                    <td>
129
                                    <td>[% request.metadata.Title || 'N/A' | html %]</td>
129
                                        [% IF request.metadata.Author %][% request.metadata.Author | html %][% ELSE %]<span>N/A</span>[% END %]
130
                                    </td>
131
                                    <td>
132
                                        [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
133
                                    </td>
130
                                    <td>[% request.backend | html %]</td>
134
                                    <td>[% request.backend | html %]</td>
131
                                    <td>[% request.medium | html %]</td>
135
                                    <td>[% request.medium | html %]</td>
132
                                    <td>[% request.capabilities.$status.name | html %]</td>
136
                                    <td>[% request.capabilities.$status.name | html %]</td>
Lines 192-198 Link Here
192
                                [% FOREACH meta IN request.metadata %]
196
                                [% FOREACH meta IN request.metadata %]
193
                                    <div class="requestattr-[% meta.key | html %]">
197
                                    <div class="requestattr-[% meta.key | html %]">
194
                                        <span class="label">[% meta.key | html %]:</span>
198
                                        <span class="label">[% meta.key | html %]:</span>
195
                                        [% meta.value || 'N/A' | html %]
199
                                        [% IF meta.value %][% meta.value | html %][% ELSE %]<span>N/A</span>[% END %]
196
                                    </div>
200
                                    </div>
197
                                [% END %]
201
                                [% END %]
198
                            </div>
202
                            </div>
199
- 

Return to bug 20797