|
Line 0
Link Here
|
| 0 |
- |
1 |
[% USE raw %] |
|
|
2 |
[% USE Koha %] |
| 3 |
[% USE Asset %] |
| 4 |
[% PROCESS 'i18n.inc' %] |
| 5 |
[% SET footerjs = 1 %] |
| 6 |
[% INCLUDE 'doc-head-open.inc' %] |
| 7 |
<title> |
| 8 |
MARC Order Accounts |
| 9 |
</title> |
| 10 |
<style> |
| 11 |
#fileuploadstatus,#fileuploadfailed,#fileuploadcancel { display : none; } |
| 12 |
</style> |
| 13 |
[% INCLUDE 'doc-head-close.inc' %] |
| 14 |
</head> |
| 15 |
<body id="admin_marc_order_acct" class="admin"> |
| 16 |
[% WRAPPER 'header.inc' %] |
| 17 |
[% INCLUDE 'prefs-admin-search.inc' %] |
| 18 |
[% END %] |
| 19 |
|
| 20 |
[% WRAPPER 'sub-header.inc' %] |
| 21 |
[% WRAPPER breadcrumbs %] |
| 22 |
[% WRAPPER breadcrumb_item %] |
| 23 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
| 24 |
[% END %] |
| 25 |
|
| 26 |
[% IF acct_form || delete_confirm %] |
| 27 |
[% WRAPPER breadcrumb_item %] |
| 28 |
<a href="/cgi-bin/koha/admin/marc_order_accounts.pl">MARC Order Accounts</a> |
| 29 |
[% END %] |
| 30 |
[% ELSE %] |
| 31 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 32 |
<span>MARC Order Accounts</span> |
| 33 |
[% END %] |
| 34 |
[% END %] |
| 35 |
[% END #/ WRAPPER breadcrumbs %] |
| 36 |
[% END #/ WRAPPER sub-header.inc %] |
| 37 |
|
| 38 |
<div class="main container-fluid"> |
| 39 |
<div class="row"> |
| 40 |
<div class="col-sm-10 col-sm-push-2"> |
| 41 |
<main> |
| 42 |
[% IF display %] |
| 43 |
<div id="toolbar" class="btn-toolbar"> |
| 44 |
<a class="btn btn-default" id="newmarcorderacct" href="/cgi-bin/koha/admin/marc_order_accounts.pl?op=acct_form"> |
| 45 |
<i class="fa fa-plus"></i> |
| 46 |
New account |
| 47 |
</a> |
| 48 |
</div> |
| 49 |
[% IF ( accounts ) %] |
| 50 |
<h1>Marc Ordering Accounts</h1> |
| 51 |
<div class="page-section"> |
| 52 |
<table> |
| 53 |
<tr> |
| 54 |
<th>ID</th> |
| 55 |
<th>Vendor</th> |
| 56 |
<th>Budget</th> |
| 57 |
<th>Description</th> |
| 58 |
<th>Download directory</th> |
| 59 |
<th>Actions</th> |
| 60 |
</tr> |
| 61 |
[% FOREACH account IN accounts %] |
| 62 |
<tr> |
| 63 |
<td>[% account.id | html %]</td> |
| 64 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td> |
| 65 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% account.budget.budget_period_id | uri %]">[% account.budget.budget_name | html %]</a></td> |
| 66 |
<td>[% account.description | html %]</td> |
| 67 |
<td>[% account.download_directory | html %]</td> |
| 68 |
<td class="actions"> |
| 69 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/marc_order_accounts.pl?op=acct_form&id=[% account.id | html %]"><i class="fa fa-pencil-alt"></i> Edit</a> |
| 70 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/marc_order_accounts.pl?op=delete_acct&id=[% account.id | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
[% END %] |
| 74 |
</table> |
| 75 |
</div> |
| 76 |
[% ELSE %] |
| 77 |
<div class="dialog message"> |
| 78 |
There are no MARC Order accounts. |
| 79 |
</div> |
| 80 |
[% END %] |
| 81 |
[% END %] |
| 82 |
[% IF acct_form %] |
| 83 |
<h1> |
| 84 |
[% IF account %] |
| 85 |
Modify account |
| 86 |
[% ELSE %] |
| 87 |
New account |
| 88 |
[% END %] |
| 89 |
</h1> |
| 90 |
<form action="/cgi-bin/koha/admin/marc_order_accounts.pl" name="Actform" method="post"> |
| 91 |
[% INCLUDE 'csrf-token.inc' %] |
| 92 |
<input type="hidden" name="op" value="cud-save" /> |
| 93 |
[% IF account %] |
| 94 |
<input type="hidden" name="id" value="[% account.id | html %]" /> |
| 95 |
[% END %] |
| 96 |
<fieldset class="rows"> |
| 97 |
<legend>Account details</legend> |
| 98 |
<ol> |
| 99 |
<li> |
| 100 |
<label for="vendor_id">Vendor: </label> |
| 101 |
<select name="vendor_id" id="vendor_id"> |
| 102 |
[% FOREACH vendor IN vendors %] |
| 103 |
[% IF account.vendor_id == vendor.id %] |
| 104 |
<option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option> |
| 105 |
[% ELSE %] |
| 106 |
<option value="[% vendor.id | html %]">[% vendor.name | html %]</option> |
| 107 |
[% END %] |
| 108 |
[% END %] |
| 109 |
</select> |
| 110 |
</li> |
| 111 |
<li> |
| 112 |
<label for="budget_id">Budget: </label> |
| 113 |
<select name="budget_id" id="budget_id"> |
| 114 |
[% FOREACH budget IN budgets %] |
| 115 |
[% IF account.budget_id == budget.budget_id %] |
| 116 |
<option value="[% budget.budget_id | html %]" selected="selected">[% budget.budget_name | html %]</option> |
| 117 |
[% ELSE %] |
| 118 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %]</option> |
| 119 |
[% END %] |
| 120 |
[% END %] |
| 121 |
</select> |
| 122 |
<div class="hint">This budget will be used as the fallback value if the MARC records do not contain a mapped value for a budget code.</div> |
| 123 |
</li> |
| 124 |
<li> |
| 125 |
<label for="description">Description: </label> |
| 126 |
<input type="text" name="description" id="description" size="20" value="[% account.description | html %]" /> |
| 127 |
</li> |
| 128 |
<li> |
| 129 |
<label for="download_directory">Download directory: </label> |
| 130 |
<input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" /> |
| 131 |
<div class="hint">The download directory specifies the directory in your koha installation that should be searched for new files.</div> |
| 132 |
</li> |
| 133 |
</ol> |
| 134 |
</fieldset> |
| 135 |
<fieldset class="rows"> |
| 136 |
<legend>File import settings</legend> |
| 137 |
<ol> |
| 138 |
<li> |
| 139 |
<label for='record_type'>Record type:</label> |
| 140 |
<select name='record_type' id='record_type'> |
| 141 |
<option value='biblio' selected='selected'>Bibliographic</option> |
| 142 |
<option value='auth'>Authority</option> |
| 143 |
</select> |
| 144 |
</li> |
| 145 |
<li> |
| 146 |
<label for="encoding">Character encoding: </label> |
| 147 |
<select name="encoding" id="encoding"> |
| 148 |
<option value="UTF-8" selected="selected">UTF-8 (Default)</option> |
| 149 |
<option value="MARC-8">MARC 8</option> |
| 150 |
<option value="ISO_5426">ISO 5426</option> |
| 151 |
<option value="ISO_6937">ISO 6937</option> |
| 152 |
<option value="ISO_8859-1">ISO 8859-1</option> |
| 153 |
<option value="EUC-KR">EUC-KR</option> |
| 154 |
</select> |
| 155 |
</li> |
| 156 |
</ol> |
| 157 |
</fieldset> |
| 158 |
<fieldset class="rows"> |
| 159 |
<legend>Record matching settings</legend> |
| 160 |
<ol> |
| 161 |
<li> |
| 162 |
<label for="matcher">Record matching rule:</label> |
| 163 |
<select name="matcher" id="matcher"> |
| 164 |
[% FOREACH available_matcher IN available_matchers %] |
| 165 |
[% IF available_matcher.id == account.matcher_id %] |
| 166 |
<option value="[% available_matcher.matcher_id | html %]" selected="selected">[% available_matcher.code | html %] ([% available_matcher.description | html %])</option> |
| 167 |
[% ELSE %] |
| 168 |
<option value="[% available_matcher.matcher_id | html %]">[% available_matcher.code | html %] ([% available_matcher.description | html %])</option> |
| 169 |
[% END %] |
| 170 |
[% END %] |
| 171 |
</select> |
| 172 |
</li> |
| 173 |
<li> |
| 174 |
<label for="overlay_action">Action if matching record found: </label> |
| 175 |
[% INCLUDE 'tools-overlay-action.inc' %] |
| 176 |
</li> |
| 177 |
<li> |
| 178 |
<label for="nomatch_action">Action if no match is found: </label> |
| 179 |
[% INCLUDE 'tools-nomatch-action.inc' %] |
| 180 |
</li> |
| 181 |
</ol> |
| 182 |
</fieldset> |
| 183 |
<fieldset class="rows" id="items"> |
| 184 |
<legend>Check for embedded item record data?</legend> |
| 185 |
<ol> |
| 186 |
<li class="radio"> |
| 187 |
<input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" /> |
| 188 |
<label for="parse_itemsyes">Yes</label> |
| 189 |
</li> |
| 190 |
<li class="radio"> |
| 191 |
<input type="radio" id="parse_itemsno" name="parse_items" value="0" /> |
| 192 |
<label for="parse_itemsno">No</label> |
| 193 |
</li> |
| 194 |
</ol> |
| 195 |
<ol> |
| 196 |
<li><label for="item_action">How to process items: </label> |
| 197 |
[% INCLUDE 'tools-item-action.inc' %] |
| 198 |
</li> |
| 199 |
</ol> |
| 200 |
</fieldset> |
| 201 |
|
| 202 |
<fieldset class="action"> |
| 203 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
| 204 |
<a href="/cgi-bin/koha/admin/marc_order_accounts.pl" class="cancel">Cancel</a> |
| 205 |
</fieldset> |
| 206 |
</form> |
| 207 |
[% END %] |
| 208 |
[% IF delete_acct %] |
| 209 |
<div class="dialog alert"> |
| 210 |
<h1>Delete this account?</h1> |
| 211 |
<table> |
| 212 |
<tr> |
| 213 |
<th>Vendor</th> |
| 214 |
<th>Description</th> |
| 215 |
</tr> |
| 216 |
<tr> |
| 217 |
<td>[% account.vendor.name | html %]</td> |
| 218 |
<td>[% account.description | html %]</td> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
</table> |
| 222 |
<form action="/cgi-bin/koha/admin/marc_order_accounts.pl" method="post"> |
| 223 |
[% INCLUDE 'csrf-token.inc' %] |
| 224 |
<input type="hidden" name="op" value="cud-delete_acct" /> |
| 225 |
<input type="hidden" name="id" value="[% account.id | html %]" /> |
| 226 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
| 227 |
</form> |
| 228 |
<form action="/cgi-bin/koha/admin/marc_order_accounts.pl" method="get"> |
| 229 |
<button type="submit" class="deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button> |
| 230 |
</form> |
| 231 |
</div> |
| 232 |
[% END %] |
| 233 |
</main> |
| 234 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 235 |
|
| 236 |
<div class="col-sm-2 col-sm-pull-10"> |
| 237 |
<aside> |
| 238 |
[% INCLUDE 'admin-menu.inc' %] |
| 239 |
</aside> |
| 240 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 241 |
</div> <!-- /.row --> |
| 242 |
|
| 243 |
[% MACRO jsinclude BLOCK %] |
| 244 |
[% Asset.js("js/admin-menu.js") | $raw %] |
| 245 |
[% END %] |
| 246 |
[% INCLUDE 'intranet-bottom.inc' %] |