diff --git a/themes/bootstrap/js/lightbox.js b/themes/bootstrap/js/lightbox.js index 6523a1307b893743008d0d27613e741efb722432..e55ccec99bc3f90d322483c8b96f6925d6a75d8f 100644 --- a/themes/bootstrap/js/lightbox.js +++ b/themes/bootstrap/js/lightbox.js @@ -472,12 +472,12 @@ $(document).ready(function() { $('#loginOptions a').click(function() { return getLightbox('MyResearch','Login',{},{'loggingin':true}); }); - /*/ Place a Hold + // Place a Hold $('.placehold').click(function() { var params = deparam($(this).attr('href')); - console.log(params); + params.hashKey = params.hashKey.split('#')[0]; // Remove #tabnav return getLightbox('Record', 'Hold', params, {}); - });*/ + }); // Save record links $('.save-record').click(function() { var parts = this.href.split('/'); diff --git a/themes/bootstrap/templates/record/hold.phtml b/themes/bootstrap/templates/record/hold.phtml index 228947d6f8a24f73d3c2b5edcd8b2701419da706..1b9692c98213b977f265c393571e5fc41999f3d8 100644 --- a/themes/bootstrap/templates/record/hold.phtml +++ b/themes/bootstrap/templates/record/hold.phtml @@ -10,50 +10,57 @@ <p class="lead"><?=$this->transEsc('request_place_text')?></p> <?=$this->flashmessages()?> <div class="hold-form"> - <form action="" method="post"> + <form action="" class="form-horizontal" method="post"> <? if (in_array("comments", $this->extraHoldFields)): ?> - <div> - <strong><?=$this->transEsc("Comments")?>:</strong><br/> - <textarea rows="3" cols="20" name="gatheredDetails[comment]"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea> + <div class="control-group"> + <label class="control-label"><?=$this->transEsc("Comments")?>:</label> + <div class="controls"> + <textarea rows="3" cols="20" name="gatheredDetails[comment]"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea> + </div> </div> <? endif; ?> <? if (in_array("requiredByDate", $this->extraHoldFields)): ?> - <div> - <strong><?=$this->transEsc("hold_required_by")?>: </strong> - <div id="requiredByHolder"> + <div class="control-group"> + <label class="control-label"><?=$this->transEsc("hold_required_by")?>:</label> + <div class="controls"> <input id="requiredByDate" type="text" name="gatheredDetails[requiredBy]" value="<?=(isset($this->gatheredDetails['requiredBy']) && !empty($this->gatheredDetails['requiredBy'])) ? $this->escapeHtml($this->gatheredDetails['requiredBy']) : $this->escapeHtml($this->defaultRequiredDate)?>" size="8" /> - <strong>(<?=$this->dateTime()->getDisplayDateFormat()?>)</strong> + (<?=$this->dateTime()->getDisplayDateFormat()?>) </div> </div> <? endif; ?> <? if (in_array("pickUpLocation", $this->extraHoldFields)): ?> - <div> <? if (count($this->pickup) > 1): ?> - <? - if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") { - $selected = $this->gatheredDetails['pickUpLocation']; - } elseif (isset($this->homeLibrary) && $this->homeLibrary !== "") { - $selected = $this->homeLibrary; - } else { - $selected = $this->defaultPickup; - } - ?> - <strong><?=$this->transEsc("pick_up_location")?>:</strong><br/> - <select name="gatheredDetails[pickUpLocation]"> - <? foreach ($this->pickup as $lib): ?> - <option value="<?=$this->escapeHtml($lib['locationID'])?>"<?=($selected == $lib['locationID']) ? ' selected="selected"' : ''?>> - <?=$this->escapeHtml($lib['locationDisplay'])?> - </option> - <? endforeach; ?> - </select> + <div class="control-group"> + <? + if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") { + $selected = $this->gatheredDetails['pickUpLocation']; + } elseif (isset($this->homeLibrary) && $this->homeLibrary !== "") { + $selected = $this->homeLibrary; + } else { + $selected = $this->defaultPickup; + } + ?> + <label class="control-label"><?=$this->transEsc("pick_up_location")?>:</label> + <div class="controls"> + <select name="gatheredDetails[pickUpLocation]"> + <? foreach ($this->pickup as $lib): ?> + <option value="<?=$this->escapeHtml($lib['locationID'])?>"<?=($selected == $lib['locationID']) ? ' selected="selected"' : ''?>> + <?=$this->escapeHtml($lib['locationDisplay'])?> + </option> + <? endforeach; ?> + </select> + </div> + </div> <? else: ?> <input type="hidden" name="gatheredDetails[pickUpLocation]" value="<?=$this->escapeHtml($this->defaultPickup)?>" /> <? endif; ?> - </div> <? endif; ?> - - <input type="submit" name="placeHold" value="<?=$this->transEsc('request_submit_text')?>"/> + <div class="control-group"> + <div class="controls"> + <input class="btn btn-primary" type="submit" name="placeHold" value="<?=$this->transEsc('request_submit_text')?>"/> + </div> + </div> </form> </div>