diff --git a/projects/admin/src/app/record/brief-view/templates-brief-view.component.ts b/projects/admin/src/app/record/brief-view/templates-brief-view.component.ts
index cfa818d41..3c65a00e1 100644
--- a/projects/admin/src/app/record/brief-view/templates-brief-view.component.ts
+++ b/projects/admin/src/app/record/brief-view/templates-brief-view.component.ts
@@ -19,16 +19,15 @@ import { Component, Input } from '@angular/core';
@Component({
selector: 'admin-templates-brief-view',
template: `
-
+
{{ record.metadata.name }}
@if (record.metadata.visibility === 'private') {
-
+
}
-
-
+
@if (record.metadata.description) {
-
{{ record.metadata.description | truncateText: 8 }}
@@ -45,7 +44,6 @@ import { Component, Input } from '@angular/core';
}
-
`
})
export class TemplatesBriefViewComponent {
diff --git a/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.html b/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.html
index 22f954dc9..2679a7839 100644
--- a/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.html
+++ b/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.html
@@ -15,41 +15,29 @@
along with this program. If not, see .
-->
@if (record) {
-
+
{{ record.metadata.name }}
@if (record.metadata.visibility && record.metadata.visibility === 'private') {
}
-
+
@if (record.metadata.description) {
- -
-
- Description
-
-
-
+ - Description
+
}
@if (record.metadata.creator.pid | getRecord: 'patrons' | async; as creator) {
- -
-
- Creator
-
-
- -
+
- Creator
+ -
{{ $any(creator).metadata.first_name }} {{ $any(creator).metadata.last_name }}
}
@if (record.metadata.template_type) {
- -
-
- Type
-
-
- -
+
- Type
+ -
{{ record.metadata.template_type }}
}
diff --git a/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.ts b/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.ts
index b75686d48..dd566d4ea 100644
--- a/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.ts
+++ b/projects/admin/src/app/record/detail-view/template-detail-view/template-detail-view.component.ts
@@ -40,12 +40,6 @@ export class TemplateDetailViewComponent implements OnInit, OnDestroy {
/** Document record */
record: any;
- /** Css classes for dd in template */
- ddCssClass = 'col-9 mb-0';
-
- /** Css classes for dt in template */
- dtCssClass = 'col-3';
-
/** Record subscription */
private recordSubscription: Subscription;
diff --git a/projects/admin/src/app/routes/templates-route.ts b/projects/admin/src/app/routes/templates-route.ts
index 2ca9a33fc..8de56697e 100644
--- a/projects/admin/src/app/routes/templates-route.ts
+++ b/projects/admin/src/app/routes/templates-route.ts
@@ -62,7 +62,7 @@ export class TemplatesRoute extends BaseRoute implements RouteInterface {
redirectUrl: (record: any) => {
return this.redirectUrl(
record.metadata,
- '/records/templates/detail/'
+ '/records/templates/detail'
);
},
aggregationsOrder: [
@@ -77,11 +77,13 @@ export class TemplatesRoute extends BaseRoute implements RouteInterface {
{
label: _('Relevance'),
value: 'bestmatch',
+ icon: 'fa fa-sort-amount-desc',
defaultQuery: true
},
{
label: _('Name'),
value: 'name',
+ icon: 'fa fa-sort-alpha-asc',
defaultNoQuery: true
}
],