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

(-)a/Koha/Illrequest.pm (+5 lines)
Lines 1030-1035 sub TO_JSON { Link Here
1030
    $object->{id_prefix} = $self->id_prefix;
1030
    $object->{id_prefix} = $self->id_prefix;
1031
1031
1032
    if ( scalar (keys %$embed) ) {
1032
    if ( scalar (keys %$embed) ) {
1033
        # Augment the request response with statusalias details if
1034
        # appropriate
1035
        if ( $embed->{status_alias}) {
1036
            $object->{status_alias} = $self->statusalias;
1037
        }
1033
        # Augment the request response with patron details if appropriate
1038
        # Augment the request response with patron details if appropriate
1034
        if ( $embed->{patron} ) {
1039
        if ( $embed->{patron} ) {
1035
            my $patron = $self->patron;
1040
            my $patron = $self->patron;
(-)a/api/v1/swagger/paths/illrequests.json (+1 lines)
Lines 14-19 Link Here
14
                "items": {
14
                "items": {
15
                    "type": "string",
15
                    "type": "string",
16
                    "enum": [
16
                    "enum": [
17
                        "status_alias",
17
                        "patron",
18
                        "patron",
18
                        "library",
19
                        "library",
19
                        "capabilities",
20
                        "capabilities",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +1 lines)
Lines 219-225 Link Here
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(
222
            '/api/v1/illrequests?embed=metadata,patron,capabilities,library'
222
            '/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias'
223
            ).done(function() {
223
            ).done(function() {
224
                var data = JSON.parse(ajax.responseText);
224
                var data = JSON.parse(ajax.responseText);
225
                // Make a copy, we'll be removing columns next and need
225
                // Make a copy, we'll be removing columns next and need
226
- 

Return to bug 20581