Templates: Add more possibly fields (commented out)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 20 Nov 2012 21:58:10 +0000 (20 22:58 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 20 Nov 2012 22:03:32 +0000 (20 23:03 +0100)
Templates/Def_Simple.def
Templates/default/webshop_descriptions.def

index 2065cb9..7c66773 100644 (file)
     "poet": "The poet",
     "poetdate": "from-to",
 
+    #"arranger": u"<<arranger>>",
+    #"opus": u"<<opus>>",
+    #"instrumentation": u"<<instrumentation>>",
+    #"key": u"<<key>>",
+    #"language": u"<<language>>",
+    #"duration": u"<<duration>>",
+    #"composition_year": u"<<composition_year>>",
+    #"score_information": u"<<score_information>>",
+    #"genre": u"<<genre>>",
+
     "year": "2009",
     "publisher": "Edition Kainhofer, Vienna",
     "editor": "Reinhold Kainhofer",
index 710b9f4..63ef46f 100644 (file)
@@ -1,6 +1,8 @@
 {
-#  "subtitle": u"<< subtitle >>",
-#  "subtitle_en": u"<< subtitle_en |default(subtitle) >>",
+  #"title": u"<< title|replace('\"', "&quot;") >>",
+  #"title_en": u"<< title_en|default(title)|replace('\"', "&quot;") >>",
+  #"subtitle": u"<< subtitle|replace('\"', "&quot;") >> >>",
+  #"subtitle_en": u"<< subtitle_en|default(subtitle)|replace('\"', "&quot;") >>",
 
   "Short_Description_de": u"",
   "Short_Description_en": u"",
   "Description_de": u'''<p></p>''',
   "Description_en": u'''<p></p>''',
   
-#  "instrumentation": u"",
+  #"instrumentation": u"",
 
   "Category": u"",
 
+  #"composer": u"<<composer>>",
+  #"composerdate": u"<<composerdate>>",
+  #"title": u"<<title>",
+  #"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('\"', "&quot;") >>", "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",
   ]
 }