diff --git a/themes/fid_adlr/scss/compiled.scss b/themes/fid_adlr/scss/compiled.scss index 80e553132b40eadb59c5f5a4a6a1d1c6290b257f..f81994ba43aa575e053f541dbfdd6497e2822a5e 100644 --- a/themes/fid_adlr/scss/compiled.scss +++ b/themes/fid_adlr/scss/compiled.scss @@ -2920,4 +2920,10 @@ footer { background-color: lighten($brand-primary,30%); padding-left: .5em; margin-left: -.5em; +} + +.table-responsive { + @media screen and (max-width: $screen-xs-max) { + border: 0; + } } \ No newline at end of file diff --git a/themes/fid_adlr/templates/myresearch/profile.phtml b/themes/fid_adlr/templates/myresearch/profile.phtml index c3d386e5fb8bf435e1d07112cce8dc04a758f0f5..b54333bfdf6689f9597aa27bdd6818bf4452037e 100644 --- a/themes/fid_adlr/templates/myresearch/profile.phtml +++ b/themes/fid_adlr/templates/myresearch/profile.phtml @@ -26,7 +26,7 @@ if (is_array($profile)) { <h2><?=$this->transEsc('Your Profile')?></h2> <?=$this->flashmessages();?> <?php if (is_array($this->profile)): ?> - <table class="table table-striped"> + <div class="table-responsive"><table class="table table-striped"> <?=$this->renderArray( $arrTemplate, $profile, @@ -45,7 +45,7 @@ if (is_array($profile)) { ] ) )?> - </table> + </table></div> <a href="<?=$this->url('fid/user/update')?>" class="btn btn-primary"><?=$this->transEsc('fid::Edit Account')?></a> <?php elseif ('ils-none' !== $this->ils()->getOfflineMode() && $this->patronLoginView && !empty($this->patronLoginView->getTemplate())): ?> <?=$this->partial($this->patronLoginView);?> diff --git a/themes/fid_adlr/templates/search/history-table.phtml b/themes/fid_adlr/templates/search/history-table.phtml new file mode 100644 index 0000000000000000000000000000000000000000..53d05c0ed98da832bfc202ab5ccd45c0fd490cd1 --- /dev/null +++ b/themes/fid_adlr/templates/search/history-table.phtml @@ -0,0 +1,47 @@ +<!-- fid_adlr: search - history-table --> +<?php $saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled'; ?> +<div class="table-responsive"><table class="table table-striped"> + <tr> + <th width="20%"><?=$this->transEsc("history_time")?></th> + <th><?=$this->transEsc("history_search")?></th> + <th><?=$this->transEsc("history_limits")?></th> + <th><?=$this->transEsc("history_results")?></th> + <?php if ($saveSupported): ?><th><?=$this->transEsc($this->showSaved ? "history_delete" : "history_save")?></th><?php endif; ?> + </tr> + <?php foreach (($this->showSaved ? array_reverse($this->saved) : array_reverse($this->unsaved)) as $iteration => $info): ?> + <tr class="<?=$iteration % 2 == 1 ? 'even' : 'odd'?>row"> + <td><?=$this->escapeHtml($this->dateTime()->convertToDisplayDateAndTime("U", $info->getStartTime()))?></td> + <td> + <?=$this->historylabel($info->getParams()->getSearchClassId())?> + <a href="<?=$this->url($info->getOptions()->getSearchAction()) . $info->getUrlQuery()->getParams()?>"><?php + $desc = $info->getParams()->getDisplayQuery(); + echo empty($desc) ? $this->transEsc("history_empty_search") : $this->escapeHtml($desc); + ?></a> + </td> + <td> + <?php $info->getParams()->activateAllFacets(); foreach ($info->getParams()->getFilterList(true) as $field => $filters): ?> + <?php foreach ($filters as $i => $filter): ?> + <?php if ($filter['operator'] == 'NOT') echo $this->transEsc('NOT') . ' '; if ($filter['operator'] == 'OR' && $i > 0) echo $this->transEsc('OR') . ' '; ?> + <strong><?=$this->transEsc($field)?></strong>: <?=$this->escapeHtml($filter['displayText'])?><br/> + <?php endforeach; ?> + <?php endforeach; ?> + <?php foreach($info->getParams()->getCheckboxFacets() as $facet): ?> + <?php if ($facet['selected']): ?> + <strong><?=$this->transEsc($facet['desc'])?></strong><br/> + <?php endif; ?> + <?php endforeach; ?> + </td> + <td><?=$this->escapeHtml($this->localizedNumber($info->getResultTotal()))?></td> + <?php if ($saveSupported): ?> + <td> + <?php if ($this->showSaved): ?> + <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($info->getSearchId())?>&mode=history"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc("history_delete_link")?></a> + <?php else: ?> + <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($info->getSearchId())?>&mode=history"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc("history_save_link")?></a> + <?php endif; ?> + </td> + <?php endif; ?> + </tr> + <?php endforeach; ?> +</table></div> +<!-- fid_adlr: search - history-table - END --> \ No newline at end of file