From cb30d1dc9479a470893dbce7356aafc955551d07 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 20 Nov 2012 22:58:10 +0100 Subject: [PATCH] Templates: Add more possibly fields (commented out) --- Templates/Def_Simple.def | 10 ++++++++ Templates/default/webshop_descriptions.def | 40 ++++++++++++++++++++++++------ 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/Templates/Def_Simple.def b/Templates/Def_Simple.def index 2065cb9..7c66773 100644 --- a/Templates/Def_Simple.def +++ b/Templates/Def_Simple.def @@ -12,6 +12,16 @@ "poet": "The poet", "poetdate": "from-to", + #"arranger": u"<>", + #"opus": u"<>", + #"instrumentation": u"<>", + #"key": u"<>", + #"language": u"<>", + #"duration": u"<>", + #"composition_year": u"<>", + #"score_information": u"<>", + #"genre": u"<>", + "year": "2009", "publisher": "Edition Kainhofer, Vienna", "editor": "Reinhold Kainhofer", diff --git a/Templates/default/webshop_descriptions.def b/Templates/default/webshop_descriptions.def index 710b9f4..63ef46f 100644 --- a/Templates/default/webshop_descriptions.def +++ b/Templates/default/webshop_descriptions.def @@ -1,6 +1,8 @@ { -# "subtitle": u"<< subtitle >>", -# "subtitle_en": u"<< subtitle_en |default(subtitle) >>", + #"title": u"<< title|replace('\"', """) >>", + #"title_en": u"<< title_en|default(title)|replace('\"', """) >>", + #"subtitle": u"<< subtitle|replace('\"', """) >> >>", + #"subtitle_en": u"<< subtitle_en|default(subtitle)|replace('\"', """) >>", "Short_Description_de": u"", "Short_Description_en": u"", @@ -8,23 +10,45 @@ "Description_de": u'''

''', "Description_en": u'''

''', -# "instrumentation": u"", + #"instrumentation": u"", "Category": u"", + #"composer": u"<>", + #"composerdate": u"<>", + #"title": u"<", + #"subtitle": u"<<subtitle>", + #"opus": u"<<opus>>", + #"arranger": u"<<arranger>>", + #"arrangerdate": u"<<arrangerdate>>", + #"poet": u"<<poet>>", + #"poetdate": u"<<poetdate>>", + #"instrumentation": u"<<instrumentation>>", + #"key": u"<<key>>", + #"editor": u"<<editor>>", + #"publisher": u"<<publisher>>", + #"language": u"<<language>>", + #"duration": u"<<duration>>", + #"composition_year": u"<<composition_year>>", + #"score_information": u"<<score_information>>", + #"genre": u"<<genre>>", + #"published": "Y", + #"price": 100.00, + #"currency": "EUR", + "Child_Products": [ -# {"sku": "...", "ismn": "...", "type": "Overrides SCORETYPE", "type_en": "English TYPE", "comment": "COMMENT to be displayed", "price": "..."}, + # {"sku": "...", "ismn": "...", "type": "Overrides SCORETYPE", "type_en": "English TYPE", "comment": "COMMENT to be displayed", "price": "..."}, <$- for e in webshop_editions $> - {"sku": u"<< e.sku >>", "ismn": u"<<e.ismn>>", "comment": u"<<e.comment>>", "price": <<e.price|default(0.00)>>}, # << e.type >> + {"sku": u"<< e.sku >>", "ismn": u"<<e.ismn>>", "comment": u"<<e.comment|replace('\"', """) >>", "price": <<e.price|default(0.00)>>}, # << e.type >> <$- endfor $> ], "Productimages": [ -# "FILENAME.png", + # "FILENAME.png", ], "Downloadfiles": [ -# {"filename": u"out/INFILENAME.pdf", "outname": u"OUTFILENAME.pdf", "title": u"COMPOSER: WORK, DISPLAYED DOWNLOADTITLE", "desc": u"..."}, -# "out/FILENAME.pdf", + # {"filename": u"out/INFILENAME.pdf", "outname": u"OUTFILENAME.pdf", "title": u"COMPOSER: WORK, DISPLAYED DOWNLOADTITLE", "desc": u"..."}, + # "out/FILENAME.pdf", ] } -- 2.11.4.GIT