UI annotations for Authors

This commit is contained in:
Gregor Wolf
2021-11-12 21:27:40 +01:00
parent 2a44cfa9dc
commit d376e6e063
2 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
using CatalogService from '@capire/bookshop';
////////////////////////////////////////////////////////////////////////////
//
// Authors Object Page
//
annotate CatalogService.Authors with @(UI : {
HeaderInfo : {
TypeName : 'Author',
TypeNamePlural : 'Authors',
Description : {Value : name}
},
HeaderFacets : [{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Description}',
Target : '@UI.FieldGroup#Descr'
}, ],
Facets : [{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Details}',
Target : 'books/@UI.LineItem'
}, ],
FieldGroup #Descr : {Data : [
{Value : name},
{Value : dateOfBirth},
{Value : dateOfDeath},
{Value : placeOfBirth},
{Value : placeOfDeath},
]},
});
////////////////////////////////////////////////////////////////////////////
//
// Authors List Page
//
annotate CatalogService.Authors with @(UI : {
SelectionFields : [
ID,
name,
],
LineItem : [
{Value : ID},
{Value : name},
]
}, );

View File

@@ -4,6 +4,6 @@
using from './admin/fiori-service';
using from './browse/fiori-service';
using from './authors/fiori-service';
using from './common';
using from '@capire/bookstore/srv/mashup';