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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-7 / +8 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Course reserves &rsaquo; Add items</title>
3
<title>[% t('Koha › Course reserves › Add items') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="courses_add_items_step1" class="course">
6
<body id="courses_add_items_step1" class="course">
Lines 7-13 Link Here
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'cat-search.inc' %]
9
[% INCLUDE 'cat-search.inc' %]
9
10
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo; Add reserves for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a> [% t('› Add reserves for') %] <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
11
12
12
<div class="main container-fluid">
13
<div class="main container-fluid">
13
    <div class="row">
14
    <div class="row">
Lines 15-23 Link Here
15
16
16
        [% IF ERROR_ITEM_NOT_FOUND %]
17
        [% IF ERROR_ITEM_NOT_FOUND %]
17
            [% IF UNKNOWN_BARCODE %]
18
            [% IF UNKNOWN_BARCODE %]
18
                <div class="dialog alert">No item found with barcode [% UNKNOWN_BARCODE %]</div>
19
                <div class="dialog alert">[% t('No item found with barcode') %] [% UNKNOWN_BARCODE %]</div>
19
            [% ELSE %]
20
            [% ELSE %]
20
                 <div class="dialog alert">No item found</div>
21
                 <div class="dialog alert">[% t('No item found') %]</div>
21
            [% END %]
22
            [% END %]
22
        [% END %]
23
        [% END %]
23
24
Lines 26-35 Link Here
26
            <input type="hidden" name="action" value="lookup" />
27
            <input type="hidden" name="action" value="lookup" />
27
28
28
            <fieldset class="rows">
29
            <fieldset class="rows">
29
                <legend>Add items: scan barcode</legend>
30
                <legend>[% t('Add items: scan barcode') %]</legend>
30
                <ol>
31
                <ol>
31
                    <li>
32
                    <li>
32
                        <label class="required" for="barcode">Item barcode:</label>
33
                        <label class="required" for="barcode">[% t('Item barcode:') %]</label>
33
                        <input id="barcode" name="barcode" class="focus" type="text" />
34
                        <input id="barcode" name="barcode" class="focus" type="text" />
34
                    </li>
35
                    </li>
35
                </ol>
36
                </ol>
Lines 38-44 Link Here
38
            <fieldset class="action">
39
            <fieldset class="action">
39
                <input type="submit" value="Submit" class="submit" />
40
                <input type="submit" value="Submit" class="submit" />
40
41
41
                <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
42
                <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">[% t('Cancel') %]</a>
42
            </fieldset>
43
            </fieldset>
43
        </form>
44
        </form>
44
    </div>
