Changes for page Books

Last modified by Jip-jan Alunkel on November 23, 10:59

From version 8.22
edited by Jip-jan Alunkel
on April 11, 23:52
Change comment: Updated class property
To version 8.4
edited by Jip-jan Alunkel
on April 09, 19:45
Change comment: Added class property

Summary

Details

Page properties
Content
... ... @@ -5,38 +5,13 @@
5 5  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
6 6  {{/velocity}}
7 7  
8 +All about books
8 8  
9 9  {{include reference="assets.formMaker.macros" /}}
10 10  
11 11  {{velocity}}
12 12  {{html}}
13 -<p>
14 -All about books
15 -</p>
16 -<h2 class="livetable">Overview of all books</h2>
17 -<div id="livetable">
18 18  
19 -#set ($columns = ["doc.title", "author", "doc.space"])
20 -#set ($columnsProperties = {
21 - "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
22 - "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4},
23 - "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"}
24 -})
25 -#set ($options = {
26 - "className" : "books.WebHome",
27 - "translationPrefix" : "books.livetable.",
28 - "queryFilters" : "currentlanguage",
29 - "rowCount": 10
30 -})
31 -#livetable("books" $columns $columnsProperties $options)
32 -
33 -</div>
34 -<h3>Add a book to this wiki</h3>
35 -<p>
36 - Do you know of any books that can be of value to people who would like to learn more about homeopathy?
37 - Please feel free to share these books with our readers. However, to make sure your case is correctly filed in this wiki it is necessary that you answer a few simple questions about the case.
38 -</p>
39 -
40 40  #createFormStart("homeoworld_form" "book")
41 41  
42 42  #set($booktype = {
... ... @@ -44,12 +44,12 @@
44 44   "type" : "select",
45 45   "required" : "true",
46 46   "label" : "Type of book",
47 - "aria-label" : "Select the type of book",
48 - "placeholder" : "Type",
22 + "aria-label" : "Select the locality",
49 49   "data-error-response-type" : "use_label_definite_1",
50 50   "data-set-space" : "true",
25 + "placeholder" : "$services.localization.render('cases.word.locality_select.placeholder')",
51 51   "space-reference" : "books",
52 - "help-block" : "Choose the type of book you would like to add."
27 + "help-block" : "Choose the type of book you would like to enter."
53 53  })
54 54  
55 55  #createFormElement($booktype)
... ... @@ -58,58 +58,41 @@
58 58   "id" : "book_title",
59 59   "type" : "text",
60 60   "required" : "true",
61 - "label" : "Title of the book",
36 + "label" : "Title",
62 62   "aria-label" : "Enter the title of the book",
63 - "placeholder" : "Title",
38 + "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
64 64   "data-error-response-type" : "use_label_definite_1",
65 65   "data-query-type" : "XWQL.matchTitle",
66 66   "data-query-scope" : "books",
67 67   "data-query-list-type" : "suggest-negate",
68 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
43 + "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_negate_list')",
69 69   "data-query-list-contents" : "value",
70 70   "data-create-page" : "true",
71 - "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
46 + "help-block" : 'Please be as concise as possible when you describe the main complaint. For example:<br />"chronic headache with bowel complaints,"<br />"intermittend fever" or<br />"diarrhea."'
72 72  })
73 73  
74 74  #createFormElement($book_title)
75 75  
76 -#set($author = {
77 - "id" : "author",
51 +#set($remedy = {
52 + "id" : "remedy",
78 78   "type" : "text",
79 79   "required" : "true",
80 - "label" : "Author of the book",
81 - "aria-label" : "Enter the author of the book",
82 - "placeholder" : "Author",
55 + "label" : "Remedy",
56 + "aria-label" : "Choose the remedy",
57 + "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
83 83   "data-error-response-type" : "use_label_definite_1",
84 - "data-query-type" : "XWQL.matchObject",
85 - "data-query-scope" : "books",
59 + "data-query-type" : "JSON.remedies",
86 86   "data-query-list-type" : "suggest-select",
87 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
88 - "data-query-list-contents" : "value",
89 - "data-query-list-editable" : "true",
61 + "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
62 + "data-query-list-contents" : "value/key",
90 90   "data-create-xobj" : "true",
91 91   "data-xobj-classname" : "books.WebHome",
92 - "data-xobj-fieldname" : "author",
93 - "help-block" : 'Select the author of this case.'
65 + "data-xobj-fieldname" : "remedy",
66 + "help-block" : 'Select the remedy that is central in this case.'
94 94  })
95 95  
96 -#createFormElement($author)
69 +#createFormElement($remedy)
97 97  
98 -#set($publish_year = {
99 - "id" : "publish_year",
100 - "type" : "number",
101 - "required" : "true",
102 - "label" : "Year of publishing",
103 - "aria-label" : "Enter the year of publishing",
104 - "placeholder" : "Year",
105 - "data-error-response-type" : "use_label_definite_1",
106 - "data-create-xobj" : "true",
107 - "data-xobj-classname" : "books.WebHome",
108 - "data-xobj-fieldname" : "publish_year"
109 -})
110 -
111 -#createFormElement($publish_year)
112 -
113 113  #set($extra_info = {
114 114   "id" : "extra_info",
115 115   "type" : "checkbox",
... ... @@ -122,15 +122,28 @@
122 122  
123 123  #createExpandStart("extra_info" "yes")
124 124  
125 -#createExpandEnd()
126 -
127 -#set($submit = {
128 - "id" : "create_book",
129 - "button-text" : "Create book",
130 - "help-block" : ""
83 +#set($author = {
84 + "id" : "author",
85 + "type" : "text",
86 + "required" : "false",
87 + "label" : "Author",
88 + "aria-label" : "Enter the author name",
89 + "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
90 + "data-query-type" : "XWQL.matchObject",
91 + "data-query-scope" : "books",
92 + "data-query-list-type" : "suggest-select",
93 + "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
94 + "data-query-list-contents" : "value",
95 + "data-create-xobj" : "true",
96 + "data-xobj-classname" : "books.WebHome",
97 + "data-xobj-fieldname" : "author",
98 + "help-block" : 'Select the author of this case.'
131 131  })
132 -#createSubmit($submit)
133 133  
101 +#createFormElement($author)
102 +
103 +#createExpandEnd()
104 +
134 134  #createFormEnd()
135 135  
136 136  {{/html}}
author
Use Suggest
... ... @@ -1,1 +1,0 @@
1 -1
remedy
Number
... ... @@ -1,0 +1,1 @@
1 +3
Size
... ... @@ -1,0 +1,1 @@
1 +30
Pretty Name
... ... @@ -1,0 +1,1 @@
1 +remedy
Name
... ... @@ -1,0 +1,1 @@
1 +remedy
title
Number
... ... @@ -1,0 +1,1 @@
1 +1
Size
... ... @@ -1,0 +1,1 @@
1 +30
Pretty Name
... ... @@ -1,0 +1,1 @@
1 +title
Name
... ... @@ -1,0 +1,1 @@
1 +title
Use Suggest
... ... @@ -1,0 +1,1 @@
1 +1
type
Number
... ... @@ -1,0 +1,1 @@
1 +2
Size
... ... @@ -1,0 +1,1 @@
1 +30
Pretty Name
... ... @@ -1,0 +1,1 @@
1 +type
Name
... ... @@ -1,0 +1,1 @@
1 +type
Use Suggest
... ... @@ -1,0 +1,1 @@
1 +1
publish_year
Number
... ... @@ -1,1 +1,0 @@
1 -2
Number Type
... ... @@ -1,1 +1,0 @@
1 -long
Size
... ... @@ -1,1 +1,0 @@
1 -30
Pretty Name
... ... @@ -1,1 +1,0 @@
1 -publish_year
Name
... ... @@ -1,1 +1,0 @@
1 -publish_year