diff --git a/bookshop/db/data/sap.capire.bookshop-Books.csv b/bookshop/db/data/sap.capire.bookshop-Books.csv index cb3044aa..702375bb 100644 --- a/bookshop/db/data/sap.capire.bookshop-Books.csv +++ b/bookshop/db/data/sap.capire.bookshop-Books.csv @@ -3,4 +3,4 @@ ID;title;descr;author_ID;stock;price;currency_code;genre_ID 207;Jane Eyre;"Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name ""Currer Bell"", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism.";107;11;12.34;GBP;11 251;The Raven;"""The Raven"" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word ""Nevermore"". The poem makes use of folk, mythological, religious, and classical references.";150;333;13.13;USD;16 252;Eleonora;"""Eleonora"" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively ""happy"" ending.";150;555;14;USD;16 -271;Catweazle;Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.;170;22;15;EUR;13 \ No newline at end of file +271;Catweazle;Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.;170;22;150;JPY;13 \ No newline at end of file diff --git a/common/data/sap.common-Currencies_texts.csv b/common/data/sap.common-Currencies_texts.csv index 4d2ead51..4c46cefd 100644 --- a/common/data/sap.common-Currencies_texts.csv +++ b/common/data/sap.common-Currencies_texts.csv @@ -5,9 +5,11 @@ CAD;de;Kanadischer Dollar;Kanadischer Dollar AUD;de;Australischer Dollar;Australischer Dollar GBP;de;Pfund;Britische Pfund ILS;de;Schekel;Israelische Schekel +JPY;de;Yen;Japanische Yen EUR;fr;euro;de la Zone euro USD;fr;dollar;dollar des États-Unis CAD;fr;dollar canadien;dollar canadien AUD;fr;dollar australien;dollar australien GBP;fr;livre sterling;pound sterling -ILS;fr;Shekel;shekel israelien \ No newline at end of file +ILS;fr;Shekel;shekel israelien +JPY;fr;Yen;Yen japonais \ No newline at end of file diff --git a/fiori/app/common.cds b/fiori/app/common.cds index 614f03b3..b609498d 100644 --- a/fiori/app/common.cds +++ b/fiori/app/common.cds @@ -54,7 +54,7 @@ annotate my.Books with { title @title:'{i18n>Title}'; genre @title:'{i18n>Genre}' @Common: { Text: genre.name, TextArrangement: #TextOnly }; author @title:'{i18n>Author}' @Common: { Text: author.name, TextArrangement: #TextOnly }; - price @title:'{i18n>Price}'; + price @title:'{i18n>Price}' @Measures.ISOCurrency: currency_code; stock @title:'{i18n>Stock}'; descr @UI.MultiLineText; } diff --git a/fiori/test/requests.http b/fiori/test/requests.http index badacbfe..d8392583 100644 --- a/fiori/test/requests.http +++ b/fiori/test/requests.http @@ -38,7 +38,11 @@ GET {{bookshop}}/browse/Books(201)? &$select=ID,title,rating &$expand=reviews +### +GET {{bookshop}}/browse/Books? + &$select=title,author&$expand=currency +Accept-Language: de ################################################# # diff --git a/test/localized-data.test.js b/test/localized-data.test.js index bfa3411f..5ba9bd19 100644 --- a/test/localized-data.test.js +++ b/test/localized-data.test.js @@ -43,7 +43,7 @@ describe('Localized Data', () => { { title: 'Jane Eyre', author: 'Charlotte Brontë', currency: { name: 'Pfund' } }, { title: 'The Raven', author: 'Edgar Allen Poe', currency: { name: 'US-Dollar' } }, { title: 'Eleonora', author: 'Edgar Allen Poe', currency: { name: 'US-Dollar' } }, - { title: 'Catweazle', author: 'Richard Carpenter', currency: { name: 'Euro' } }, + { title: 'Catweazle', author: 'Richard Carpenter', currency: { name: 'Yen' } }, ]) }) @@ -85,7 +85,7 @@ describe('Localized Data', () => { { title: 'Jane Eyre', currency: { name: 'British Pound' } }, { title: 'The Raven', currency: { name: 'US Dollar' } }, { title: 'Eleonora', currency: { name: 'US Dollar' } }, - { title: 'Catweazle', currency: { name: 'Euro' } }, + { title: 'Catweazle', currency: { name: 'Yen' } }, ]) }) })