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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-6 / +31 lines)
Lines 116-121 Link Here
116
                '</a>';
116
                '</a>';
117
        };
117
        };
118
118
119
        // Our 'render' function for biblio_id
120
        var createBiblioLink = function(data, type, row) {
121
            return '<a title="' + _("View biblio details") + '" ' +
122
                'href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' +
123
                row.biblio_id + '">' +
124
                row.biblio_id +
125
                '</a>';
126
        };
127
119
        // Our 'render' function for the library name
128
        // Our 'render' function for the library name
120
        var createLibrary = function(data, type, row) {
129
        var createLibrary = function(data, type, row) {
121
            return row.library.branchname;
130
            return row.library.branchname;
Lines 186-192 Link Here
186
                func: createStatus
195
                func: createStatus
187
            },
196
            },
188
            biblio_id: {
197
            biblio_id: {
189
                name: _("Biblio ID")
198
                name: _("Biblio ID"),
199
                func: createBiblioLink
190
            },
200
            },
191
            library: {
201
            library: {
192
                name: _("Library"),
202
                name: _("Library"),
Lines 441-447 Link Here
441
                                </li>
451
                                </li>
442
                                <li class="cost">
452
                                <li class="cost">
443
                                    <label class="cost">Cost:</label>
453
                                    <label class="cost">Cost:</label>
444
                                    [% request.cost || 'N/A' | html %]
454
                                    [% IF request.cost %]
455
                                        [% request.cost %]
456
                                    [% ELSE %]
457
                                        <span>N/A</span>
458
                                    [% END %]
445
                                </li>
459
                                </li>
446
                                <li class="req_id">
460
                                <li class="req_id">
447
                                    <label class="req_id">Request number:</label>
461
                                    <label class="req_id">Request number:</label>
Lines 511-517 Link Here
511
                            <div class="rows">
525
                            <div class="rows">
512
                                <div class="orderid">
526
                                <div class="orderid">
513
                                    <span class="label orderid">Order ID:</span>
527
                                    <span class="label orderid">Order ID:</span>
514
                                    [% request.orderid || "N/A" | html %]
528
                                    [% IF request.orderid %]
529
                                        [% request.orderid %]
530
                                    [% ELSE %]
531
                                        <span>N/A</span>
532
                                    [% END %]
515
                                </div>
533
                                </div>
516
                                <div class="borrowernumber">
534
                                <div class="borrowernumber">
517
                                    <span class="label borrowernumber">Patron:</span>
535
                                    <span class="label borrowernumber">Patron:</span>
Lines 523-529 Link Here
523
541
524
                                <div class="biblio_id">
542
                                <div class="biblio_id">
525
                                    <span class="label biblio_id">Biblio ID:</span>
543
                                    <span class="label biblio_id">Biblio ID:</span>
526
                                    [% request.biblio_id || "N/A" | html %]
544
                                    [% IF request.biblio_id %]
545
                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id %]">[% request.biblio_id %]</a>
546
                                    [% ELSE %]
547
                                        <span>N/A</span>
548
                                    [% END %]
527
                                </div>
549
                                </div>
528
                                <div class="branchcode">
550
                                <div class="branchcode">
529
                                    <span class="label branchcode">Library:</span>
551
                                    <span class="label branchcode">Library:</span>
Lines 543-549 Link Here
543
                                </div>
565
                                </div>
544
                                <div class="cost">
566
                                <div class="cost">
545
                                    <span class="label cost">Cost:</span>
567
                                    <span class="label cost">Cost:</span>
546
                                    [% request.cost || "N/A" | html %]
568
                                    [% IF request.cost %]
569
                                        [% request.cost %]
570
                                    [% ELSE %]
571
                                        <span>N/A</span>
572
                                    [% END %]
547
                                </div>
573
                                </div>
548
                                <div class="req_id">
574
                                <div class="req_id">
549
                                    <span class="label req_id">Request number:</span>
575
                                    <span class="label req_id">Request number:</span>
550
- 

Return to bug 20797