-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2197 from cul-it/DACCESS-415
Bounds with items - temp. excluded from special requests
- Loading branch information
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<div class="control-group"> | ||
<input type="submit" class="btn" id="SubmitButton" name="SubmitButton" value="Submit Request"> | ||
<label class="control-label sr-only" for="clear">Clear</label> | ||
or <input type="button" id="clear" name="clear" value="Reset"> | ||
<br/><br/> | ||
<div class="control-group" > | ||
<% holdings = JSON.parse(@document['holdings_json']) %> | ||
<% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> | ||
<% unless bounds_with %> | ||
<input type="submit" class="btn" id="SubmitButton" name="SubmitButton" value="Submit Request"> | ||
<label class="control-label sr-only" for="clear">Clear</label> | ||
or <input type="button" id="clear" name="clear" value="Reset"> | ||
<br/><br/> | ||
<% end %> | ||
<p>Please email | ||
<a href=mailto:[email protected]>[email protected]</a>, or | ||
<a href=mailto:[email protected]>[email protected]</a> if you have any questions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,15 @@ | |
Restrictions: <%= @re506 %> | ||
</p> | ||
<% end %> | ||
<% holdings = JSON.parse(@document['holdings_json']) %> | ||
<% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> | ||
<% if bounds_with %> | ||
<p> | ||
<i class="fa fa-warning" aria-hidden="true"></i> | ||
This item is bound with another item(s). | ||
Please <a href="mailto:[email protected]" aria-label="email [email protected]">ask a librarian</a> for assistance to make this request. | ||
</p> | ||
<% end %> | ||
</div> | ||
<div id="shoppingcart"> | ||
<span id="numitems" tabindex="0">Number of items selected:</span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,15 @@ | |
Restrictions: <%= @re506 %> | ||
</p> | ||
<% end %> | ||
<% holdings = JSON.parse(@document['holdings_json']) %> | ||
<% bounds_with = holdings.any? { |_, holding| holding.key?('boundWith') && holding['boundWith'].any? } %> | ||
<% if bounds_with %> | ||
<p> | ||
<i class="fa fa-warning" aria-hidden="true"></i> | ||
This item is bound with another item(s). | ||
Please <a href="mailto:[email protected]" aria-label="email [email protected]">ask a librarian</a> for assistance to make this request. | ||
</p> | ||
<% end %> | ||
</div> | ||
|
||
<div id="shoppingcart"> | ||
|