Lines 2-10
Link Here
|
2 |
<title>Koha › Administration › EDI EANs</title> |
2 |
<title>Koha › Administration › EDI EANs</title> |
3 |
[% IF ean_form %] |
3 |
[% IF ean_form %] |
4 |
[% IF ean %] |
4 |
[% IF ean %] |
5 |
’ Modify branch EAN |
5 |
’ Modify library EAN |
6 |
[% ELSE %] |
6 |
[% ELSE %] |
7 |
’ Add new branch EAN |
7 |
’ Add new library EAN |
8 |
[% END %] |
8 |
[% END %] |
9 |
[% END %] |
9 |
[% END %] |
10 |
[% IF delete_confirm %] |
10 |
[% IF delete_confirm %] |
Lines 23-36
Link Here
|
23 |
› <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">EDI EANs</a> |
23 |
› <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">EDI EANs</a> |
24 |
[% IF ean_form %] |
24 |
[% IF ean_form %] |
25 |
[% IF ean %] |
25 |
[% IF ean %] |
26 |
› Modify branch EAN |
26 |
› Modify library EAN |
27 |
[% ELSE %] |
27 |
[% ELSE %] |
28 |
› Add new branch EAN |
28 |
› Add new library EAN |
29 |
[% END %] |
29 |
[% END %] |
30 |
[% ELSIF delete_confirm %] |
30 |
[% ELSIF delete_confirm %] |
31 |
› Confirm deletion of Ean |
31 |
› Confirm deletion of Ean |
32 |
[% ELSE %] |
32 |
[% ELSE %] |
33 |
› Branch EANs |
33 |
› Library EANs |
34 |
[% END %] |
34 |
[% END %] |
35 |
</div> |
35 |
</div> |
36 |
|
36 |
|
Lines 52-103
Link Here
|
52 |
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" name="Eanform" method="post"> |
52 |
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" name="Eanform" method="post"> |
53 |
<input type="hidden" name="op" value="save" /> |
53 |
<input type="hidden" name="op" value="save" /> |
54 |
[% IF ean %] |
54 |
[% IF ean %] |
55 |
<input type="hidden" name="oldbranchcode" value="[% branchcode %]" /> |
55 |
<input type="hidden" name="oldbranchcode" value="[% branchcode %]" /> |
56 |
<input type="hidden" name="oldean" value="[% ean %]" /> |
56 |
<input type="hidden" name="oldean" value="[% ean %]" /> |
57 |
[% END %] |
57 |
[% END %] |
58 |
<fieldset class="rows"> |
|
|
59 |
<legend> |
60 |
[% IF ean %] |
61 |
Modify EAN |
62 |
[% ELSE %] |
63 |
New EAN |
64 |
[% END %] |
65 |
</legend> |
66 |
|
58 |
|
67 |
<ol> |
59 |
<fieldset class="rows"> |
68 |
<li> |
60 |
<legend> |
69 |
<label for="branchcode">Branchcode: </label> |
61 |
[% IF ean %] |
70 |
<select name="branchcode" id="branchcode"> |
62 |
Modify EAN |
71 |
[% FOREACH branch IN branches %] |
63 |
[% ELSE %] |
72 |
[% IF branch.branchcode == ean.branch.branchcode %] |
64 |
New EAN |
73 |
<option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option> |
65 |
[% END %] |
74 |
[% ELSE %] |
66 |
</legend> |
75 |
<option value="[% branch.branchcode %]">[% branch.branchname %]</option> |
|
|
76 |
[% END %] |
77 |
[% END %] |
78 |
</select> |
79 |
</li> |
80 |
<li> |
81 |
<label for="ean">EAN: </label> |
82 |
<input type="text" name="ean" id="ean`" size="20" maxlength="90" value="[% ean.ean %]" /> |
83 |
</li> |
84 |
<li> |
85 |
<label for="id_code_qualifier"> |
86 |
<select name="id_code_qualifier" id="id_code_qualifier"> |
87 |
[% FOREACH qualifier IN code_qualifiers %] |
88 |
[% IF qualifier.code == ean.id_code_qualifier %] |
89 |
<option value="[% qualifier.code %]" selected="selected"> |
90 |
[% qualifier.description %] |
91 |
</option> |
92 |
[% ELSE %] |
93 |
<option value="[% qualifier.code %]"> |
94 |
[% qualifier.description %] |
95 |
</option> |
96 |
[% END %] |
97 |
[% END %] |
98 |
</li> |
99 |
|
67 |
|
100 |
</ol> |
68 |
<ol> |
|
|
69 |
<li> |
70 |
<label for="branchcode">Library: </label> |
71 |
<select name="branchcode" id="branchcode"> |
72 |
[% FOREACH branch IN branches %] |
73 |
[% IF branch.branchcode == ean.branch.branchcode %] |
74 |
<option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option> |
75 |
[% ELSE %] |
76 |
<option value="[% branch.branchcode %]">[% branch.branchname %]</option> |
77 |
[% END %] |
78 |
[% END %] |
79 |
</select> |
80 |
</li> |
81 |
<li> |
82 |
<label for="ean">EAN: </label> |
83 |
<input type="text" name="ean" id="ean`" size="20" maxlength="90" value="[% ean.ean %]" /> |
84 |
</li> |
85 |
<li> |
86 |
<label for="id_code_qualifier">Qualifier: </label> |
87 |
<select name="id_code_qualifier" id="id_code_qualifier"> |
88 |
[% FOREACH qualifier IN code_qualifiers %] |
89 |
[% IF qualifier.code == ean.id_code_qualifier %] |
90 |
<option value="[% qualifier.code %]" selected="selected"> |
91 |
[% qualifier.description %] ([% qualifier.code %]) |
92 |
</option> |
93 |
[% ELSE %] |
94 |
<option value="[% qualifier.code %]"> |
95 |
[% qualifier.description %] ([% qualifier.code %]) |
96 |
</option> |
97 |
[% END %] |
98 |
[% END %] |
99 |
</select> |
100 |
</li> |
101 |
</ol> |
101 |
</fieldset> |
102 |
</fieldset> |
102 |
|
103 |
|
103 |
<fieldset class="action"> |
104 |
<fieldset class="action"> |
Lines 105-115
Link Here
|
105 |
<a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" class="cancel">Cancel</a> |
106 |
<a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" class="cancel">Cancel</a> |
106 |
</fieldset> |
107 |
</fieldset> |
107 |
</form> |
108 |
</form> |
108 |
|
|
|
109 |
[% END %] |
109 |
[% END %] |
|
|
110 |
|
110 |
[% IF delete_confirm %] |
111 |
[% IF delete_confirm %] |
111 |
<div class="dialog alert"> |
112 |
<div class="dialog alert"> |
112 |
<h3>Delete EAN [% ean.ean %] for branch [% ean.branch.branchname %]?</h3> |
113 |
<h3>Delete EAN [% ean.ean %] for [% ean.branch.branchname %]?</h3> |
113 |
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post"> |
114 |
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post"> |
114 |
<input type="hidden" name="op" value="delete_confirmed" /> |
115 |
<input type="hidden" name="op" value="delete_confirmed" /> |
115 |
<input type="hidden" name="branchcode" value="[% ean.branch.branchcode %]" /> |
116 |
<input type="hidden" name="branchcode" value="[% ean.branch.branchcode %]" /> |
Lines 121-146
Link Here
|
121 |
</form> |
122 |
</form> |
122 |
</div> |
123 |
</div> |
123 |
[% END %] |
124 |
[% END %] |
|
|
125 |
|
124 |
[% IF display %] |
126 |
[% IF display %] |
125 |
<h2>Branch EANs</h2> |
127 |
<h2>Library EANs</h2> |
126 |
<table> |
128 |
<table> |
127 |
<tr> |
129 |
<tr> |
128 |
<th>Branch</th> |
130 |
<th>Library</th> |
129 |
<th>EAN</th> |
131 |
<th>EAN</th> |
130 |
<th>Code Type</th> |
132 |
<th>Qualifier</th> |
131 |
<th>Actions</th> |
133 |
<th>Actions</th> |
132 |
</tr> |
134 |
</tr> |
133 |
[% FOREACH ean IN eans %] |
135 |
[% FOREACH ean IN eans %] |
134 |
[% IF loop.even %]<tr> |
136 |
[% IF loop.even %]<tr>[% ELSE %]<tr class="highlight">[% END %] |
135 |
[% ELSE %]<tr class="highlight"> |
137 |
<td>[% ean.branch.branchname %]</td> |
136 |
[% END %] |
138 |
<td>[% ean.ean %]</td> |
137 |
<td>[% ean.branch.branchname %]</td> |
139 |
<td> |
138 |
<td>[% ean.ean %]</td> |
140 |
[% FOREACH qualifier IN code_qualifiers %] |
139 |
<td>[% ean.id_code_qualifier %]</td> |
141 |
[% IF qualifier.code == ean.id_code_qualifier %] |
140 |
<td align="center"> |
142 |
[% qualifier.description %] ([% qualifier.code %]) |
141 |
<a href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form&branchcode=[% ean.branch.branchcode %]&ean=[% ean.ean %]">Edit</a> | <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=delete_confirm&branchcode=[% ean.branch.branchcode %]&ean=[% ean.ean %]">Delete</a></td> |
143 |
[% END %] |
142 |
</tr> |
144 |
[% END %] |
143 |
[% END %] |
145 |
</td> |
|
|
146 |
<td align="center"> |
147 |
<a href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form&branchcode=[% ean.branch.branchcode %]&ean=[% ean.ean %]">Edit</a> |
148 |
| |
149 |
<a href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=delete_confirm&branchcode=[% ean.branch.branchcode %]&ean=[% ean.ean %]">Delete</a> |
150 |
</td> |
151 |
</tr> |
152 |
[% END %] |
144 |
</table> |
153 |
</table> |
145 |
[% END %] |
154 |
[% END %] |
146 |
|
155 |
|
147 |
- |
|
|