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 3081-3086 fieldset.rows + fieldset.action { Link Here
3081
    margin-top: 20px;
3081
    margin-top: 20px;
3082
}
3082
}
3083
3083
3084
#interlibraryloans h3#dataPreviewLabel {
3085
    margin: 0.3em 0;
3086
}
3087
3084
#interlibraryloans .bg-info {
3088
#interlibraryloans .bg-info {
3085
    overflow: auto;
3089
    overflow: auto;
3086
    position: relative;
3090
    position: relative;
Lines 3149-3156 fieldset.rows + fieldset.action { Link Here
3149
    margin-bottom: 1em;
3153
    margin-bottom: 1em;
3150
}
3154
}
3151
3155
3152
#ill-view-panel #requestattributes .label {
3156
#requestattributes {
3153
    width: auto;
3157
    font-family: monospace;
3158
    line-height: 1.3em;
3154
}
3159
}
3155
3160
3156
table#ill-requests {
3161
table#ill-requests {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-19 / +34 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-582 Link Here
562
                                    </div>
566
                                    </div>
563
                                [% END %]
567
                                [% END %]
564
                            </div>
568
                            </div>
565
                            <div class="rows">
566
                                <h3><a id="toggle_requestattributes" href="#">Toggle full supplier metadata</a></h3>
567
                                <div id="requestattributes" class="content_hidden">
568
                                    [% FOREACH attr IN request.illrequestattributes %]
569
                                        <div class="requestattr-[% attr.type %]">
570
                                            <span class="label">[% attr.type %]:</span>
571
                                            [% attr.value %]
572
                                        </div>
573
                                    [% END %]
574
                                </div>
575
576
                            </div>
577
                        </div>
569
                        </div>
578
                    </div>
570
                    </div>
579
571
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 %]
582
											<div class="requestattr-[% attr.type %]">
583
												<span class="label">[% attr.type %]:</span>
584
												[% attr.value %]
585
											</div>
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>
591
								</div>
592
							</div>
593
						</div>
594
					</div>
595
580
                [% ELSIF query_type == 'illlist' %]
596
                [% ELSIF query_type == 'illlist' %]
581
                    <!-- illlist -->
597
                    <!-- illlist -->
582
                    <h1>View ILL requests</h1>
598
                    <h1>View ILL requests</h1>
583
- 

Return to bug 20651