diff --git a/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php b/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php index e8ca518f5c0d28b69da61df95776fca70a8fb568..1b092ad429daaf73f63aba4566aa16935cb0b617 100644 --- a/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php +++ b/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php @@ -1303,4 +1303,15 @@ trait SolrDefaultFincTrait return isset($this->fields['facet_avail']) ? $this->fields['facet_avail'] : []; } + + /** + * Get K10Plus PPN for this record + * This will be stored in 'kxp_id_str' + * + * @return array + */ + public function getKxpId() { + return isset($this->fields['kxp_id_str']) + ? $this->fields['kxp_id_str'] : []; + } } diff --git a/themes/finc/scss/compiled.scss b/themes/finc/scss/compiled.scss index b928d4071a2d4303f11698ad1ea972baa94d9d7e..e08c6f042e4fb9ae0951e860295b1f6ecb240f75 100644 --- a/themes/finc/scss/compiled.scss +++ b/themes/finc/scss/compiled.scss @@ -65,6 +65,12 @@ section { // width: auto; // } // + +// Prevent content from jumping when changing tabs in record view +html { + overflow-y: scroll; +} + // Add top-padding to body to accommodate fixed navbar; -- padding should equal navbar-height -- // the home page, however, has a lower navbar because there is no breadcrumbs there body { @@ -1409,6 +1415,7 @@ footer { .sort select { max-width: 12em; } + //// Off-Canvas @media only screen and (max-width: $screen-sm-max) { // Define position of VF5.1 offcanvas toggler @@ -1561,6 +1568,25 @@ footer { } } +// Display searchtools-links as buttons on XS, SM +@media screen and (max-width: $screen-sm-max) { + .searchtools { + a { + background-color: $white; + border: 1px solid $iron; + color: $oil; + // align on top of each other + display: block; + margin-bottom: 5px; + padding: 6px 12px; + text-align: center; + touch-action: manipulation; + vertical-align: middle; + white-space: nowrap; + } + } +} + ////// Pagination & Searchtools - END //// Search results - END @@ -1805,6 +1831,7 @@ footer { text-align: center; } } + //// pull content to right border for sidebar right .container .sidebar { &.right { @@ -1961,8 +1988,9 @@ footer { } } +// Keep padding at 2px or "Add to Bookbag" in Record View will be out of line .nav .btn-bookbag-toggle a { - padding-left: 8px; + padding-left: 2px; } //// Toolbar in Detailview - END diff --git a/themes/finc/templates/RecordDriver/AbstractBase/export-endnote.phtml b/themes/finc/templates/RecordDriver/AbstractBase/export-endnote.phtml index 4bc065654b6eea3fe015c19fe8ea3c9a43b340aa..9a3c7f380e0202b5effe35a1819bfeaf92c44b2e 100644 --- a/themes/finc/templates/RecordDriver/AbstractBase/export-endnote.phtml +++ b/themes/finc/templates/RecordDriver/AbstractBase/export-endnote.phtml @@ -103,7 +103,7 @@ if (isset($data['date'])) { if (empty($data)) { $date = $this->driver->tryMethod('getPublishDateSort'); if (!empty($date)) { - echo "%D {$date}}\n"; + echo "%D {$date}\n"; } } diff --git a/themes/finc/templates/search/results.phtml b/themes/finc/templates/search/results.phtml index 75e6ee8afd517f72d759924e0ac4d1b291cfe994..fe22d92e56bdd3226eefbce493f4aa52d092b449 100644 --- a/themes/finc/templates/search/results.phtml +++ b/themes/finc/templates/search/results.phtml @@ -127,16 +127,15 @@ $this->headScript()->appendFile("check_save_statuses.js"); <div class="searchtools hidden-print"> <strong><?=$this->transEsc('Search Tools')?>:</strong> <a href="<?=$this->results->getUrlQuery()->setViewParam('rss')?>"><i class="fa fa-bell" aria-hidden="true"></i> <?=$this->transEsc('Get RSS Feed')?></a> - — + <span class="hidden-xs hidden-sm">—</span> <a href="<?=$this->url('search-email')?>" class="mailSearch" data-lightbox id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>"> <i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this Search')?> </a> <?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?> - — + <span class="hidden-xs hidden-sm">—</span> <?php if (is_numeric($this->results->getSearchId())): ?> <?php if ($this->results->isSavedSearch()): ?> - <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" - aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a> + <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a> <?php else: ?> <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc('save_search')?></a> <?php endif; ?>