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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (-2 / +7 lines)
Lines 3088-3093 fieldset.rows + fieldset.action { Link Here
3088
    margin-top: 20px;
3088
    margin-top: 20px;
3089
}
3089
}
3090
3090
3091
#interlibraryloans h3#dataPreviewLabel {
3092
    margin: 0.3em 0;
3093
}
3094
3091
#interlibraryloans .bg-info {
3095
#interlibraryloans .bg-info {
3092
    overflow: auto;
3096
    overflow: auto;
3093
    position: relative;
3097
    position: relative;
Lines 3156-3163 fieldset.rows + fieldset.action { Link Here
3156
    margin-bottom: 1em;
3160
    margin-bottom: 1em;
3157
}
3161
}
3158
3162
3159
#ill-view-panel #requestattributes .label {
3163
#requestattributes {
3160
    width: auto;
3164
    font-family: monospace;
3165
    line-height: 1.3em;
3161
}
3166
}
3162
3167
3163
table#ill-requests {
3168
table#ill-requests {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-13 / +28 lines)
Lines 193-204 Link Here
193
            }
193
            }
194
        };
194
        };
195
195
196
        // Toggle request attributes in Illview
197
        $('#toggle_requestattributes').on('click', function(e) {
198
            e.preventDefault();
199
            $('#requestattributes').toggleClass('content_hidden');
200
        });
201
202
        // Filter partner list
196
        // Filter partner list
203
        $('#partner_filter').keyup(function() {
197
        $('#partner_filter').keyup(function() {
204
            var needle = $('#partner_filter').val();
198
            var needle = $('#partner_filter').val();
Lines 216-221 Link Here
216
            });
210
            });
217
        });
211
        });
218
212
213
        // Display the modal containing request supplier metadata
214
        $('#ill-request-display-metadata').on('click', function(e) {
215
            e.preventDefault();
216
            $('#dataPreview').modal({show:true});
217
        });
218
219
        // Get our data from the API and process it prior to passing
219
        // Get our data from the API and process it prior to passing
220
        // it to datatables
220
        // it to datatables
221
        var ajax = $.ajax(
221
        var ajax = $.ajax(
Lines 496-501 Link Here
496
                                </a>
496
                                </a>
497
                            [% END %]
497
                            [% END %]
498
                        [% END %]
498
                        [% END %]
499
                        <a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-sm btn-default pull-right" href="#">
500
                            <span class="fa fa-eye"></span>
501
                            Display supplier metadata
502
                        </a>
499
                    </div>
503
                    </div>
500
                    <div id="ill-view-panel" class="panel panel-default">
504
                    <div id="ill-view-panel" class="panel panel-default">
501
                        <div class="panel-heading">
505
                        <div class="panel-heading">
Lines 562-578 Link Here
562
                                    </div>
566
                                    </div>
563
                                [% END %]
567
                                [% END %]
564
                            </div>
568
                            </div>
565
                            <div class="rows">
569
                        </div>
566
                                <h3><a id="toggle_requestattributes" href="#">Toggle full supplier metadata</a></h3>
570
                    </div>
567
                                <div id="requestattributes" class="content_hidden">
571
568
                                    [% FOREACH attr IN request.illrequestattributes %]
572
                    <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
573
                        <div class="modal-dialog">
574
                            <div class="modal-content">
575
                                <div class="modal-header">
576
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
577
                                    <h3 id="dataPreviewLabel"> Supplier metadata</h3>
578
                                </div>
579
                                <div class="modal-body">
580
                                    <div id="requestattributes">
581
                                        [% FOREACH attr IN request.illrequestattributes %]
569
                                        <div class="requestattr-[% attr.type %]">
582
                                        <div class="requestattr-[% attr.type %]">
570
                                            <span class="label">[% attr.type %]:</span>
583
                                            <span class="label">[% attr.type %]:</span>
571
                                            [% attr.value %]
584
                                            [% attr.value %]
572
                                        </div>
585
                                        </div>
573
                                    [% END %]
586
                                            [% END %]
587
                                    </div>
588
                                </div>
589
                                <div class="modal-footer">
590
                                    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
574
                                </div>
591
                                </div>
575
576
                            </div>
592
                            </div>
577
                        </div>
593
                        </div>
578
                    </div>
594
                    </div>
579
- 

Return to bug 20651