45
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt (-17 / +18 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Course reserves &rsaquo; Add items</title>
4
<title>[% t('Koha › Course reserves › Add items') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 9-22 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo; Reserve <i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></i> for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a> [% t('› Reserve') %] <i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></i> [% t('for') %] <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
13
14
14
<div class="main container-fluid">
15
<div class="main container-fluid">
15
    <div class="row">
16
    <div class="row">
16
        <div class="col-md-8 col-md-offset-2">
17
        <div class="col-md-8 col-md-offset-2">
17
18
18
        [% IF course_reserve %]<div class="dialog message" id="already_on_reserve_this">This course already has this item on reserve.</div>[% END %]
19
        [% IF course_reserve %]<div class="dialog message" id="already_on_reserve_this">[% t('This course already has this item on reserve.') %]</div>[% END %]
19
        [% IF course_item %]<div class="dialog message" id="already_on_reserve">Number of courses reserving this item: [% course_item.course_reserves.size %]</div>[% END %]
20
        [% IF course_item %]<div class="dialog message" id="already_on_reserve">[% t('Number of courses reserving this item:') %] [% course_item.course_reserves.size %]</div>[% END %]
20
21
21
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
22
        <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
22
            <input type="hidden" name="course_id" value="[% course.course_id %]" />
23
            <input type="hidden" name="course_id" value="[% course.course_id %]" />
Lines 24-42 Link Here
24
            <input type="hidden" name="action" value="add" />
25
            <input type="hidden" name="action" value="add" />
25
26
26
            <fieldset class="rows">
27
            <fieldset class="rows">
27
                <legend>Add <i>[% biblio.title %]</i> to <i>[% course.course_name %]</i></legend>
28
                <legend>[% t('Add') %] <i>[% biblio.title %]</i> [% t('to') %] <i>[% course.course_name %]</i></legend>
28
                <ol>
29
                <ol>
29
                    <li>
30
                    <li>
30
                        <span class="label">Barcode:</span>
31
                        <span class="label">[% t('Barcode:') %]</span>
31
                        <span id="barcode">[% item.barcode %]</span>
32
                        <span id="barcode">[% item.barcode %]</span>
32
                        <input type="hidden" name="itemnumber" value="[% item.itemnumber %]" />
33
                        <input type="hidden" name="itemnumber" value="[% item.itemnumber %]" />
33
                    </li>
34
                    </li>
34
35
35
                    [% IF item_level_itypes %]
36
                    [% IF item_level_itypes %]
36
                    <li>
37
                    <li>
37
                        <label class="required" for="itype">Item type:</label>
38
                        <label class="required" for="itype">[% t('Item type:') %]</label>
38
                        <select id="itype" name="itype">
39
                        <select id="itype" name="itype">
39
                            <option value="">LEAVE UNCHANGED</option>
40
                            <option value="">[% t('LEAVE UNCHANGED') %]</option>
40
41
41
                            [% FOREACH it IN itypes %]
42
                            [% FOREACH it IN itypes %]
42
                                [% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
43
                                [% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
Lines 50-58 Link Here
50
                    [% END %]
51
                    [% END %]
51
52
52
                    <li>
53
                    <li>
53
                        <label class="required" for="ccode">Collection code:</label>
54
                        <label class="required" for="ccode">[% t('Collection code:') %]</label>
54
                        <select id="ccode" name="ccode">
55
                        <select id="ccode" name="ccode">
55
                            <option value="">LEAVE UNCHANGED</option>
56
                            <option value="">[% t('LEAVE UNCHANGED') %]</option>
56
57
57
                            [% FOREACH c IN ccodes %]
58
                            [% FOREACH c IN ccodes %]
58
                                [% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
59
                                [% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
Lines 65-73 Link Here
65
                    </li>
66
                    </li>
66
67
67
                    <li>
68
                    <li>
68
                        <label class="required" for="location">Shelving location:</label>
69
                        <label class="required" for="location">[% t('Shelving location:') %]</label>
69
                        <select id="location" name="location">
70
                        <select id="location" name="location">
70
                            <option value="">LEAVE UNCHANGED</option>
71
                            <option value="">[% t('LEAVE UNCHANGED') %]</option>
71
72
72
                            [% FOREACH s IN locations %]
73
                            [% FOREACH s IN locations %]
73
                                [% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
74
                                [% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
Lines 80-88 Link Here
80
                    </li>
81
                    </li>
81
82
82
                    <li>
83
                    <li>
83
                        <label class="required" for="holdingbranch">Holding library:</label>
84
                        <label class="required" for="holdingbranch">[% t('Holding library:') %]</label>
84
                        <select id="holdingbranch" name="holdingbranch">
85
                        <select id="holdingbranch" name="holdingbranch">
85
                            <option value="">LEAVE UNCHANGED</option>
86
                            <option value="">[% t('LEAVE UNCHANGED') %]</option>
86
                            [% FOREACH b IN Branches.all() %]
87
                            [% FOREACH b IN Branches.all() %]
87
                                [% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.branchcode == item.holdingbranch ) || ( course.enabled == 'no' && b.branchcode == course_item.holdingbranch ) ) %]
88
                                [% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.branchcode == item.holdingbranch ) || ( course.enabled == 'no' && b.branchcode == course_item.holdingbranch ) ) %]
88
                                    <option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option>
89
                                    <option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option>
Lines 94-105 Link Here
94
                    </li>
95
                    </li>
95
96
96
                    <li>
97
                    <li>
97
                        <label for="staff_note">Staff note:</label>
98
                        <label for="staff_note">[% t('Staff note:') %]</label>
98
                        <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
99
                        <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
99
                    </li>
100
                    </li>
100
101
101
                    <li>
102
                    <li>
102
                        <label for="public_note">Public note:</label>
103
                        <label for="public_note">[% t('Public note:') %]</label>
103
                        <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
104
                        <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
104
                    </li>
105
                    </li>
105
106
Lines 109-115 Link Here
109
            <fieldset class="action">
110
            <fieldset class="action">
110
                <input type="submit" id="submit" value="Save" class="submit focus" />
111
                <input type="submit" id="submit" value="Save" class="submit focus" />
111
112
112
                <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
113
                <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">[% t('Cancel') %]</a>
113
            </fieldset>
114
            </fieldset>
114
        </form>
115
        </form>
115
    </div>
116
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-40 / +41 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Course reserves &rsaquo; Course details for [% course.course_name %]</title>
8
<title>[% t('Koha › Course reserves › Course details for') %] [% course.course_name %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
10
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
Lines 15-21 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
17
[% INCLUDE 'cat-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo; Course details for <i>[% course.course_name %]</i></div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a> [% t('› Course details for') %] <i>[% course.course_name %]</i></div>
19
20
20
    <div class="main container-fluid">
21
    <div class="main container-fluid">
21
        <div class="row">
22
        <div class="row">
Lines 24-74 Link Here
24
            [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
25
            [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
25
            <div id="toolbar">
26
            <div id="toolbar">
26
                [% IF CAN_user_coursereserves_add_reserves %]
27
                [% IF CAN_user_coursereserves_add_reserves %]
27
                    <a class="btn btn-default btn-sm" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="fa fa-plus"></i> Add reserves</a>
28
                    <a class="btn btn-default btn-sm" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="fa fa-plus"></i> [% t('Add reserves') %]</a>
28
                [% END %]
29
                [% END %]
29
                [% IF ( CAN_user_coursereserves_manage_courses ) %]
30
                [% IF ( CAN_user_coursereserves_manage_courses ) %]
30
                    <a class="btn btn-default btn-sm" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="fa fa-pencil"></i> Edit course</a>
31
                    <a class="btn btn-default btn-sm" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="fa fa-pencil"></i> [% t('Edit course') %]</a>
31
                [% END %]
32
                [% END %]
32
                [% IF ( CAN_user_coursereserves_manage_courses ) %]
33
                [% IF ( CAN_user_coursereserves_manage_courses ) %]
33
                    <a class="btn btn-default btn-sm" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&amp;action=del"><i class="fa fa-trash"></i> Delete course</a>
34
                    <a class="btn btn-default btn-sm" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del"><i class="fa fa-trash"></i> [% t('Delete course') %]</a>
34
                [% END %]
35
                [% END %]
35
            </div><!-- /toolbar -->
36
            </div><!-- /toolbar -->
36
            [% END %]
37
            [% END %]
37
38
38
            <div class="rows">
39
            <div class="rows">
39
              <ol>
40
              <ol>
40
                <li><span class="label">Course name</span> [% course.course_name %]</li>
41
                <li><span class="label">[% t('Course name') %]</span> [% course.course_name %]</li>
41
                <li><span class="label">Term</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li>
42
                <li><span class="label">[% t('Term') %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li>
42
                <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li>
43
                <li><span class="label">[% t('Department') %]</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li>
43
                <li><span class="label">Course number</span> [% course.course_number %]</li>
44
                <li><span class="label">[% t('Course number') %]</span> [% course.course_number %]</li>
44
                <li><span class="label">Section</span> [% course.section %]</li>
45
                <li><span class="label">[% t('Section') %]</span> [% course.section %]</li>
45
                <li><span class="label">Instructors</span> [% FOREACH i IN course.instructors %]<div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>[% END %]</li>
46
                <li><span class="label">[% t('Instructors') %]</span> [% FOREACH i IN course.instructors %]<div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>[% END %]</li>
46
                <li><span class="label">Staff note</span> [% course.staff_note %]</li>
47
                <li><span class="label">[% t('Staff note') %]</span> [% course.staff_note %]</li>
47
                <li><span class="label">Public note</span> [% course.public_note %]</li>
48
                <li><span class="label">[% t('Public note') %]</span> [% course.public_note %]</li>
48
                <li><span class="label">Student count</span> [% course.students_count %]</li>
49
                <li><span class="label">[% t('Student count') %]</span> [% course.students_count %]</li>
49
                <li><span class="label">Status</span> [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</li>
50
                <li><span class="label">[% t('Status') %]</span> [% IF course.enabled == 'yes' %][% t('Active') %][% ELSE %][% t('Inactive') %][% END %]</li>
50
              </ol>
51
              </ol>
51
            </div>
52
            </div>
52
53
53
            [% IF course_reserves %]
54
            [% IF course_reserves %]
54
            <table id="course_reserves_table">
55
            <table id="course_reserves_table">
55
                <caption>Reserves</caption>
56
                <caption>[% t('Reserves') %]</caption>
56
                <thead>
57
                <thead>
57
                    <tr>
58
                    <tr>
58
                        <th class="antithe">Title</th>
59
                        <th class="antithe">[% t('Title') %]</th>
59
                        <th>Author</th>
60
                        <th>[% t('Author') %]</th>
60
                        <th>Barcode</th>
61
                        <th>[% t('Barcode') %]</th>
61
                        <th>Call number</th>
62
                        <th>[% t('Call number') %]</th>
62
                        [% IF item_level_itypes %]<th>Item type</th>[% END %]
63
                        [% IF item_level_itypes %]<th>[% t('Item type') %]</th>[% END %]
63
                        <th>Collection</th>
64
                        <th>[% t('Collection') %]</th>
64
                        <th>Location</th>
65
                        <th>[% t('Location') %]</th>
65
                        <th>Library</th>
66
                        <th>[% t('Library') %]</th>
66
                        <th>Staff note</th>
67
                        <th>[% t('Staff note') %]</th>
67
                        <th>Public note</th>
68
                        <th>[% t('Public note') %]</th>
68
                        <th>Link</th>
69
                        <th>[% t('Link') %]</th>
69
                        <th class="NoSort">Other course reserves</th>
70
                        <th class="NoSort">[% t('Other course reserves') %]</th>
70
                        [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
71
                        [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
71
                            <th class="NoSort">Actions</th>
72
                            <th class="NoSort">[% t('Actions') %]</th>
72
                        [% END %]
73
                        [% END %]
73
                    </tr>
74
                    </tr>
74
                </thead>
75
                </thead>
Lines 78-84 Link Here
78
                        <tr>
79
                        <tr>
79
                            <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber %]">[% cr.biblio.title %]</a></td>
80
                            <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cr.biblio.biblionumber %]">[% cr.biblio.title %]</a></td>
80
                            <td>[% cr.biblio.author %]</td>
81
                            <td>[% cr.biblio.author %]</td>
81
                            <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber %]&amp;biblionumber=[% cr.biblio.biblionumber %]&amp;bi=[% cr.biblioitem.biblioitemnumber %]">[% cr.item.barcode %]</a></td>
82
                            <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber %]&biblionumber=[% cr.biblio.biblionumber %]&bi=[% cr.biblioitem.biblioitemnumber %]">[% cr.item.barcode %]</a></td>
82
                            <td>[% cr.item.itemcallnumber %]</td>
83
                            <td>[% cr.item.itemcallnumber %]</td>
83
                            [% IF item_level_itypes %]
84
                            [% IF item_level_itypes %]
84
                            <td>
85
                            <td>
Lines 89-95 Link Here
89
                                        [% ItemTypes.GetDescription( cr.course_item.itype ) %]
90
                                        [% ItemTypes.GetDescription( cr.course_item.itype ) %]
90
                                    [% END %]
91
                                    [% END %]
91
                                [% ELSE %]
92
                                [% ELSE %]
92
                                     <i>Unchanged</i>
93
                                     <i>[% t('Unchanged') %]</i>
93
                                     [% IF cr.item.itype %]
94
                                     [% IF cr.item.itype %]
94
                                         ([% ItemTypes.GetDescription( cr.item.itype ) %])
95
                                         ([% ItemTypes.GetDescription( cr.item.itype ) %])
95
                                     [% END %]
96
                                     [% END %]
Lines 104-110 Link Here
104
                                         [% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) %]
105
                                         [% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) %]
105
                                     [% END %]
106
                                     [% END %]
106
                                 [% ELSE %]
107
                                 [% ELSE %]
107
                                     <i>Unchanged</i>
108
                                     <i>[% t('Unchanged') %]</i>
108
                                     [% IF cr.item.ccode %]
109
                                     [% IF cr.item.ccode %]
109
                                         ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %])
110
                                         ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %])
110
                                     [% END %]
111
                                     [% END %]
Lines 118-124 Link Here
118
                                        [% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) %]
119
                                        [% AuthorisedValues.GetByCode( 'LOC', cr.course_item.location ) %]
119
                                    [% END %]
120
                                    [% END %]
120
                                [% ELSE %]
121
                                [% ELSE %]
121
                                    <i>Unchanged</i>
122
                                    <i>[% t('Unchanged') %]</i>
122
                                    [% IF cr.item.location %]
123
                                    [% IF cr.item.location %]
123
                                        ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %])
