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

(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-1 / +2 lines)
Lines 106-111 $(document).ready(function() { Link Here
106
                                    var selectedbranch;
106
                                    var selectedbranch;
107
                                    var setbranch;
107
                                    var setbranch;
108
                                    if( oObj.branches[i].selected ){
108
                                    if( oObj.branches[i].selected ){
109
109
                                        selectedbranch = " selected='selected' ";
110
                                        selectedbranch = " selected='selected' ";
110
                                        setbranch = CURRENT;
111
                                        setbranch = CURRENT;
111
                                    }
112
                                    }
Lines 113-119 $(document).ready(function() { Link Here
113
                                        selectedbranch = '';
114
                                        selectedbranch = '';
114
                                        setbranch = '';
115
                                        setbranch = '';
115
                                    }
116
                                    }
116
                                    branchSelect += '<option value="'+ oObj.branches[i].value +'"'+selectedbranch+'>'+oObj.branches[i].branchname+setbranch+'</option>';
117
                                    branchSelect += '<option value="'+ oObj.branches[i].branchcode +'"'+selectedbranch+'>'+oObj.branches[i].branchname+setbranch+'</option>';
117
                                }
118
                                }
118
                                branchSelect +='</select>';
119
                                branchSelect +='</select>';
119
                                return branchSelect;
120
                                return branchSelect;
(-)a/svc/holds (-2 / +5 lines)
Lines 79-84 while ( my $h = $holds_rs->next() ) { Link Here
79
        $itemtype_limit = $itemtype->{translated_description};
79
        $itemtype_limit = $itemtype->{translated_description};
80
    }
80
    }
81
81
82
    my $libraries = Koha::Libraries->search({}, { order_by => ['branchname'] })->unblessed;
83
    for my $library ( @$libraries ) {
84
        $library->{selected} = 1 if $library->{branchcode} eq $h->branchcode();
85
    }
82
    my $hold = {
86
    my $hold = {
83
        DT_RowId       => $h->reserve_id(),
87
        DT_RowId       => $h->reserve_id(),
84
        biblionumber   => $biblionumber,
88
        biblionumber   => $biblionumber,
Lines 86-92 while ( my $h = $holds_rs->next() ) { Link Here
86
        author         => $h->biblio()->author(),
90
        author         => $h->biblio()->author(),
87
        reserve_id     => $h->reserve_id(),
91
        reserve_id     => $h->reserve_id(),
88
        branchcode     => $h->branch()->branchname(),
92
        branchcode     => $h->branch()->branchname(),
89
        branches       => GetBranchesLoop($h->branch()->branchcode()),
93
        branches       => $libraries,
90
        reservedate    => $h->reservedate(),
94
        reservedate    => $h->reservedate(),
91
        expirationdate => $h->expirationdate(),
95
        expirationdate => $h->expirationdate(),
92
        suspend        => $h->suspend(),
96
        suspend        => $h->suspend(),
93
- 

Return to bug 8030