Bug 30220: Purchase suggestion defaults to first library
This patch updates the OPAC suggestions form to update the variable used to pre-select the logged-in user's library. To test, apply the patch and make sure the "suggestion" preference is set to "Allow." - Log in to the OPAC and click "your purchase suggestions" in the sidebar menu on your summary page. - Click "New purchase suggestion." - The selected library should match the logged-in user's home library. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
33946ee8a7
commit
caf905ca38
|
|
@ -188,13 +188,13 @@
|
|||
[% IF ( branchcode_required ) %]
|
||||
<label for="branch" class="required">Library:</label>
|
||||
<select name="branchcode" id="branch" required="required">
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %]
|
||||
</select>
|
||||
<span class="required">Required</span>
|
||||
[% ELSE %]
|
||||
<label for="branch">Library:</label>
|
||||
<select name="branchcode" id="branch">
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %]
|
||||
</select>
|
||||
[% END %]
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue