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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt (-7 / +16 lines)
Lines 75-87 Link Here
75
                                    [% END %]
75
                                    [% END %]
76
                                </td>
76
                                </td>
77
                                <td>
77
                                <td>
78
                                    [% IF ( s.ASKED ) %]Requested[% END %]
78
                                    [% SWITCH s.STATUS %]
79
                                    [% IF ( s.CHECKED ) %]Checked by the library[% END %]
79
                                    [% CASE "ASKED" %]<span>Requested</span>
80
                                    [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
80
                                    [% CASE "CHECKED" %]<span>Checked by the library</span>
81
                                    [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
81
                                    [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
82
                                    [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
82
                                    [% CASE "ORDERED" %]<span>Ordered by the library</span>
83
                                    [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
83
                                    [% CASE "REJECTED" %]<span>Suggestion declined<span>
84
                                    [% IF ( s.reason ) %]([% s.reason %])[% END %]
84
                                    [% CASE "AVAILABLE" %]<span>Available in the library</span>
85
                                    [% CASE %]
86
                                        [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
87
                                        [% IF status_description %]
88
                                            [% status_description %]
89
                                        [% ELSE %]
90
                                            <span>Unknown</span>
91
                                        [% END %]
92
                                    [% END %]
93
                                    [% IF s.reason %]([% s.reason %])[% END %]
85
                                </td>
94
                                </td>
86
                            </tr>
95
                            </tr>
87
                        [% END %]
96
                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +1 lines)
Lines 308-314 Link Here
308
                        [% END %]
308
                        [% END %]
309
309
310
                        [% FOREACH s IN SuggestionStatuses %]
310
                        [% FOREACH s IN SuggestionStatuses %]
311
                            [% IF s.authorised_value == selected_status %]
311
                            [% IF s.authorised_value == suggestion.STATUS %]
312
                                <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
312
                                <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
313
                            [% ELSE %]
313
                            [% ELSE %]
314
                                <option value="[% s.authorised_value %]">[% s.lib %]</option>
314
                                <option value="[% s.authorised_value %]">[% s.lib %]</option>
315
- 

Return to bug 21048