LP 1772993: Ability to blank Loan Duration in Vol/Copy Editor.
authorJason Stephenson <jason@sigio.com>
Thu, 24 May 2018 13:42:31 +0000 (09:42 -0400)
committerJason Stephenson <jason@sigio.com>
Thu, 24 May 2018 13:46:53 +0000 (09:46 -0400)
Add the <NONE> option to the loan duration field in the web staff
client Vol/Copy Editor.

NB: This was split into its own commit in case it is decided that this
change is not wanted.

To test:

1. Add a value for loan duration to a copy.

2. Attempt to remove the value in the copy editor.  Note that the
   dropdown does not allow you to do so.

3. Apply this commit.

4. Repeat step 2.  Now there is a <NONE> option that removes the value
   from the copy.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2

index 0818af5..5b695b6 100644 (file)
                         <option value="1">[% l('Short') %]</option>
                         <option value="2" selected>[% l('Normal') %]</option>
                         <option value="3">[% l('Extended') %]</option>
+                        <option value="">[% l('&lt;NONE&gt;') %]</option>
                     </select>
                 </div>
                 <div class="col-md-6" ng-class="{'bg-success': working.cost !== undefined}">