1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Currencies & Exchange rates ›
3 [% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %]
4 [% IF ( delete_confirm ) %]Confirm deletion of currency '[% searchfield %]'[% END %]
5 [% IF ( delete_confirmed ) %]Currency deleted[% END %]
6 [% IF ( else ) %]Currencies[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <script type="text/javascript">
11 function check_currency(val) {
13 $("#active").removeAttr('disabled');
16 $("#active").removeAttr('checked');
17 $("#active").attr('disabled','disabled');
18 $("#hint").html(_("The active currency must have a rate of 1.0"));
22 $(document).ready(function() {
23 // prevents users to check active with a currency != 1
24 $("#rate").keyup(function() {
25 check_currency( $(this).val() );
27 check_currency( $("#rate").val() );
32 <body id="admin_currency" class="admin">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'currencies-admin-search.inc' %]
38 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <a href="/cgi-bin/koha/admin/currency.pl">Currencies & Exchange rates</a> › [% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %]
39 [% IF ( delete_confirm ) %]Confirm deletion of currency '<span class="ex">[% searchfield %]</span>'[% END %]
40 [% IF ( delete_confirmed ) %]Currency deleted[% END %]
41 [% IF ( else ) %]Currencies[% END %]
44 <div id="doc3" class="yui-t2">
50 <div id="toolbar" class="btn-toolbar">
51 <a class="btn btn-small" id="newcurrency" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New currency</a>
57 <form action="[% script_name %]" name="Aform" method="post" class="validated">
58 <input type="hidden" name="op" value="save" />
59 <fieldset class="rows">
60 <legend>[% IF ( searchfield ) %]
67 [% IF ( searchfield ) %]
68 <span class="label">Currency: </span>
69 <input type="hidden" name="currency" id="currency" value="[% searchfield %]" />[% searchfield %]
71 <label for="currency" class="required">Currency: </label>
72 <input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" required="required" class="required" /> <span class="required">Required</span>
76 <label for="rate" class="required">Rate: </label>
77 <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% rate %]" required="required" class="required" /> <span class="required">Required</span>
80 <label for="symbol" class="required">Symbol: </label>
81 <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% symbol %]" required="required" class="required" /> <span class="required">Required</span>
84 <label for="isocode">ISO code: </label>
85 <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% isocode %]" />
88 <span class="label">Last updated: </span>[% timestamp %]
91 <label for="active">Active: </label>
93 <input type="checkbox" id="active" name="active" value="1" checked="checked" />
95 <input type="checkbox" id="active" name="active" value="1" />
97 <span id="hint" class="hint"></span>
103 <fieldset class="action">
104 <input type="submit" value="Submit" />
105 <a href="/cgi-bin/koha/admin/currency.pl" class="cancel">Cancel</a>
111 [% IF ( delete_confirm ) %]
112 [% IF ( totalgtzero ) %]
113 <div class="dialog message">
114 <h3>Cannot delete currency <span class="ex">'[% searchfield %]'</span></h3>
115 <p>This currency is used [% total %] times. Deletion not possible</p>
116 <form action="[% script_name %]" method="post">
117 <input type="submit" value="OK" class="approve" />
121 <div class="dialog alert">
122 <h3>Confirm deletion of currency <span class="ex">'[% searchfield %]'</span></h3>
124 <tr><th>Currency</th>
125 <td>[% searchfield %]</td>
131 <form action="[% script_name %]" method="post">
132 <input type="hidden" name="op" value="delete_confirmed" />
133 <input type="hidden" name="searchfield" value="[% searchfield %]" />
134 <input type="submit" class="approve" value="Delete this Currency" />
136 <form action="[% script_name %]" method="post">
137 <input type="submit" class="deny" value="No, Do Not Delete" />
143 [% IF ( delete_confirmed ) %]
144 <div class="dialog message"><h3>Currency deleted</h3>
145 <form action="[% script_name %]" method="post">
146 <input type="submit" class="approve" value="OK" />
152 <h2>Currencies and exchange rates</h2>
154 [% IF ( loop ) %][% UNLESS ( activecurrency ) %]<div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>[% END %][% END %]
157 [% IF ( searchfield ) %]
158 You searched for [% searchfield %]</span>
167 <th>Last updated</th>
169 <th colspan="2">Actions </th>
171 [% FOREACH loo IN loop %]
172 [% UNLESS ( loop.odd ) %]
173 <tr class="highlight">
177 <td>[% loo.currency %]</td>
178 <td>[% loo.rate %]</td>
179 <td>[% loo.symbol |html %]</td>
180 <td>[% loo.isocode |html %]</td>
181 <td>[% loo.timestamp %]</td>
182 <td style="color:green;">[% IF ( loo.active ) %]✓[% END %]</td>
183 <td><a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.currency %]">Edit</a></td>
184 <td><a href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.currency %]">Delete</a></td>
190 [% IF ( offsetgtzero ) %]
191 <a href="[% script_name %]?offset=[% prevpage %]"><< Previous</a>
195 <a href="[% script_name %]?offset=[% nextpage %]">Next >></a>
200 When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency.
203 Some examples of compatible price fields include "$9.99", "9.99 USD", "$9.99 USD", "9.99 USD (10.00 CAN)", "$9.99 USD (paperback)".
204 These examples assume USD is the active currency.
213 [% INCLUDE 'admin-menu.inc' %]
216 [% INCLUDE 'intranet-bottom.inc' %]