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

(-)a/course_reserves/course.pl (-2 / +3 lines)
Lines 47-54 if ($course_id) { Link Here
47
}
47
}
48
48
49
$template->param(
49
$template->param(
50
    departments => GetAuthorisedValues('DEPARTMENT'),
50
    departments  => GetAuthorisedValues('DEPARTMENT'),
51
    terms       => GetAuthorisedValues('TERM'),
51
    terms        => GetAuthorisedValues('TERM'),
52
    course_types => GetAuthorisedValues('CR_TYPE'),
52
);
53
);
53
54
54
output_html_with_http_headers $cgi, $cookie, $template->output;
55
output_html_with_http_headers $cgi, $cookie, $template->output;
(-)a/course_reserves/mod_course.pl (+1 lines)
Lines 41-46 if ( $op eq 'cud-del' ) { Link Here
41
    my %params;
41
    my %params;
42
42
43
    $params{'course_id'}      = $course_id;
43
    $params{'course_id'}      = $course_id;
44
    $params{'course_type'}    = $cgi->param('course_type') || 'COURSE';
44
    $params{'department'}     = $cgi->param('department');
45
    $params{'department'}     = $cgi->param('department');
45
    $params{'course_number'}  = $cgi->param('course_number');
46
    $params{'course_number'}  = $cgi->param('course_number');
46
    $params{'section'}        = $cgi->param('section');
47
    $params{'section'}        = $cgi->param('section');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (+6 lines)
Lines 94-99 Link Here
94
        <div class="rows">
94
        <div class="rows">
95
            <ol>
95
            <ol>
96
                <li><span class="label">Course name: </span> [% course.course_name | html %]</li>
96
                <li><span class="label">Course name: </span> [% course.course_name | html %]</li>
97
                [% IF ( course.course_type ) %]
98
                    <li>
99
                        <span class="label">Type: </span>
100
                        [% AuthorisedValues.GetByCode( 'CR_TYPE', course.course_type ) | html %]
101
                    </li>
102
                [% END %]
97
                [% IF ( course.term ) %]
103
                [% IF ( course.term ) %]
98
                    <li>
104
                    <li>
99
                        <span class="label">[% tp('Semester', 'Term') | html %]: </span>
105
                        <span class="label">[% tp('Semester', 'Term') | html %]: </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (+2 lines)
Lines 49-54 Link Here
49
            <thead>
49
            <thead>
50
                <tr>
50
                <tr>
51
                    <th>Name</th>
51
                    <th>Name</th>
52
                    <th>Type</th>
52
                    <th>Dept.</th>
53
                    <th>Dept.</th>
53
                    <th>Course #</th>
54
                    <th>Course #</th>
54
                    <th>Section</th>
55
                    <th>Section</th>
Lines 65-70 Link Here
65
                [% FOREACH c IN courses %]
66
                [% FOREACH c IN courses %]
66
                    <tr>
67
                    <tr>
67
                        <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %][%- IF c.section -%]- [% c.section | html %][%- END -%]</a></td>
68
                        <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %][%- IF c.section -%]- [% c.section | html %][%- END -%]</a></td>
69
                        <td>[% AuthorisedValues.GetByCode( 'CR_TYPE', c.course_type ) | html %]</td>
68
                        <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
70
                        <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
69
                        <td>[% c.course_number | html %]</td>
71
                        <td>[% c.course_number | html %]</td>
70
                        <td>[% c.section | html %]</td>
72
                        <td>[% c.section | html %]</td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-1 / +16 lines)
Lines 69-74 Link Here
69
            <fieldset class="rows">
69
            <fieldset class="rows">
70
                <legend>[% IF course_id %]Edit course[% ELSE %]Create course[% END %]</legend>
70
                <legend>[% IF course_id %]Edit course[% ELSE %]Create course[% END %]</legend>
71
                <ol>
71
                <ol>
72
                    <li>
73
                        <label class="required" for="course_type">Type:</label>
74
                        <select id="course_type" name="course_type" required="required" class="required">
75
                            <option value="">Select a type</option>
76
77
                            [% FOREACH ct IN course_types %]
78
                                [% IF ct.authorised_value == course_type %]
79
                                    <option value="[% ct.authorised_value | html %]" selected="selected">[% ct.lib | html %]</option>
80
                                [% ELSE %]
81
                                    <option value="[% ct.authorised_value | html %]">[% ct.lib | html %]</option>
82
                                [% END %]
83
                            [% END %]
84
                        </select>
85
                        <span class="required">Required</span>
86
                    </li>
87
72
                    <li>
88
                    <li>
73
                        <label class="required" for="department">Department:</label>
89
                        <label class="required" for="department">Department:</label>
74
                        <select id="department" name="department" required="required" class="required">
90
                        <select id="department" name="department" required="required" class="required">
75
- 

Return to bug 35972