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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc (+30 lines)
Line 0 Link Here
1
<script type="text/javascript">
2
//<![CDATA[
3
    var CIRCULATION_RETURNED = _("Returned");
4
    var CIRCULATION_NOT_RETURNED = _("Unable to return");
5
    var CIRCULATION_RENEWED_DUE = _("Renewed, due:");
6
    var CIRCULATION_RENEW_FAILED = _("Renew failed:")
7
    var NOT_CHECKED_OUT = _("not checked out");
8
    var TOO_MANY_RENEWALS = _("too many renewals");
9
    var ON_RESERVE = _("on reserve");
10
    var REASON_UNKNOWN = _("reason unkown");
11
    var TODAYS_CHECKOUTS = _("Today's checkouts");
12
    var PREVIOUS_CHECKOUTS = _("Previous checkouts");
13
    var BY = _("by");
14
    var ON_HOLD = _("On hold");
15
    var NOT_RENEWABLE = _("Not renewable");
16
    var OF = _("of");
17
    var RENEWALS_REMAINING = _("renewals remaining");
18
    var HOLD_IS = _("Hold is");
19
    var SUSPENDED = _("suspended");
20
    var UNTIL = _("until");
21
    var ITEM_IS = _("Item is");
22
    var WAITING = _("waiting");
23
    var AT = _("at");
24
    var IN_TRANSIT = _("in transit");
25
    var FROM = _("from");
26
    var NOT_TRANSFERRED_YET = _("Item hasn't been transferred yet from");
27
    var NO = _("No");
28
    var YES = _("Yes");
