Skip to content

Commit

Permalink
search: fix several issues
Browse files Browse the repository at this point in the history
* Disallows empty search to be able to search with a query in BNF
import view.
* Hides `holdings` in tabs.
* Displays the title Documents in documents search view.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Aug 17, 2021
1 parent c84ece7 commit d4ba704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projects/admin/src/app/routes/documents-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class DocumentsRoute extends BaseRoute implements RouteInterface {
{
key: this.name,
label: 'Documents',
showLabel: false,
editorSettings: {
longMode: true,
template: {
Expand Down Expand Up @@ -103,7 +102,8 @@ export class DocumentsRoute extends BaseRoute implements RouteInterface {
this._routeToolService.translateService.instant('Do you really want to delete this record?'),
this._routeToolService.translateService.instant('This will also delete all items and issues of the holdings.')
]);
}
},
hideInTabs: true
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion projects/admin/src/app/routes/import-documents-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export class ImportDocumentsRoute extends BaseRoute implements RouteInterface {
},
listHeaders: {
Accept: 'application/rero+json, application/json'
}
},
allowEmptySearch: false
}
]
}
Expand Down

0 comments on commit d4ba704

Please sign in to comment.