Adds more variables to display the items list on admin #659

This commit is contained in:
mateuswetah 2022-02-02 17:06:20 -03:00
parent 1da154aa84
commit f25451e86c
7 changed files with 131 additions and 92 deletions

View File

@ -156,6 +156,21 @@
<!-- <span class="menu-text">{{ $i18n.get('items') }}</span> -->
</router-link>
</li>
<li v-if="collection.current_user_can_edit_items && $adminOptions.showHomeCollectionCreateItemButton">
<router-link
tag="a"
:to="{ path: $routerHelper.getNewItemPath(collection.id) }"
:aria-label="$i18n.get('add_one_item')">
<b-tooltip
:label="$i18n.get('add_one_item')"
position="is-bottom">
<span class="icon">
<i class="tainacan-icon tainacan-icon-1-25em tainacan-icon-add"/>
</span>
</b-tooltip>
<!-- <span class="menu-text">{{ $i18n.get('add_one_item') }}</span> -->
</router-link>
</li>
<li v-if="collection.current_user_can_edit && !$adminOptions.hideHomeCollectionSettingsButton">
<router-link
tag="a"

View File

@ -6,7 +6,7 @@
v-if="collectionId && collection && collection.current_user_can_edit_items && collection.current_user_can_bulk_edit"
class="selection-control">
<div
v-if="!$adminOptions.hideMultipleItemSelection"
v-if="!$adminOptions.hideItemsListMultipleSelection"
class="field select-all is-pulled-left">
<span>
<b-checkbox
@ -50,7 +50,7 @@
</button>
</span>
<div
v-if="!$adminOptions.hideBulkActionsDropdown"
v-if="!$adminOptions.hideItemsListBulkActionsButton"
style="margin-left: auto;"
class="field">
<b-dropdown
@ -115,7 +115,7 @@
<!-- Context menu for right click selection -->
<div
v-if="cursorPosY > 0 && cursorPosX > 0 && !$adminOptions.hideContextMenu"
v-if="cursorPosY > 0 && cursorPosX > 0 && !$adminOptions.hideItemsListContextMenu"
class="context-menu">
<!-- Backdrop for escaping context menu -->
@ -130,12 +130,12 @@
trap-focus>
<b-dropdown-item
@click="openItem()"
v-if="!isOnTrash && !$adminOptions.hideContextMenuOpenItemOption">
v-if="!isOnTrash && !$adminOptions.hideItemsListContextMenuOpenItemOption">
{{ $i18n.getFrom('items','view_item') }}
</b-dropdown-item>
<b-dropdown-item
@click="openItemOnNewTab()"
v-if="!isOnTrash && !$adminOptions.hideContextMenuOpenItemOnNewTabOption">
v-if="!isOnTrash && !$adminOptions.hideItemsListContextMenuOpenItemOnNewTabOption">
{{ $i18n.get('label_open_item_new_tab') }}
</b-dropdown-item>
<b-dropdown-item
@ -145,17 +145,17 @@
</b-dropdown-item>
<b-dropdown-item
@click="goToItemEditPage(contextMenuItem)"
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideContextMenuEditItemOption">
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuEditItemOption">
{{ $i18n.getFrom('items','edit_item') }}
</b-dropdown-item>
<b-dropdown-item
@click="makeCopiesOfOneItem(contextMenuItem.id)"
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideContextMenuCopyItemOption">
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuCopyItemOption">
{{ $i18n.get('label_make_copies_of_item') }}
</b-dropdown-item>
<b-dropdown-item
@click="deleteOneItem(contextMenuItem.id)"
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideContextMenuDeleteItemOption">
v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuDeleteItemOption">
{{ $i18n.get('label_delete_item') }}
</b-dropdown-item>
</b-dropdown>
@ -165,7 +165,7 @@
<div
role="list"
class="tainacan-grid-container"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
v-if="viewMode == 'grid'">
<div
role="listitem"
@ -178,7 +178,7 @@
<!-- Checkbox -->
<!-- TODO: Remove v-if="collectionId" from this element when the bulk edit for repository level is implemented -->
<div
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="grid-item-checkbox">
<b-checkbox
@ -245,7 +245,7 @@
<!-- Actions -->
<div
v-if="item.current_user_can_edit && !$adminOptions.hideItemActionArea"
v-if="item.current_user_can_edit && !$adminOptions.hideItemsListActionAreas"
class="actions-area"
:label="$i18n.get('label_actions')">
<a
@ -305,7 +305,7 @@
v-if="viewMode == 'masonry'"
:cols="{default: 7, 1919: 6, 1407: 5, 1215: 4, 1023: 3, 767: 2, 343: 1}"
:gutter="25"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
class="tainacan-masonry-container">
<div
role="listitem"
@ -320,7 +320,7 @@
<!-- Checkbox -->
<!-- TODO: Remove v-if="collectionId" from this element when the bulk edit in repository is done -->
<div
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="masonry-item-checkbox">
<label
@ -386,7 +386,7 @@
<!-- Actions -->
<div
v-if="item.current_user_can_edit && !$adminOptions.hideItemActionArea"
v-if="item.current_user_can_edit && !$adminOptions.hideItemsListActionAreas"
class="actions-area"
:label="$i18n.get('label_actions')">
<a
@ -442,7 +442,7 @@
<!-- CARDS VIEW MODE -->
<div
role="list"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
class="tainacan-cards-container"
v-if="viewMode == 'cards'">
<div
@ -456,7 +456,7 @@
<!-- Checkbox -->
<!-- TODO: Remove v-if="collectionId" from this element when the bulk edit in repository is done -->
<div
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="card-checkbox">
<b-checkbox
@ -508,7 +508,7 @@
</div>
<!-- Actions -->
<div
v-if="item.current_user_can_edit && !$adminOptions.hideItemActionArea"
v-if="item.current_user_can_edit && !$adminOptions.hideItemsListActionAreas"
class="actions-area"
:label="$i18n.get('label_actions')">
<a
@ -636,7 +636,7 @@
role="list"
:cols="{default: 4, 1919: 3, 1407: 2, 1215: 2, 1023: 1, 767: 1, 343: 1}"
:gutter="30"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
class="tainacan-records-container"
v-if="viewMode == 'records'">
<div
@ -650,7 +650,7 @@
<!-- Checkbox -->
<!-- TODO: Remove v-if="collectionId" from this element when the bulk edit in repository is done -->
<div
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="record-checkbox">
<label
@ -729,7 +729,7 @@
</div>
<!-- Actions -->
<div
v-if="item.current_user_can_edit && !$adminOptions.hideItemActionArea"
v-if="item.current_user_can_edit && !$adminOptions.hideItemsListActionAreas"
class="actions-area"
:label="$i18n.get('label_actions')">
<a
@ -839,13 +839,13 @@
<!-- TABLE VIEW MODE -->
<table
v-if="viewMode == 'table'"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
class="tainacan-table">
<thead>
<tr>
<!-- Checking list -->
<th
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))">
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))">
&nbsp;
<!-- nothing to show on header for checkboxes -->
</th>
@ -894,7 +894,7 @@
<!-- Checking list -->
<!-- TODO: Remove v-if="collectionId" from this element when the bulk edit in repository is done -->
<td
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="checkbox-cell">
<b-checkbox
@ -1059,7 +1059,7 @@
<!-- Actions -->
<td
v-if="(item.current_user_can_edit || item.current_user_can_delete) && !$adminOptions.hideItemActionArea"
v-if="(item.current_user_can_edit || item.current_user_can_delete) && !$adminOptions.hideItemsListActionAreas"
class="actions-cell"
:label="$i18n.get('label_actions')">
<div class="actions-container">
@ -1119,7 +1119,7 @@
<div
role="list"
v-if="viewMode == 'list'"
:class="{ 'hide-items-selection': $adminOptions.hideItemSelection }"
:class="{ 'hide-items-selection': $adminOptions.hideItemsListSelection }"
class="tainacan-list-container">
<div
role="listitem"
@ -1131,7 +1131,7 @@
:class="{ 'selected-list-item': getSelectedItemChecked(item.id) == true }">
<div
v-if="collectionId && !$adminOptions.hideItemSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))"
:class="{ 'is-selecting': isSelectingItems }"
class="list-checkbox">
<label
@ -1194,7 +1194,7 @@
<!-- Actions -->
<div
v-if="item.current_user_can_edit && !$adminOptions.hideItemActionArea"
v-if="item.current_user_can_edit && !$adminOptions.hideItemsListActionAreas"
class="actions-area"
:label="$i18n.get('label_actions')">
<a