29
//]]>
30
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js (-17 / +17 lines)
Lines 60-68 $(document).ready(function() { Link Here
60
60
61
                content = "";
61
                content = "";
62
                if ( data.returned ) {
62
                if ( data.returned ) {
63
                    content = _("Returned");
63
                    content = CIRCULATION_RETURNED;
64
                } else {
64
                } else {
65
                    content = _("Unable to return");
65
                    content = CIRCULATION_NOT_RETURNED;
66
                }
66
                }
67
                    
67
                    
68
                $(id).replaceWith( content );
68
                $(id).replaceWith( content );
Lines 89-107 $(document).ready(function() { Link Here
89
89
90
                var content = "";
90
                var content = "";
91
                if ( data.renew_okay ) {
91
                if ( data.renew_okay ) {
92
                    content = _("Renewed, due: ") + data.date_due;
92
                    content = CIRCULATION_RENEWED_DUE + " " + data.date_due;
93
                } else {
93
                } else {
94
                    content = _("Renew failed: ");
94
                    content = CIRCULATION_RENEW_FAILED + " ";
95
                    if ( data.error == "no_checkout" ) {
95
                    if ( data.error == "no_checkout" ) {
96
                        content += _("not checked out");
96
                        content += NOT_CHECKED_OUT;
97
                    } else if ( data.error == "too_many" ) {
97
                    } else if ( data.error == "too_many" ) {
98
                        content += _("too many renewals");
98
                        content += TOO_MANY_RENEWALS;
99
                    } else if ( data.error == "on_reserve" ) {
99
                    } else if ( data.error == "on_reserve" ) {
100
                        content += _("on reserve");
100
                        content += ON_RESERVE;
101
                    } else if ( data.error ) {
101
                    } else if ( data.error ) {
102
                        content += data.error;
102
                        content += data.error;
103
                    } else {
103
                    } else {
104
                        content += _("reason unknown");
104
                        content += REASON_UNKNOWN;
105
                    }
105
                    }
106
                }
106
                }
107
                    
107
                    
Lines 133-141 $(document).ready(function() { Link Here
133
            { 
133
            { 
134
                "mDataProp": function( oObj ) {
134
                "mDataProp": function( oObj ) {
135
                    if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) {
135
                    if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) {
136
                        return "<strong>" + _("Today's checkouts") + "</strong>";
136
                        return "<strong>" + TODAYS_CHECKOUTS + "</strong>";
137
                    } else {
137
                    } else {
138
                        return "<strong>" + _("Previous checkouts") + "</strong>";
138
                        return "<strong>" + PREVIOUS_CHECKOUTS + "</strong>";
139
                    }
139
                    }
140
                }
140
                }
141
            },
141
            },
Lines 164-170 $(document).ready(function() { Link Here
164
                    title += "</a>";
164
                    title += "</a>";
165
165
166
                    if ( oObj.author ) {
166
                    if ( oObj.author ) {
167
                        title += " " + _("by") + " " + oObj.author;
167
                        title += " " + BY + " " + oObj.author;
168
                    }
168
                    }
169
169
170
                    if ( oObj.itemnotes ) {
170
                    if ( oObj.itemnotes ) {
Lines 215-228 $(document).ready(function() { Link Here
215
                        // Do nothing 
215
                        // Do nothing 
216
                    } else if ( oObj.can_renew_error == "on_reserve" ) {
216
                    } else if ( oObj.can_renew_error == "on_reserve" ) {
217
                        content += "<span class='renewals-disabled'>"
217
                        content += "<span class='renewals-disabled'>"
218
                                + "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + _("On hold") + "</a>"
218
                                + "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>"
219
                                + "</span>";
219
                                + "</span>";
220
220
221
                        span_style = "display: none";
221
                        span_style = "display: none";
222
                        span_class = "renewals-allowed";
222
                        span_class = "renewals-allowed";
223
                    } else if ( oObj.can_renew_error == "too_many" ) {
223
                    } else if ( oObj.can_renew_error == "too_many" ) {
224
                        content += "<span class='renewals-disabled'>"
224
                        content += "<span class='renewals-disabled'>"
225
                                + _("Not renewable")
225
                                + NOT_RENEWABLE 
226
                                + "</span>";
226
                                + "</span>";
227
227
228
                        span_style = "display: none";
228
                        span_style = "display: none";
Lines 243-251 $(document).ready(function() { Link Here
243
                    if ( oObj.renewals_remaining ) {
243
                    if ( oObj.renewals_remaining ) {
244
                        content += "<span class='renewals'>(" 
244
                        content += "<span class='renewals'>(" 
245
                                + oObj.renewals_remaining 
245
                                + oObj.renewals_remaining 
246
                                + " " + _("of") + " " 
246
                                + " " + OF + " " 
247
                                + oObj.renewals_allowed + " " 
247
                                + oObj.renewals_allowed + " " 
248
                                + _("renewals remaining") + ")</span>"
248
                                + RENEWALS_REMAINING + ")</span>"
249
                    }
249
                    }
250
250
251
251
Lines 256-262 $(document).ready(function() { Link Here
256
                "bSortable": false,
256
                "bSortable": false,
257
                "mDataProp": function ( oObj ) {
257
                "mDataProp": function ( oObj ) {
258
                    if ( oObj.can_renew_error == "on_reserve" ) {
258
                    if ( oObj.can_renew_error == "on_reserve" ) {
259
                        return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + _("On hold") + "</a>";
259
                        return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>";
260
                    } else {
260
                    } else {
261
                        return "<input type='checkbox' class='checkin' id='checkin_" + oObj.itemnumber + "' name='checkin' value='" + oObj.itemnumber +"'></input>";
261
                        return "<input type='checkbox' class='checkin' id='checkin_" + oObj.itemnumber + "' name='checkin' value='" + oObj.itemnumber +"'></input>";
262
                    }
262
                    }
Lines 353-359 $(document).ready(function() { Link Here
353
                            title += "</a>";
353
                            title += "</a>";
354
354
355
                            if ( oObj.author ) {
355
                            if ( oObj.author ) {
356
                                title += " " + _("by") + " " + oObj.author;
356
                                title += " " + BY + " " + oObj.author;
357
                            }
357
                            }
358
358
359
                            if ( oObj.itemnotes ) {
359
                            if ( oObj.itemnotes ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js (-9 / +9 lines)
Lines 23-29 $(document).ready(function() { Link Here
23
                            title += "</a>";
23
                            title += "</a>";
24
24
25
                            if ( oObj.author ) {
25
                            if ( oObj.author ) {
26
                                title += " " + _("by") + " " + oObj.author;
26
                                title += " " + BY + " " + oObj.author;
27
                            }
27
                            }
28
28
29
                            if ( oObj.itemnotes ) {
29
                            if ( oObj.itemnotes ) {
Lines 58-66 $(document).ready(function() { Link Here
58
                            var data = "";
58
                            var data = "";
59
59
60
                            if ( oObj.suspend == 1 ) {
60
                            if ( oObj.suspend == 1 ) {
61
                                data += "<p>" + _("Hold is") + " <strong> " + _("suspended") + " </strong>";
61
                                data += "<p>" + HOLD_IS + " <strong> " + SUSPENDED + " </strong>";
62
                                if ( oObj.suspend_until ) {
62
                                if ( oObj.suspend_until ) {
63
                                    data += " " + _("until") + " " + oObj.suspend_until_formatted;
63
                                    data += " " + UNTIL + " " + oObj.suspend_until_formatted;
64
                                }
64
                                }
65
                                data += "</p>";
65
                                data += "</p>";
66
                            }
66
                            }
Lines 68-82 $(document).ready(function() { Link Here
68
                            if ( oObj.barcode ) {
68
                            if ( oObj.barcode ) {
69
                                data += "<em>";
69
                                data += "<em>";
70
                                if ( oObj.found == "W" ) {
70
                                if ( oObj.found == "W" ) {
71
                                    data += _("Item is") + " <strong> " + _("waiting") + " </strong>";
71
                                    data += ITEM_IS + " <strong> " + WAITING + " </strong>";
72
72
73
                                    if ( ! oObj.waiting_here ) {
73
                                    if ( ! oObj.waiting_here ) {
74
                                        data += " " + _("at") + " " + oObj.waiting_at;
74
                                        data += " " + AT + " " + oObj.waiting_at;
75
                                    }
75
                                    }
76
                                } else if ( oObj.transferred ) {
76
                                } else if ( oObj.transferred ) {
77
                                    data += _("Item is") + " <strong> " + _("in transit") + " </strong> " + _("from") + oObj.from_branch;
77
                                    data += ITEM_IS + " <strong> " + IN_TRANSIT + " </strong> " + FROM + oObj.from_branch;
78
                                } else if ( oObj.not_transferred ) {
78
                                } else if ( oObj.not_transferred ) {
79
                                    data += _("Item hasn't been transferred yet from") + " " + oObj.not_transferred_by;
79
                                    data += NOT_TRANSFERRED_YET + " " + oObj.not_transferred_by;
80
                                }                                 data += "</em>";
80
                                }                                 data += "</em>";
81
81
82
                                data += " <a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=" 
82
                                data += " <a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=" 
Lines 99-106 $(document).ready(function() { Link Here
99
                    {
99
                    {
100
                        "mDataProp": function( oObj ) {
100
                        "mDataProp": function( oObj ) {
101
                            return "<select name='rank-request'>"
101
                            return "<select name='rank-request'>"
102
                                 + "<option value='n'>" + _("No") + "</option>"
102
                                 + "<option value='n'>" + NO + "</option>"
103
                                 + "<option value='del'>" + _("Yes") + "</option>"
103
                                 + "<option value='del'>" + YES  + "</option>"
104
                                 + "</select>"
104
                                 + "</select>"
105
                                 + "<input type='hidden' name='biblionumber' value='" + oObj.biblionumber + "'>"
105
                                 + "<input type='hidden' name='biblionumber' value='" + oObj.biblionumber + "'>"
106
                                 + "<input type='hidden' name='borrowernumber' value='" + borrowernumber + "'>"
106
                                 + "<input type='hidden' name='borrowernumber' value='" + borrowernumber + "'>"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (+1 lines)
Lines 16-21 Link Here
16
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
16
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
18
[% INCLUDE 'datatables-strings.inc' %]
18
[% INCLUDE 'datatables-strings.inc' %]
19
[% INCLUDE 'strings.inc' %]
19
<!-- <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> -->
20
<!-- <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> -->
20
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
21
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
21
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
22
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 12-17 Link Here
12
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
12
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
13
<script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
13
<script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
14
[% INCLUDE 'datatables-strings.inc' %]
14
[% INCLUDE 'datatables-strings.inc' %]
15
[% INCLUDE 'strings.inc' %]
15
<script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
16
<script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
16
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
18
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
18
- 

Return to bug 11703