124
                                        ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %])
124
                                    [% END %]
125
                                    [% END %]
Lines 132-138 Link Here
132
                                        [% Branches.GetName( cr.course_item.holdingbranch ) %]
133
                                        [% Branches.GetName( cr.course_item.holdingbranch ) %]
133
                                    [% END %]
134
                                    [% END %]
134
                                [% ELSE %]
135
                                [% ELSE %]
135
                                    <i>Unchanged</i>
136
                                    <i>[% t('Unchanged') %]</i>
136
                                    [% IF cr.item.holdingbranch %]
137
                                    [% IF cr.item.holdingbranch %]
137
                                        ([% Branches.GetName( cr.item.holdingbranch ) %])
138
                                        ([% Branches.GetName( cr.item.holdingbranch ) %])
138
                                    [% END %]
139
                                    [% END %]
Lines 153-161 Link Here
153
154
154
                            <td>
155
                            <td>
155
                                [% IF (cr.item.uri) %]
156
                                [% IF (cr.item.uri) %]
156
                                    <a href="[% cr.item.uri %]">Item URI</a>
157
                                    <a href="[% cr.item.uri %]">[% t('Item URI') %]</a>
157
                                [% ELSIF (cr.biblioitem.url) %]
158
                                [% ELSIF (cr.biblioitem.url) %]