View File

@ -12,7 +12,7 @@
<a :style="{ fontWeight: 'bold', color: 'var(--tainacan-gray5) !important' }">
{{ $i18n.get('label_all_items') }}
<span
v-if="!$adminOptions.hideItemsStatusTabsTotalItems"
v-if="!$adminOptions.hideItemsListStatusTabsTotalItems"
class="has-text-gray">
&nbsp;{{ (isRepositoryLevel && repositoryTotalItems) ? ` (${ repositoryTotalItems.private + repositoryTotalItems.publish + repositoryTotalItems.draft })` : (collection && collection.total_items ? ` (${Number(collection.total_items.private) + Number(collection.total_items.publish) + Number(collection.total_items.draft)})` : '') }}
</span>
@ -41,7 +41,7 @@
</span>
{{ statusOption.name }}
<span
v-if="!$adminOptions.hideItemsStatusTabsTotalItems"
v-if="!$adminOptions.hideItemsListStatusTabsTotalItems"
class="has-text-gray">
&nbsp;{{ (isRepositoryLevel && repositoryTotalItems) ? ` (${ repositoryTotalItems[statusOption.slug] })` : (collection && collection.total_items ? ` (${collection.total_items[statusOption.slug]})` : '') }}
</span>
@ -67,7 +67,7 @@ export default {
},
repositoryTotalItems() {
if (!this.$adminOptions.hideItemsStatusTabsTotalItems) {
if (!this.$adminOptions.hideItemsListStatusTabsTotalItems) {
let collections = this.getCollections();
let total_items = {

View File

@ -271,7 +271,7 @@
</p>
<p>{{ $i18n.get('info_there_is_no_filter' ) }}</p>
<router-link
v-if="!$adminOptions.hideFilterCreationButton && $route.name != null"
v-if="!$adminOptions.hideItemsListFilterCreationButton && $route.name != null"
id="button-create-filter"
:to="isRepositoryLevel && $routerHelper ? $routerHelper.getNewFilterPath() : $routerHelper.getNewCollectionFilterPath(collectionId)"
tag="button"

View File

@ -467,54 +467,54 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
hidePrimaryMenu: true,
hideRepositorySubheader: true,
hideCollectionSubheader: true,
hideMultipleItemSelection: true,
hideBulkActionsDropdown: true,
hideContextMenuOpenItemOption: true,
hideContextMenuOpenItemOnNewTabOption: true,
hideContextMenuEditItemOption: true,
hideContextMenuCopyItemOption: true,
hideContextMenuDeleteItemOption: true,
hideItemActionArea: true,
hideItemsListMultipleSelection: true,
hideItemsListBulkActionsButton: true,
hideItemsListContextMenuOpenItemOption: true,
hideItemsListContextMenuOpenItemOnNewTabOption: true,
hideItemsListContextMenuEditItemOption: true,
hideItemsListContextMenuCopyItemOption: true,
hideItemsListContextMenuDeleteItemOption: true,
hideItemsListActionAreas: true,
hideItemsListPageTitle: true,
hideItemCreationDropdown: true,
hideExposersButton: true,
hideItemsStatusTabs: true,
hideFilterCreationButton: true
hideItemsListCreationDropdown: true,
hideItemsListExposersButton: true,
hideItemsListStatusTabs: true,
hideItemsListFilterCreationButton: true
},
itemsMultipleSelectionMode: {
hideTainacanHeader: true,
hidePrimaryMenu: true,
hideRepositorySubheader: true,
hideCollectionSubheader: true,
hideMultipleItemSelection: true,
hideBulkActionsDropdown: true,
hideContextMenuOpenItemOption: true,
hideContextMenuOpenItemOnNewTabOption: true,
hideContextMenuEditItemOption: true,
hideContextMenuCopyItemOption: true,
hideContextMenuDeleteItemOption: true,
hideItemActionArea: true,
hideItemsListMultipleSelection: true,
hideItemsListBulkActionsButton: true,
hideItemsListContextMenuOpenItemOption: true,
hideItemsListContextMenuOpenItemOnNewTabOption: true,
hideItemsListContextMenuEditItemOption: true,
hideItemsListContextMenuCopyItemOption: true,
hideItemsListContextMenuDeleteItemOption: true,
hideItemsListActionAreas: true,
hideItemsListPageTitle: true,
hideItemCreationDropdown: true,
hideExposersButton: true,
hideItemsStatusTabs: true,
hideFilterCreationButton: true
hideItemsListCreationDropdown: true,
hideItemsListExposersButton: true,
hideItemsListStatusTabs: true,
hideItemsListFilterCreationButton: true
},
itemsSearchSelectionMode: {
hideTainacanHeader: true,
hidePrimaryMenu: true,
hideRepositorySubheader: true,
hideCollectionSubheader: true,
hideMultipleItemSelection: true,
hideBulkActionsDropdown: true,
hideItemActionArea: true,
hideItemsListMultipleSelection: true,
hideItemsListBulkActionsButton: true,
hideItemsListActionAreas: true,
hideItemsListPageTitle: true,
hideItemCreationDropdown: true,
hideExposersButton: true,
hideContextMenu: true,
hideItemSelection: true,
hideItemsStatusTabs: true,
hideFilterCreationButton: true
hideItemsListCreationDropdown: true,
hideItemsListExposersButton: true,
hideItemsListContextMenu: true,
hideItemsListSelection: true,
hideItemsListStatusTabs: true,
hideItemsListFilterCreationButton: true
},
itemEditionMode: {
hideTainacanHeader: true,
@ -547,7 +547,7 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
}
/*
Possible Values:
Possible Values for Admin Options. Identation marks options that affects others:
* hideHomeRepositorySection
* hideHomeThemeCollectionsButton
* hideHomeThemeItemsButton
@ -565,6 +565,7 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
* hideHomeCollectionFiltersButton
* hideHomeCollectionActivitiesButton
* hideHomeCollectionThemeCollectionButton
* showHomeCollectionCreateItemButton
* hideTainacanHeader
* hideTainacanHeaderHomeButton
* hideTainacanHeaderSearchInput
@ -588,23 +589,29 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
* hideRepositorySubheaderViewCollectionsButton
* hideRepositorySubheaderExportButton
* hideCollectionSubheader
* hideMultipleItemSelection
* hideItemSelection
* hideBulkActionsDropdown
* hideContextMenu
* hideContextMenuOpenItemOption
* hideContextMenuOpenItemOnNewTabOption
* hideContextMenuEditItemOption
* hideContextMenuCopyItemOption
* hideContextMenuDeleteItemOption
* hideItemActionArea
* hideItemsListPageTitle
* hideItemsListMultipleSelection
* hideItemsListSelection
* hideItemsListBulkActionsButton
* hideItemsListCreationDropdown
* hideItemsListCreationDropdownBulkAdd
* hideItemsListCreationDropdownImport
* hideItemsListAdvancedSearch
* hideItemsListExposersButton
* hideItemsListStatusTabs
* hideItemsListStatusTabsTotalItems
* hideItemsListContextMenu
* hideItemsListContextMenuOpenItemOption
* hideItemsListContextMenuOpenItemOnNewTabOption
* hideItemsListContextMenuEditItemOption
* hideItemsListContextMenuCopyItemOption
* hideItemsListContextMenuDeleteItemOption
* hideItemsListActionAreas
* hideItemsListFilterCreationButton
* hideItemEditionPageTitle
* hideBulkEditionPageTitle
* hideItemCreationDropdown
* hideExposersButton
* hideItemsStatusTabs
* hideFilterCreationButton
* hideItemEditionPageBackButton
* hideCollectionNameInItemPage
*/

View File

@ -93,20 +93,34 @@
icon-right-clickable
@icon-right-click="updateSearch()" />
<a
v-if="!$adminOptions.hideItemsListAdvancedSearch"
@click="openAdvancedSearch = !openAdvancedSearch; $eventBusSearch.clearAllFilters();"
style="font-size: 0.75em;"
class="has-text-secondary is-pulled-right">{{ $i18n.get('advanced_search') }}</a>
</div>
</div>
<!-- Item Creation Dropdown -->
<!-- Item Creation Dropdown (or button, if few options are available) -->
<div
class="search-control-item"
v-if="!$adminOptions.hideItemCreationDropdown &&
v-if="!$adminOptions.hideItemsListCreationDropdown &&
!openAdvancedSearch &&
collection &&
collection.current_user_can_edit_items">
collection.current_user_can_edit_items"
class="search-control-item">
<router-link
id="item-creation-options-dropdown"
v-if="$adminOptions.hideItemsListCreationDropdownBulkAdd && $adminOptions.hideItemsListCreationDropdownImport"
class="button is-secondary"
tag="button"
:to="{ path: $routerHelper.getNewItemPath(collectionId) }">
<span class="is-hidden-touch">{{ $i18n.getFrom('items','add_new') }}</span>
<span class="is-hidden-desktop">{{ $i18n.get('add') }}</span>
<span class="icon">
<i class="tainacan-icon tainacan-icon-1-125em tainacan-icon-add" />
</span>
</router-link>
<b-dropdown
v-else
:mobile-modal="true"
id="item-creation-options-dropdown"
aria-role="list"
@ -142,7 +156,7 @@
</div>
</b-dropdown-item>
<b-dropdown-item
v-if="!isRepositoryLevel"
v-if="!isRepositoryLevel && !$adminOptions.hideItemsListCreationDropdownBulkAdd"
aria-role="listitem">
<router-link
id="a-item-add-bulk"
@ -153,7 +167,9 @@
<small class="is-small">{{ $i18n.get('info_bulk_add_items') }}</small>
</router-link>
</b-dropdown-item>
<b-dropdown-item aria-role="listitem">
<b-dropdown-item
v-if="!$adminOptions.hideItemsListCreationDropdownImport"
aria-role="listitem">
<div
id="a-import-items"
tag="div"
@ -414,7 +430,7 @@
<!-- Exposers or alternative links modal button -->
<div
v-if="!$adminOptions.hideExposersButton"
v-if="!$adminOptions.hideItemsListExposersButton"
class="search-control-item">
<button
class="button is-white"
@ -496,7 +512,7 @@
<!-- STATUS TABS, only on Admin -------- -->
<items-status-tabs
v-if="!openAdvancedSearch && !$adminOptions.hideItemsStatusTabs"
v-if="!openAdvancedSearch && !$adminOptions.hideItemsListStatusTabs"
:is-repository-level="isRepositoryLevel"/>
<!-- FILTERS TAG LIST-->
@ -597,7 +613,7 @@
</p>
<router-link
v-if="!isRepositoryLevel && !isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '') && !$adminOptions.hideItemCreationDropdown"
v-if="!isRepositoryLevel && !isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '') && !$adminOptions.hideItemsListCreationDropdown"
id="button-create-item"
tag="button"
class="button is-secondary"
@ -605,7 +621,7 @@
{{ $i18n.getFrom('items', 'add_new') }}
</router-link>
<button
v-else-if="isRepositoryLevel && !isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '') && !$adminOptions.hideItemCreationDropdown"
v-else-if="isRepositoryLevel && !isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '') && !$adminOptions.hideItemsListCreationDropdown"
id="button-create-item"
class="button is-secondary"
@click="onOpenCollectionsModal">
@ -762,8 +778,9 @@
if ((this.$refs['search-control'].classList.contains('floating-search-control')))
this.$refs['search-control'].classList.remove('floating-search-control');
this.$refs['items-page-container'].scrollTo({ top: this.$refs['search-control'].offsetTop - (this.isRepositoryLevel ? 94 : 42), behavior: 'smooth'});
if (!this.$adminOptions.hideCollectionSubheader)
this.$refs['items-page-container'].scrollTo({ top: this.$refs['search-control'].offsetTop - (this.isRepositoryLevel ? 94 : 42), behavior: 'smooth'});
}
this.isLoadingItems = isLoadingItems;

View File

@ -10,7 +10,7 @@
id="collection-page-container"
:collection-id="collectionId"
class="page-container"
:class="{ 'page-container-small': !$adminOptions.hideRepositorySubheader }"/>
:class="{ 'page-container-small': !$adminOptions.hideRepositorySubheader && !$adminOptions.hideCollectionSubheader }"/>
</section>
</div>
</template>