Lines 1-15
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Course reserves › Add items</title> |
2 |
<title>Koha › Course reserves › Add items</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
|
|
|
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
7 |
$(document).ready(function() { |
8 |
$('#submit').focus(); |
9 |
}); |
10 |
//]]> |
11 |
</script> |
12 |
|
13 |
</head> |
4 |
</head> |
14 |
|
5 |
|
15 |
<body> |
6 |
<body> |
Lines 19-133
$(document).ready(function() {
Link Here
|
19 |
|
10 |
|
20 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> › Reserve <i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.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> |
11 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> › Reserve <i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.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> |
21 |
|
12 |
|
22 |
<div id="doc2" class="yui-t7"> |
13 |
<div id="doc" class="yui-t7"> |
23 |
<div id="bd"> |
14 |
<div id="bd"> |
24 |
<div id="yui-main"> |
|
|
25 |
<div class="yui-b"> |
26 |
<div class="yui-g"> |
27 |
<div class="yui-u first"> |
28 |
[% IF course_reserve %]<div class="warn" id="already_on_reserve_this">This course already has this item on reserve.<div>[% END %] |
29 |
[% IF course_item %]<div class="warn" id="already_on_reserve">Number of courses reserving this item: [% course_item.course_reserves.size %]<div>[% END %] |
30 |
|
31 |
<form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl"> |
32 |
<input type="hidden" name="course_id" value="[% course.course_id %]" /> |
33 |
<input type="hidden" name="action" value="add" /> |
34 |
|
35 |
<fieldset class="rows"> |
36 |
<legend>Add <i>[% item.title %]</i> to <i>[% course.course_name %]</i></legend> |
37 |
<ol> |
38 |
<li> |
39 |
<label for="barcode">Barcode:</label> |
40 |
<span id="barcode">[% item.barcode %]</span> |
41 |
<input type="hidden" name="itemnumber" value="[% item.itemnumber %]" /> |
42 |
</li> |
43 |
|
44 |
[% IF item_level_itypes %] |
45 |
<li> |
46 |
<label class="required" for="itype">Item Type:</label> |
47 |
<select id="itype" name="itype"> |
48 |
<option value="">LEAVE UNCHANGED</option> |
49 |
|
50 |
[% FOREACH it IN itypes %] |
51 |
[% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
52 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
53 |
[% ELSE %] |
54 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
55 |
[% END %] |
56 |
[% END %] |
57 |
</select> |
58 |
</li> |
59 |
[% END %] |
60 |
|
61 |
<li> |
62 |
<label class="required" for="ccode">Collection Code:</label> |
63 |
<select id="ccode" name="ccode"> |
64 |
<option value="">LEAVE UNCHANGED</option> |
65 |
|
66 |
[% FOREACH c IN ccodes %] |
67 |
[% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
68 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
69 |
[% ELSE %] |
70 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
71 |
[% END %] |
72 |
[% END %] |
73 |
</select> |
74 |
</li> |
75 |
|
76 |
<li> |
77 |
<label class="required" for="location">Shelving Location:</label> |
78 |
<select id="location" name="location"> |
79 |
<option value="">LEAVE UNCHANGED</option> |
80 |
|
81 |
[% FOREACH s IN locations %] |
82 |
[% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
83 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
84 |
[% ELSE %] |
85 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
86 |
[% END %] |
87 |
[% END %] |
88 |
</select> |
89 |
</li> |
90 |
|
91 |
<li> |
92 |
<label class="required" for="holdingbranch">Holding Library:</label> |
93 |
<select id="holdingbranch" name="holdingbranch"> |
94 |
<option value="">LEAVE UNCHANGED</option> |
95 |
|
96 |
[% FOREACH b IN branches %] |
97 |
[% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
98 |
<option value="[% b.value %]" selected="selected">[% b.branchname %]</option> |
99 |
[% ELSE %] |
100 |
<option value="[% b.value %]">[% b.branchname %]</option> |
101 |
[% END %] |
102 |
[% END %] |
103 |
</select> |
104 |
</li> |
105 |
|
106 |
<li> |
107 |
<label for="staff_note">Staff note:</label> |
108 |
<textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea> |
109 |
</li> |
110 |
|
111 |
<li> |
112 |
<label for="public_note">Public note:</label> |
113 |
<textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea> |
114 |
</li> |
115 |
|
116 |
</ol> |
117 |
</fieldset> |
118 |
|
119 |
<fieldset class="action"> |
120 |
<input type="submit" id="submit" value="Save" class="submit" /> |
121 |
|
122 |
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a> |
123 |
</fieldset> |
124 |
|
125 |
</div> |
126 |
</div> |
127 |
</div> |
128 |
</div> |
129 |
</div> |
130 |
</div> |
131 |
|
15 |
|
|
|
16 |
[% IF course_reserve %]<div class="dialog message" id="already_on_reserve_this">This course already has this item on reserve.</div>[% END %] |
17 |
[% IF course_item %]<div class="dialog message" id="already_on_reserve">Number of courses reserving this item: [% course_item.course_reserves.size %]</div>[% END %] |
18 |
|
19 |
<form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl"> |
20 |
<input type="hidden" name="course_id" value="[% course.course_id %]" /> |
21 |
<input type="hidden" name="action" value="add" /> |
22 |
|
23 |
<fieldset class="rows"> |
24 |
<legend>Add <i>[% item.title %]</i> to <i>[% course.course_name %]</i></legend> |
25 |
<ol> |
26 |
<li> |
27 |
<span class="label">Barcode:</span> |
28 |
<span id="barcode">[% item.barcode %]</span> |
29 |
<input type="hidden" name="itemnumber" value="[% item.itemnumber %]" /> |
30 |
</li> |
31 |
|
32 |
[% IF item_level_itypes %] |
33 |
<li> |
34 |
<label class="required" for="itype">Item type:</label> |
35 |
<select id="itype" name="itype"> |
36 |
<option value="">LEAVE UNCHANGED</option> |
37 |
|
38 |
[% FOREACH it IN itypes %] |
39 |
[% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %] |
40 |
<option value="[% it.itemtype %]" selected="selected">[% it.description %]</option> |
41 |
[% ELSE %] |
42 |
<option value="[% it.itemtype %]">[% it.description %]</option> |
43 |
[% END %] |
44 |
[% END %] |
45 |
</select> |
46 |
</li> |
47 |
[% END %] |
48 |
|
49 |
<li> |
50 |
<label class="required" for="ccode">Collection code:</label> |
51 |
<select id="ccode" name="ccode"> |
52 |
<option value="">LEAVE UNCHANGED</option> |
53 |
|
54 |
[% FOREACH c IN ccodes %] |
55 |
[% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %] |
56 |
<option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option> |
57 |
[% ELSE %] |
58 |
<option value="[% c.authorised_value %]">[% c.lib %]</option> |
59 |
[% END %] |
60 |
[% END %] |
61 |
</select> |
62 |
</li> |
63 |
|
64 |
<li> |
65 |
<label class="required" for="location">Shelving location:</label> |
66 |
<select id="location" name="location"> |
67 |
<option value="">LEAVE UNCHANGED</option> |
68 |
|
69 |
[% FOREACH s IN locations %] |
70 |
[% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %] |
71 |
<option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option> |
72 |
[% ELSE %] |
73 |
<option value="[% s.authorised_value %]">[% s.lib %]</option> |
74 |
[% END %] |
75 |
[% END %] |
76 |
</select> |
77 |
</li> |
78 |
|
79 |
<li> |
80 |
<label class="required" for="holdingbranch">Holding library:</label> |
81 |
<select id="holdingbranch" name="holdingbranch"> |
82 |
<option value="">LEAVE UNCHANGED</option> |
83 |
|
84 |
[% FOREACH b IN branches %] |
85 |
[% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %] |
86 |
<option value="[% b.value %]" selected="selected">[% b.branchname %]</option> |
87 |
[% ELSE %] |
88 |
<option value="[% b.value %]">[% b.branchname %]</option> |
89 |
[% END %] |
90 |
[% END %] |
91 |
</select> |
92 |
</li> |
93 |
|
94 |
<li> |
95 |
<label for="staff_note">Staff note:</label> |
96 |
<textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea> |
97 |
</li> |
98 |
|
99 |
<li> |
100 |
<label for="public_note">Public note:</label> |
101 |
<textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea> |
102 |
</li> |
103 |
|
104 |
</ol> |
105 |
</fieldset> |
106 |
|
107 |
<fieldset class="action"> |
108 |
<input type="submit" id="submit" value="Save" class="submit focus" /> |
109 |
|
110 |
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a> |
111 |
</fieldset> |
112 |
</form> |
113 |
</div> |
132 |
|
114 |
|
133 |
[% INCLUDE 'intranet-bottom.inc' %] |
115 |
[% INCLUDE 'intranet-bottom.inc' %] |
134 |
- |
|
|