Skip to content

Commit

Permalink
Bug 34355: Fix form rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mblenk committed Aug 18, 2023
1 parent 818afb6 commit be7f32c
Showing 1 changed file with 69 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<title>
MARC Order Accounts
</title>
<style>
#fileuploadstatus,#fileuploadfailed,#fileuploadcancel { display : none; }
</style>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="admin_marc_order_acct" class="admin">
Expand Down Expand Up @@ -161,7 +158,7 @@ MARC Order Accounts
<label for="matcher">Record matching rule:</label>
<select name="matcher" id="matcher">
[% FOREACH available_matcher IN available_matchers %]
[% IF available_matcher.id == account.matcher_id %]
[% IF available_matcher.matcher_id == account.matcher_id %]
<option value="[% available_matcher.matcher_id | html %]" selected="selected">[% available_matcher.code | html %] ([% available_matcher.description | html %])</option>
[% ELSE %]
<option value="[% available_matcher.matcher_id | html %]">[% available_matcher.code | html %] ([% available_matcher.description | html %])</option>
Expand All @@ -171,11 +168,43 @@ MARC Order Accounts
</li>
<li>
<label for="overlay_action">Action if matching record found: </label>
[% INCLUDE 'tools-overlay-action.inc' %]
<select name="overlay_action" id="overlay_action">
[% IF ( account.overlay_action == 'replace' ) %]
<option value="replace" selected="selected">
[% ELSE %]
<option value="replace">
[% END %]
Replace existing record with incoming record</option>
[% IF ( account.overlay_action == 'create_new' ) %]
<option value="create_new" selected="selected">
[% ELSE %]
<option value="create_new">
[% END %]
Add incoming record</option>
[% IF ( account.overlay_action == 'ignore' ) %]
<option value="ignore" selected="selected">
[% ELSE %]
<option value="ignore">
[% END %]
Ignore incoming record (its items may still be processed)</option>
</select>
</li>
<li>
<label for="nomatch_action">Action if no match is found: </label>
[% INCLUDE 'tools-nomatch-action.inc' %]
<select name="nomatch_action" id="nomatch_action">
[% IF ( account.nomatch_action == 'create_new' ) %]
<option value="create_new" selected="selected">
[% ELSE %]
<option value="create_new">
[% END %]
Add incoming record</option>
[% IF ( account.nomatch_action == 'ignore' ) %]
<option value="ignore" selected="selected">
[% ELSE %]
<option value="ignore">
[% END %]
Ignore incoming record</option>
</select>
</li>
</ol>
</fieldset>
Expand All @@ -192,8 +221,40 @@ MARC Order Accounts
</li>
</ol>
<ol>
<li><label for="item_action">How to process items: </label>
[% INCLUDE 'tools-item-action.inc' %]
<li>
<label for="item_action">How to process items: </label>
<select name="item_action" id="item_action">
[% IF ( account.item_action == 'always_add' ) %]
<option value="always_add" selected="selected">
[% ELSE %]
<option value="always_add">
[% END %]
Always add items</option>
[% IF ( account.item_action == 'add_only_for_matches' ) %]
<option value="add_only_for_matches" selected="selected">
[% ELSE %]
<option value="add_only_for_matches">
[% END %]
Add items only if matching bib was found</option>
[% IF ( account.item_action == 'add_only_for_new' ) %]
<option value="add_only_for_new" selected="selected">
[% ELSE %]
<option value="add_only_for_new">
[% END %]
Add items only if no matching bib was found</option>
[% IF ( account.item_action == 'replace' ) %]
<option value="replace" selected="selected">
[% ELSE %]
<option value="replace">
[% END %]
Replace items if matching bib was found (only for existing items)</option>
[% IF ( account.item_action == 'ignore' ) %]
<option value="ignore" selected="selected">
[% ELSE %]
<option value="ignore">
[% END %]
Ignore items</option>
</select>
</li>
</ol>
</fieldset>
Expand Down

0 comments on commit be7f32c

Please sign in to comment.