158
                                    <a href="[% cr.biblioitem.url %]">Record URL</a>
159
                                    <a href="[% cr.biblioitem.url %]">[% t('Record URL') %]</a>
159
                                [% END %]
160
                                [% END %]
160
                            </td>
161
                            </td>
161
162
Lines 176-191 Link Here
176
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
177
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
177
                                <td class="actions">
178
                                <td class="actions">
178
                                    [% IF CAN_user_coursereserves_add_reserves %]
179
                                    [% IF CAN_user_coursereserves_add_reserves %]
179
                                        <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id %]&amp;itemnumber=[% cr.item.itemnumber %]&amp;action=lookup&amp;return=[% course.course_id %]"><i class="fa fa-pencil"></i> Edit</a>
180
                                        <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id %]&itemnumber=[% cr.item.itemnumber %]&action=lookup&return=[% course.course_id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
180
                                    [% END %]
181
                                    [% END %]
181
182
182
                                    [% IF CAN_user_coursereserves_delete_reserves %]
183
                                    [% IF CAN_user_coursereserves_delete_reserves %]
183
                                        [% IF cr.item.onloan %]
184
                                        [% IF cr.item.onloan %]
184
                                            <a class="btn btn-default btn-xs disabled checkedout delete_item" href="#" data-toggle="tooltip" data-placement="left" title="This item is checked out">
185
                                            <a class="btn btn-default btn-xs disabled checkedout delete_item" href="#" data-toggle="tooltip" data-placement="left" title="[% t('This item is checked out') %]">
185
                                        [% ELSE %]
186
                                        [% ELSE %]
186
                                            <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id %]">
