Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
c0c12ac
Removed dynamic overflow because every content must be scrollable.. (…
milanmajchrak Sep 20, 2024
082d14b
add tar for preview (#713)
Paurikova2 Sep 20, 2024
575e3b9
UFAL/Enhanced type-bind feature (#714)
milanmajchrak Sep 20, 2024
1178fae
Updated error message when tests failed
milanmajchrak Sep 25, 2024
083f2b5
Update README.md
vidiecan Oct 11, 2024
b2a5d6e
UFAL/Show sesznam license on approval page (#722)
milanmajchrak Oct 17, 2024
d164ec7
UFAL/share submission by email (#720)
milanmajchrak Oct 17, 2024
791dfd9
UFAL/Autocomplete enhancement (#718)
milanmajchrak Oct 17, 2024
ae42453
UFAL/License page - wrong layout in Firefox (#721)
milanmajchrak Oct 30, 2024
bd55322
Migrated Vanilla cs messages into clarin 7.6.1. cs messages (#669)
milanmajchrak Nov 4, 2024
2214559
UFAL/Share submission with user not only admin (#728)
milanmajchrak Nov 12, 2024
057632d
Updated messages following last commit to upstream. (#731)
milanmajchrak Nov 14, 2024
aa6e71b
Updated dspace prefix to lindat (#734)
milanmajchrak Nov 15, 2024
d506074
Added notification when the shibboleth authentication is failed (#732)
milanmajchrak Nov 19, 2024
5e21da0
Removed two IT: (#737)
milanmajchrak Nov 20, 2024
753594d
Update all static licenses (#726)
Paurikova2 Nov 20, 2024
f9f6e62
Use NAMESPACES from the .env (#727)
milanmajchrak Nov 20, 2024
a6310f0
Update deploy.yml to increase timeout (#738)
milanmajchrak Nov 21, 2024
a2a3e53
Use only 4000, not the {UI_PORT} from the .env because in the contain…
milanmajchrak Nov 21, 2024
09e1167
Update docker-compose-rest.yml
milanmajchrak Nov 21, 2024
c5bc34b
Update docker-compose-rest.yml
milanmajchrak Nov 21, 2024
8d68def
Use only / and /server namespaces, not the values from the .env becau…
milanmajchrak Nov 21, 2024
4e108e6
Expose tomcat `/server` on `/repository/server`
milanmajchrak Nov 21, 2024
5843e54
Take a customized docker-compose-rest.yml which exposes the server on…
milanmajchrak Nov 21, 2024
e7e8185
Updated a path to take right docker-compose files
milanmajchrak Nov 21, 2024
3d052e6
Undo using only default namespaced `/` and `/server`
milanmajchrak Nov 21, 2024
56f0730
Use custom `docker-compose.yml` from the testing server
milanmajchrak Nov 22, 2024
01b4a93
UFAL/Shibboleth fixed wrong redirect after login with verification to…
milanmajchrak Nov 22, 2024
ea056b2
Use path `./assets` instead of `/assets` (#742)
milanmajchrak Nov 22, 2024
6e281ba
new download instruction for cmd using zip from backend (#739)
Paurikova2 Nov 26, 2024
c335482
Get UI base URL from BE (#744)
milanmajchrak Nov 26, 2024
b782d78
Check that the custom type bind field in configured in the `submissio…
milanmajchrak Nov 28, 2024
42040a6
Searching by type is changed to 'type' instead of 'itemtype' because …
milanmajchrak Nov 29, 2024
6ffc7e5
Use `autoLogin` method (#747)
milanmajchrak Nov 29, 2024
e7e1577
UFAL/Matomo statistics using angulartics2 (#748)
milanmajchrak Nov 29, 2024
0d69bcc
Update db-import action
milanmajchrak Nov 30, 2024
8126cb7
Update import-db action - use main branch
milanmajchrak Nov 30, 2024
374c062
Added a translation for the searching filter `subjectFirstValue` (red…
milanmajchrak Dec 2, 2024
60e2983
Ensure the redirect URL starts with a slash (#753)
milanmajchrak Dec 2, 2024
fc70fcb
Added volume into docker-compose (#754)
milanmajchrak Dec 3, 2024
4c2e997
UFAL/Load the matomo configuration from the environment (#755)
milanmajchrak Dec 3, 2024
e4dcb89
Fetch the matomo properties from the config, not from the environment…
milanmajchrak Dec 3, 2024
1cc31c6
Load the szn license in oninit method (#757)
milanmajchrak Dec 4, 2024
06a46aa
UFAL/Temporary fix for the type-bind. The form automatically refreshe…
milanmajchrak Dec 5, 2024
50f68bb
Execute autoregistration component only in client side (#762)
milanmajchrak Dec 5, 2024
d3aa70d
The Autocomplete Component is dynamically loaded as a standalone comp…
milanmajchrak Dec 5, 2024
ab2d477
UFAL/footer header images (#760)
jr-rk Dec 6, 2024
9e9d86f
ufal/customize the footer (#759)
jr-rk Dec 6, 2024
c90b1cc
Copied fixes from the lindat branch (#770)
milanmajchrak Dec 17, 2024
bc19dfe
The dtq-dev is run on /repository branch
milanmajchrak Dec 17, 2024
be6ea71
Waiting for the http://dev-5.pc:8$INSTANCE/server/api changed to http…
milanmajchrak Dec 17, 2024
23228f7
Added `repository` namespace to discojuice
milanmajchrak Dec 17, 2024
97587cc
Run UI integration tests every hour
milanmajchrak Jan 23, 2025
f70475a
Update actions/upload-artifact@v3 to v4
milanmajchrak Jan 23, 2025
9f98dc8
Run build CRON every 4 hours
milanmajchrak Jan 24, 2025
e0a69db
Update deploy.yml - changed runner
milanmajchrak Jan 28, 2025
3fcf70a
Update deploy.yml - updated runner everywhere
milanmajchrak Jan 28, 2025
a9f236e
Update deploy.yml - use `dspace-dep-1` runner again
milanmajchrak Jan 28, 2025
c044bb8
Fixed failing Integration tests (#773)
milanmajchrak Jan 29, 2025
10167b3
Update import action.yml - use `/repository` namespace in the import …
milanmajchrak Jan 29, 2025
0bdc06d
Merge pull request #2694 from hutattedonmyarm/dspace-7_x (#777)
milanmajchrak Jan 30, 2025
65596be
Update build.yml - added a option to manually run build action
milanmajchrak Jan 30, 2025
aa8ab01
save logs
Paurikova2 Feb 3, 2025
fca181e
missing $
Paurikova2 Feb 3, 2025
0a0ae97
print log file name for check
Paurikova2 Feb 3, 2025
d04cbde
removed superfluous space
Paurikova2 Feb 3, 2025
333dccc
renamed log file -> added 'log' at the end of the name
Paurikova2 Feb 4, 2025
9642195
Merge pull request #778 from dataquest-dev/import/saving-logs-during-…
Paurikova2 Feb 4, 2025
1dba9ab
Ufal/License issues (#779)
milanmajchrak Feb 4, 2025
b634553
Update action.yml - defined log_file
milanmajchrak Feb 5, 2025
ef89623
Update action.yml - log import into a specific path
milanmajchrak Feb 5, 2025
9baf936
Update action.yml - continuously copy logs from the import into anoth…
milanmajchrak Feb 5, 2025
5ffb54d
Update action.yml - import logging - show path info
milanmajchrak Feb 5, 2025
70d05de
Update action.yml - log import - copy logs after they are created
milanmajchrak Feb 5, 2025
b05e6b2
Update action.yml - Start appending when the first file is added to t…
milanmajchrak Feb 5, 2025
694ac97
Added a new workflow which runs a build workflow in every customer
milanmajchrak Feb 18, 2025
bcac8cf
Fixed copying of the import logs to the dev machine (#786)
milanmajchrak Feb 21, 2025
b8c9bf4
Call the import every week (#787)
milanmajchrak Feb 25, 2025
6d5b428
UFAL/Use namespace in the redirect URL (#794)
milanmajchrak Mar 5, 2025
508d801
Use current activated route as a parameter to the `createUrlTree` to …
milanmajchrak Mar 5, 2025
4072aca
UFAL/Fixed CMD download command - added name (#798)
Paurikova2 Mar 6, 2025
23e4cfb
UFAL/Fixed editing the license - required info is removed/added follo…
jr-rk Mar 6, 2025
6c0b2be
UFAL/Copy the refbox content correctly (#801)
milanmajchrak Mar 7, 2025
05dc3c1
UFAL/The current version redirect - get the base href using the DOCUM…
milanmajchrak Mar 7, 2025
92f7b6c
UFAL/Start the handle server before tomca
milanmajchrak Mar 13, 2025
c73814a
Sync with ufal main (#799)
kosarko Mar 21, 2025
654611d
UFAL/Edit item - fixed license redirect
jr-rk Mar 28, 2025
6e40b57
Add custom dimension (handle) to pageTrack of matomo (#823)
kosarko Apr 4, 2025
34a1b64
UFAL/Change menu options redirects (#816)
jr-rk Apr 4, 2025
87ec406
UFAL/Preview - fixed loading files (#825)
milanmajchrak Apr 4, 2025
3af7583
UFAL/Handle table issues - Fixed table responsivity and searching (#822)
milanmajchrak Apr 4, 2025
745d7af
Merge branch 'dtq-dev' into lindat-merge-pr-apr
milanmajchrak Apr 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV NODE_OPTIONS="--max_old_space_size=4096"
# Listen / accept connections from all IP addresses.
# NOTE: At this time it is only possible to run Docker container in Production mode
# if you have a public URL. See https://github.com/DSpace/dspace-angular/issues/1485
ENV NODE_ENV development
ENV NODE_ENV=development
RUN apk add tzdata
RUN yarn build:prod
RUN npm install pm2 -g
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Test build:
# docker build -f Dockerfile.dist -t dspace/dspace-angular:dspace-7_x-dist .

FROM node:18-alpine as build
FROM node:18-alpine AS build

# Ensure Python and other build tools are available
# These are needed to install some node modules, especially on linux/arm64
Expand All @@ -26,6 +26,6 @@ COPY --chown=node:node docker/dspace-ui.json /app/dspace-ui.json

WORKDIR /app
USER node
ENV NODE_ENV production
ENV NODE_ENV=production
EXPOSE 4000
CMD pm2-runtime start dspace-ui.json --json
CMD ["pm2-runtime", "start", "dspace-ui.json", "--json"]
1 change: 0 additions & 1 deletion docker/cli.assetstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/cli.assetstore.yml
#
# Therefore, it should be kept in sync with that file
version: "3.7"

networks:
dspacenet:
Expand Down
1 change: 0 additions & 1 deletion docker/cli.ingest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/cli.ingest.yml
#
# Therefore, it should be kept in sync with that file
version: "3.7"

services:
dspace-cli:
Expand Down
2 changes: 0 additions & 2 deletions docker/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# http://www.dspace.org/license/
#

version: "3.7"

services:
dspace-cli:
image: "${DOCKER_OWNER:-dataquest}/dspace-cli:${DSPACE_VER:-dspace-7_x}"
Expand Down
4 changes: 1 addition & 3 deletions docker/db.entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
#
# # Therefore, it should be kept in sync with that file
version: "3.7"

services:
dspacedb:
image: dspace/dspace-postgres-pgcrypto:loadsql
Expand Down Expand Up @@ -48,4 +46,4 @@ services:
<name-map collection-handle="123456789/28" submission-name="Journal"/> \
<name-map collection-handle="123456789/29" submission-name="JournalVolume"/> \
<name-map collection-handle="123456789/30" submission-name="JournalIssue"/>' /dspace/config/item-submission.xml
catalina.sh run
catalina.sh run
1 change: 0 additions & 1 deletion docker/docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# This is used by our GitHub CI at .github/workflows/build.yml
# It is based heavily on the Backend's Docker Compose:
# https://github.com/DSpace/DSpace/blob/main/docker-compose.yml
version: '3.7'
networks:
dspacenet:
services:
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# Docker Compose for running the DSpace Angular UI dist build
# for previewing with the DSpace Demo site backend
version: '3.7'
networks:
dspacenet:
services:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-rest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# This is based heavily on the docker-compose.yml that is available in the DSpace/DSpace
# (Backend) at:
# https://github.com/DSpace/DSpace/blob/main/docker-compose.yml
version: '3.7'
networks:
dspacenet:
# Due to the following specification, THIS FILE (docker-compose-rest.yml) must be last (if using several YMLs),
Expand Down Expand Up @@ -105,8 +104,9 @@ services:
while (!</dev/tcp/dspacedb/543${INSTANCE}) > /dev/null 2>&1; do sleep 1; done;
pushd ../webapps && (unlink server || true) && (ln -s /dspace/webapps/server/ 'repository#server' || true) && popd
/dspace/bin/dspace database migrate force
./custom_run.sh
custom_run.sh
/dspace/bin/start-handle-server
./custom_run.sh
# DSpace database container
dspacedb:
restart: unless-stopped
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# http://www.dspace.org/license/
#

version: '3.7'
networks:
dspacenet:
services:
Expand Down
2 changes: 0 additions & 2 deletions docker/matomo-w-db.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.5"

services:
db:
image: mariadb
Expand Down
3 changes: 3 additions & 0 deletions src/app/core/handle/handle.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export class Handle extends ListableObject implements HALResource {
@autoserialize
url: string;

@autoserialize
resourceId: string;

/**
* The element of this metadata field
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
[(ngModel)]="handle"
[placeholder]="'handle-table.edit-handle.form-handle-input-placeholder' | translate">
</div>
<div class="form-group">
<label for="handleId">{{'handle-table.edit-handle.form-id-input-text' | translate}}</label>
<input type="text" class="form-control" id="handleId" name="handleId"
[(ngModel)]="id"
[placeholder]="'handle-table.edit-handle.form-id-input-placeholder' | translate"
[readonly]="true">
</div>
<div class="form-group" *ngIf="resourceType">
<label for="resourceType">{{'handle-table.table.resource-type' | translate}}</label>
<input type="text" class="form-control" id="resourceType" name="resourceType"
Expand All @@ -14,7 +21,7 @@
[readonly]="true">
</div>
<div class="form-group" *ngIf="resourceType">
<label for="resourceType">{{'handle-table.table.resource-id' | translate}}</label>
<label for="resourceId">{{'handle-table.table.resource-id' | translate}}</label>
<input type="text" class="form-control" id="resourceId" name="resourceId"
[(ngModel)]="resourceId"
[placeholder]="'handle-table.edit-handle.form-url-input-placeholder' | translate"
Expand Down
20 changes: 13 additions & 7 deletions src/app/handle-page/handle-table/handle-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ <h5 class="card-header">{{ 'handle-table.title' | translate }}</h5>
</div>
</div>
<input type="text" id="clarin-dc-search-box" class="form-control" aria-label="Text input with dropdown button"
[value]="searchQuery"
#searchInput>
<span class="input-group-append" (click)="searchHandles(searchInput.value)">
[(ngModel)]="searchQuery">
<span class="input-group-append" (click)="searchHandles()">
<button type="submit" class="btn btn-primary search-button">
<i class="fas fa-search"></i>{{'handle-table.dropdown.search-button' | translate}}</button>
</span>
</div>

<!-- The table with pagination -->
<div *ngVar="(handlesRD$ | async)?.payload as handles">
<div class="mb-2">
<div class="mb-2 table-responsive">
<ds-pagination (paginationChange)="onPageChange()"
[sortOptions]="sortConfiguration"
[hideGear]="true"
Expand Down Expand Up @@ -66,14 +65,21 @@ <h5 class="card-header">{{ 'handle-table.title' | translate }}</h5>
</span>
</td>
<td class="version-row-element-editor">
{{handle?.url}}
<a *ngIf="handle?.url" [href]="handle?.url" target="_blank" rel="noopener noreferrer">
{{handle?.url}}
</a>
</td>
<td class="version-row-element-editor">
{{handle?.resourceTypeID}}
</td>
<td class="version-row-element-editor">
<span *ngIf="handle?.resourceTypeID != null">
{{handle?.id}}
<span *ngIf="handle?.resourceId != null">
<a *ngIf="shouldLink(handle); else noLink" [href]="getHandleTargetPageRoute(handle)" target="_blank" rel="noopener noreferrer">
{{handle?.resourceId}}
</a>
<ng-template #noLink>
{{handle?.resourceId}}
</ng-template>
</span>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('HandleTableComponent', () => {
url: mockHandle.url,
currentPage: (component as any).options.currentPage,
resourceType: mockHandle.resourceTypeID,
resourceId: mockHandle.id
resourceId: mockHandle.resourceId
}
};
// should unselect
Expand Down
105 changes: 62 additions & 43 deletions src/app/handle-page/handle-table/handle-table.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ChangeDetectorRef, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { BehaviorSubject, combineLatest as observableCombineLatest, fromEvent } from 'rxjs';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { BehaviorSubject, combineLatest } from 'rxjs';
import { RemoteData } from '../../core/data/remote-data';
import { PaginatedList } from '../../core/data/paginated-list.model';
import { HandleDataService } from '../../core/data/handle-data.service';
import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model';
import { debounceTime, distinctUntilChanged, switchMap, take } from 'rxjs/operators';
import { scan, switchMap, take } from 'rxjs/operators';
import { getFirstSucceededRemoteData, getRemoteDataPayload } from '../../core/shared/operators';
import { PaginationService } from '../../core/pagination/pagination.service';
import {
Expand All @@ -28,6 +28,9 @@ import {
SITE,
SUCCESSFUL_RESPONSE_START_CHAR
} from '../../core/handle/handle.resource-type';
import { getCommunityPageRoute } from '../../community-page/community-page-routing-paths';
import { getCollectionPageRoute } from '../../collection-page/collection-page-routing-paths';
import { getEntityPageRoute } from '../../item-page/item-page-routing-paths';

/**
* Constants for converting the searchQuery for the server
Expand Down Expand Up @@ -55,11 +58,6 @@ export class HandleTableComponent implements OnInit {
private notificationsService: NotificationsService,) {
}

/**
* The reference for the input html element
*/
@ViewChild('searchInput', {static: true}) searchInput: ElementRef;

/**
* The list of Handle object as BehaviorSubject object
*/
Expand Down Expand Up @@ -150,13 +148,20 @@ export class HandleTableComponent implements OnInit {
this.isLoading = true;

// load the current pagination and sorting options
const currentPagination$ = this.paginationService.getCurrentPagination(this.options.id, this.options);
const currentSort$ = this.paginationService.getCurrentSort(this.options.id, this.sortConfiguration);

observableCombineLatest([currentPagination$, currentSort$]).pipe(
switchMap(([currentPagination, currentSort]) => {
const currentPagination$ = this.getCurrentPagination();
const currentSort$ = this.getCurrentSort();
const searchTerm$ = new BehaviorSubject<string>(this.searchQuery);

combineLatest([currentPagination$, currentSort$, searchTerm$]).pipe(
scan((prevState, [currentPagination, currentSort, searchTerm]) => {
// If search term has changed, reset to page 1; otherwise, keep current page
const currentPage = prevState.searchTerm !== searchTerm ? 1 : currentPagination.currentPage;
return { currentPage, currentPagination, currentSort, searchTerm };
}, { searchTerm: '', currentPage: 1, currentPagination: this.getCurrentPagination(),
currentSort: this.getCurrentSort() }),
switchMap(({ currentPage, currentPagination, currentSort, searchTerm }) => {
return this.handleDataService.findAll({
currentPage: currentPagination.currentPage,
currentPage: currentPage,
elementsPerPage: currentPagination.pageSize,
sort: {field: currentSort.field, direction: currentSort.direction}
}, false
Expand All @@ -169,6 +174,29 @@ export class HandleTableComponent implements OnInit {
});
}

getItemPageRoute(id: string): string {
return getEntityPageRoute(null, id);
}

type2route(type: string): (id: string) => string {
switch (type) {
case COMMUNITY:
return getCommunityPageRoute;
case COLLECTION:
return getCollectionPageRoute;
case ITEM:
return this.getItemPageRoute;
}
}

getHandleTargetPageRoute(handle: Handle): string {
return this.type2route(handle.resourceTypeID)(handle.resourceId);
}

shouldLink(handle: Handle): boolean {
return handle.resourceTypeID !== SITE;
}

/**
* Updates the page
*/
Expand Down Expand Up @@ -216,7 +244,7 @@ export class HandleTableComponent implements OnInit {
this.switchSelectedHandle(this.selectedHandle);
this.router.navigate([this.handleRoute, this.editHandlePath],
{ queryParams: { id: handle.id, _selflink: handle._links.self.href, handle: handle.handle,
url: handle.url, resourceType: handle.resourceTypeID, resourceId: handle.id,
url: handle.url, resourceType: handle.resourceTypeID, resourceId: handle.resourceId,
currentPage: this.options.currentPage } },
);
}
Expand Down Expand Up @@ -325,29 +353,6 @@ export class HandleTableComponent implements OnInit {
}, 250 );
}

/**
* If the user is typing the searchQuery is changing.
*/
setSearchQuery() {
if (isEmpty(this.searchOption)) {
return;
}

fromEvent(this.searchInput.nativeElement,'keyup')
.pipe(
debounceTime(300),
distinctUntilChanged()
)
.subscribe( cc => {
this.searchHandles(this.searchInput.nativeElement.value);
setTimeout(() => {
// click to refresh table data because without click it still shows wrong data
document.getElementById('clarin-dc-search-box').click();
}, 25);
});

}

/**
* The search option is selected from the dropdown menu.
* @param event with the selected value
Expand All @@ -360,32 +365,32 @@ export class HandleTableComponent implements OnInit {
* Update the sortConfiguration based on the `searchOption` and the `searchQuery` but parse that attributes at first.
* @param searchQuery
*/
searchHandles(searchQuery = '') {
searchHandles() {
if (isEmpty(this.searchOption)) {
return;
}

// parse searchQuery for the server request
// the new sorting query is in the format e.g. `handle:123456`, `resourceTypeId:2`, `url:internal`
let parsedSearchOption = '';
let parsedSearchQuery = searchQuery;
let parsedSearchQuery = this.searchQuery;
switch (this.searchOption) {
case this.handleOption:
parsedSearchOption = HANDLE_SEARCH_OPTION;
break;
case this.internalOption:
// if the handle doesn't have the URL - is internal, if it does - is external
parsedSearchOption = URL_SEARCH_OPTION;
if (searchQuery === 'Yes' || searchQuery === 'yes') {
if (this.searchQuery.toLowerCase() === 'yes') {
parsedSearchQuery = 'internal';
} else if (searchQuery === 'No' || searchQuery === 'no') {
} else if (this.searchQuery.toLowerCase() === 'no') {
parsedSearchQuery = 'external';
}
break;
case this.resourceTypeOption:
parsedSearchOption = RESOURCE_TYPE_SEARCH_OPTION;
// parse resourceType from string to the number because the resourceType is integer on the server
switch (searchQuery) {
switch (this.searchQuery) {
case ITEM:
parsedSearchQuery = '' + 2;
break;
Expand Down Expand Up @@ -415,4 +420,18 @@ export class HandleTableComponent implements OnInit {
private initializeSortingOptions() {
this.sortConfiguration = defaultSortConfiguration;
}

/**
* Get the current pagination options.
*/
private getCurrentPagination() {
return this.paginationService.getCurrentPagination(this.options.id, defaultPagination);
}

/**
* Get the current sorting options.
*/
private getCurrentSort() {
return this.paginationService.getCurrentSort(this.options.id, defaultSortConfiguration);
}
}
Loading