187
                                            <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id %]&action=del_reserve&cr_id=[% cr.cr_id %]">
187
                                        [% END %]
188
                                        [% END %]
188
                                        <i class="fa fa-trash"></i> Remove</a>
189
                                        <i class="fa fa-trash"></i> [% t('Remove') %]</a>
189
                                    [% END %]
190
                                    [% END %]
190
                                </td>
191
                                </td>
191
                            [% END %]
192
                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (-16 / +17 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Course reserves</title>
6
<title>[% t('Koha › Course reserves') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
8
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a></div>
17
18
18
    <div class="main container-fluid">
19
    <div class="main container-fluid">
19
        <div class="row">
20
        <div class="row">
Lines 22-28 Link Here
22
                    [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
23
                    [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
23
                    <div id="toolbar">
24
                    <div id="toolbar">
24
                        [% IF ( CAN_user_coursereserves_manage_courses ) %]
25
                        [% IF ( CAN_user_coursereserves_manage_courses ) %]
25
                            <a class="btn btn-default btn-sm" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> New course</a>
26
                            <a class="btn btn-default btn-sm" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> [% t('New course') %]</a>
26
                        [% END %]
27
                        [% END %]
27
                    </div><!-- /toolbar -->
28
                    </div><!-- /toolbar -->
28
                    [% END %]
29
                    [% END %]
Lines 48-67 Link Here
48
                    </div>
49
                    </div>
49
                    -->
50
                    -->
50
51
51
                    <h1>Courses</h1>
52
                    <h1>[% t('Courses') %]</h1>
52
                    <table id="course_reserves_table">
53
                    <table id="course_reserves_table">
53
                        <thead>
54
                        <thead>
54
                            <tr>
55
                            <tr>
55
                                <th>Name</th>
56
                                <th>[% t('Name') %]</th>
56
                                <th>Dept.</th>
57
                                <th>[% t('Dept.') %]</th>
57
                                <th>Course #</th>
58
                                <th>[% t('Course #') %]</th>
58
                                <th>Section</th>
59
                                <th>[% t('Section') %]</th>
59
                                <th>Term</th>
60
                                <th>[% t('Term') %]</th>
60
                                <th>Instructors</th>
61
                                <th>[% t('Instructors') %]</th>
61
                                <th>Staff note</th>
62
                                <th>[% t('Staff note') %]</th>
62
                                <th>Public note</th>
63
                                <th>[% t('Public note') %]</th>
63
                                <th># of Students</th>
64
                                <th>[% t('# of Students') %]</th>
64
                                <th>Enabled</th>
65
                                <th>[% t('Enabled') %]</th>
65
                            </tr>
66
                            </tr>
66
                        </thead>
67
                        </thead>
67
68
Lines 83-91 Link Here
83
                                    <td>[% c.students_count %]</td>
84
                                    <td>[% c.students_count %]</td>
84
                                    <td>
85
                                    <td>
85
                                        [% IF c.enabled == 'yes' %]
86
                                        [% IF c.enabled == 'yes' %]
86
                                            Yes
87
                                            [% t('Yes') %]
87
                                        [% ELSE %]
88
                                        [% ELSE %]
88
                                            No
89
                                            [% t('No') %]
89
                                        [% END %]
90
                                        [% END %]
90
                                    </td>
91
                                    </td>
91
                            [% END %]
92
                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-29 / +30 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Course reserves &rsaquo; [% IF course_name %] Edit [% course_name %] [% ELSE %] New course [% END %]</title>
4
<title>[% t('Koha › Course reserves ›') %] [% IF course_name %] [% t('Edit') %] [% course_name %] [% ELSE %] [% t('New course') %] [% END %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo; [% IF course_name %] Edit <i>[% course_name %]</i> [% ELSE %] New course [% END %]</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a> › [% IF course_name %] [% t('Edit') %] <i>[% course_name %]</i> [% ELSE %] [% t('New course') %] [% END %]</div>
13
14
14
[% IF ( departments ) %]
15
[% IF ( departments ) %]
15
16
Lines 20-31 Link Here
20
            <form method="post" action="/cgi-bin/koha/course_reserves/mod_course.pl" class="validated">
21
            <form method="post" action="/cgi-bin/koha/course_reserves/mod_course.pl" class="validated">
21
                [% IF course_id %]<input type="hidden" name="course_id" value="[% course_id %]" />[% END %]
22
                [% IF course_id %]<input type="hidden" name="course_id" value="[% course_id %]" />[% END %]
22
                <fieldset class="rows">
23
                <fieldset class="rows">
23
                    <legend>[% IF course_id %]Edit course[% ELSE %]Create course[% END %]</legend>
24
                    <legend>[% IF course_id %][% t('Edit course') %][% ELSE %][% t('Create course') %][% END %]</legend>
24
                    <ol>
25
                    <ol>
25
                        <li>
26
                        <li>
26
                            <label class="required" for="department">Department:</label>
27
                            <label class="required" for="department">[% t('Department:') %]</label>
27
                            <select id="department" name="department" required="required" class="required">
28
                            <select id="department" name="department" required="required" class="required">
28
                                <option value="">Select a department</option>
29
                                <option value="">[% t('Select a department') %]</option>
29
30
30
                                [% FOREACH d IN departments %]
31
                                [% FOREACH d IN departments %]
31
                                    [% IF d.authorised_value == department %]
32
                                    [% IF d.authorised_value == department %]
Lines 35-63 Link Here
35
                                    [% END %]
36
                                    [% END %]
36
                                [% END %]
37
                                [% END %]
37
                            </select>
38
                            </select>
38
                            <span class="required">Required</span>
39
                            <span class="required">[% t('Required') %]</span>
39
                        </li>
40
                        </li>
40
41
41
                        <li>
42
                        <li>
42
                            <label class="required" for="course_number">Course number:</label>
43
                            <label class="required" for="course_number">[% t('Course number:') %]</label>
43
                            <input id="course_number" name="course_number" type="text" value="[% course_number %]" required="required" class="required" />
44
                            <input id="course_number" name="course_number" type="text" value="[% course_number %]" required="required" class="required" />
44
                            <span class="required">Required</span>
45
                            <span class="required">[% t('Required') %]</span>
45
                        </li>
46
                        </li>
46
47
47
                        <li>
48
                        <li>
48
                            <label for="section">Section:</label>
49
                            <label for="section">[% t('Section:') %]</label>
49
                            <input id="section" name="section" type="text" value="[% section %]"/>
50
                            <input id="section" name="section" type="text" value="[% section %]" />
50
                        </li>
51
                        </li>
51
52
52
                        <li>
53
                        <li>
53
                            <label class="required" for="course_name">Course name:</label>
54
                            <label class="required" for="course_name">[% t('Course name:') %]</label>
54
                            <input id="course_name" name="course_name" type="text" value="[% course_name %]" required="required" class="required" />
55
                            <input id="course_name" name="course_name" type="text" value="[% course_name %]" required="required" class="required" />
55
                            <span class="required">Required</span>
56
                            <span class="required">[% t('Required') %]</span>
56
                        </li>
57
                        </li>
57
58
58
                        <li>
59
                        <li>
59
                            [% IF terms %]
60
                            [% IF terms %]
60
                                <label for="term">Term:</label>
61
                                <label for="term">[% t('Term:') %]</label>
61
                                <select id="term" name="term">
62
                                <select id="term" name="term">
62
                                    <option value=""></option>
63
                                    <option value=""></option>
63
64
Lines 70-110 Link Here
70
                                    [% END %]
71
                                    [% END %]
71
                                </select>
72
                                </select>
72
                            [% ELSE %]
73
                            [% ELSE %]
73
                                <span class="label">Term: </span>
74
                                <span class="label">[% t('Term:') %] </span>
74
                                <span id="term">No TERM authorised values found! Please create one or more authorised values with the category TERM.</span>
75
                                <span id="term">[% t('No TERM authorised values found! Please create one or more authorised values with the category TERM.') %]</span>
75
                            [% END %]
76
                            [% END %]
76
                        </li>
77
                        </li>
77
78
78
                        <li>
79
                        <li>
79
                            <span class="label">Instructors:</span>
80
                            <span class="label">[% t('Instructors:') %]</span>
80
81
81
                            <fieldset id="course_instructors">
82
                            <fieldset id="course_instructors">
82
                                 <div id="instructors">[% FOREACH i IN instructors %]<div id="borrower_[% i.cardnumber %]">[% i.surname %], [% i.firstname %] ( <a href="#" class="removeInstructor"> Remove </a> )
83
                                 <div id="instructors">[% FOREACH i IN instructors %]<div id="borrower_[% i.cardnumber %]">[% i.surname %], [% i.firstname %] ( <a href="#" class="removeInstructor"> [% t('Remove') %] </a> )
83
                                             <input type='hidden' name='instructors' value='[% i.cardnumber %]' /></div>[% END %]</div>
84
                                             <input type="hidden" name="instructors" value="[% i.cardnumber %]" /></div>[% END %]</div>
84
                            </fieldset>
85
                            </fieldset>
85
86
86
                            <fieldset>
87
                            <fieldset>
87
                                <label for="find_instructor">Instructor search:</label>
88
                                <label for="find_instructor">[% t('Instructor search:') %]</label>
88
                                <input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit"/>
89
                                <input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit" />
89
                                <div id="find_instructor_container"></div>
90
                                <div id="find_instructor_container"></div>
90
                            </fieldset>
91
                            </fieldset>
91
                        <li>
92
                        <li>
92
                            <label for="staff_note">Staff note:</label>
93
                            <label for="staff_note">[% t('Staff note:') %]</label>
93
                            <textarea name="staff_note" id="staff_note">[% staff_note %]</textarea>
94
                            <textarea name="staff_note" id="staff_note">[% staff_note %]</textarea>
94
                        </li>
95
                        </li>
95
96
96
                        <li>
97
                        <li>
97
                            <label for="public_note">Public note:</label>
98
                            <label for="public_note">[% t('Public note:') %]</label>
98
                            <textarea name="public_note" id="public_note">[% public_note %]</textarea>
99
                            <textarea name="public_note" id="public_note">[% public_note %]</textarea>
99
                        </li>
100
                        </li>
100
101
101
                        <li>
102
                        <li>
102
                            <label for="students_count">Number of students:</label>
103
                            <label for="students_count">[% t('Number of students:') %]</label>
103
                            <input id="students_count" name="students_count" type="text" value="[% students_count %]" />
104
                            <input id="students_count" name="students_count" type="text" value="[% students_count %]" />
104
                        </li>
105
                        </li>
105
106
106
                        <li>
107
                        <li>
107
                            <label for="enabled">Enabled?</label>
108
                            <label for="enabled">[% t('Enabled?') %]</label>
108
                            [% IF enabled == 'no' %]
109
                            [% IF enabled == 'no' %]
109
                                <input type="checkbox" name="enabled" id="enabled" />
110
                                <input type="checkbox" name="enabled" id="enabled" />
110
                            [% ELSE %]
111
                            [% ELSE %]
Lines 118-126 Link Here
118
                    <input type="submit" value="Save" class="submit" />
119
                    <input type="submit" value="Save" class="submit" />
119
120
120
                    [% IF course_id %]
121
                    [% IF course_id %]
121
                        <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course_id %]" class="cancel">Cancel</a>
122
                        <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course_id %]" class="cancel">[% t('Cancel') %]</a>
122
                    [% ELSE %]
123
                    [% ELSE %]
123
                        <a href="/cgi-bin/koha/course_reserves/course-reserves.pl" class="cancel">Cancel</a>
124
                        <a href="/cgi-bin/koha/course_reserves/course-reserves.pl" class="cancel">[% t('Cancel') %]</a>
124
                    [% END %]
125
                    [% END %]
125
                </fieldset>
126
                </fieldset>
126
            </form>
127
            </form>
Lines 131-141 Link Here
131
132
132
<div class="dialog alert">
133
<div class="dialog alert">
133
    <p>
134
    <p>
134
        No DEPARTMENT authorized values found!
135
        [% t('No DEPARTMENT authorized values found!') %]
135
        [% IF ( CAN_user_parameters ) %]
136
        [% IF ( CAN_user_parameters ) %]
136
            Please <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=DEPARTMENT">create one or more authorized values</a> with the category DEPARTMENT.
137
            [% t('Please') %] <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=DEPARTMENT">[% t('create one or more authorized values') %]</a> [% t('with the category DEPARTMENT.') %]
137
        [% ELSE %]
138
        [% ELSE %]
138
            An administrator must create one or more authorized values with the category DEPARTMENT.
139
            [% t('An administrator must create one or more authorized values with the category DEPARTMENT.') %]
139
        [% END %]
140
        [% END %]
140
    </p>
141
    </p>
141
</div>
142
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/invalid-course.tt (-4 / +4 lines)
Lines 1-19 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Course reserves</title>
3
<title>[% t('Koha › Course reserves') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<body id="courses_invalid_course" class="course">
5
<body id="courses_invalid_course" class="course">
5
6
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'cat-search.inc' %]
8
[% INCLUDE 'cat-search.inc' %]
8
9
9
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></div>
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">[% t('Course reserves') %]</a></div>
10
11
11
<div class="main container-fluid">
12
<div class="main container-fluid">
12
    <div class="row">
13
    <div class="row">
13
        <div class="col-md-8 col-md-offset-2">
14
        <div class="col-md-8 col-md-offset-2">
14
15
15
            <div class="dialog alert">
16
            <div class="dialog alert">
16
                <p>Invalid course!</p>
17
                <p>[% t('Invalid course!') %]</p>
17
            </div>
18
            </div>
18
19
19
        </div>
20
        </div>
20
- 

Return to bug 20988