Wiki source code of Books

Version 9.16 by Jip-jan Alunkel on August 31, 02:07

Hide last authors
Jip-jan Alunkel 9.1 1 {{include reference="assets.pagemaker.macros"/}}
Jip-jan Alunkel 8.23 2
Jip-jan Alunkel 3.11 3 {{velocity}}
Jip-jan Alunkel 9.3 4 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
Jip-jan Alunkel 9.6 5 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false}))
Jip-jan Alunkel 9.3 6 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false}))
Jip-jan Alunkel 8.24 7
8 {{html wiki="true" clean="false"}}
Jip-jan Alunkel 8.22 9 <p>
10 All about books
11 </p>
12 <h2 class="livetable">Overview of all books</h2>
Jip-jan Alunkel 9.2 13 <div class="livetable">
Jip-jan Alunkel 3.13 14
Jip-jan Alunkel 8.22 15 #set ($columns = ["doc.title", "author", "doc.space"])
16 #set ($columnsProperties = {
17 "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
18 "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4},
19 "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"}
20 })
21 #set ($options = {
22 "className" : "books.WebHome",
23 "translationPrefix" : "books.livetable.",
24 "queryFilters" : "currentlanguage",
25 "rowCount": 10
26 })
27 #livetable("books" $columns $columnsProperties $options)
28
29 </div>
30 <h3>Add a book to this wiki</h3>
31 <p>
32 Do you know of any books that can be of value to people who would like to learn more about homeopathy?
33 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.
34 </p>
35
Jip-jan Alunkel 9.16 36 #set($form_start = {
37 "id": "homeoworld_form",
38 "product": "book",
39 "method": "post",
40 "url": "",
41 "use_captcha": "false"
42 })
43 #createFormStart($form_start)
Jip-jan Alunkel 6.2 44 #set($booktype = {
45 "id" : "booktype",
Jip-jan Alunkel 2.2 46 "type" : "select",
Jip-jan Alunkel 7.2 47 "required" : "true",
Jip-jan Alunkel 6.2 48 "label" : "Type of book",
Jip-jan Alunkel 8.8 49 "aria-label" : "Select the type of book",
Jip-jan Alunkel 8.18 50 "placeholder" : "Type",
Jip-jan Alunkel 8.3 51 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 2.2 52 "data-set-space" : "true",
Jip-jan Alunkel 8.28 53 "select-space-reference" : "books",
Jip-jan Alunkel 8.7 54 "help-block" : "Choose the type of book you would like to add."
Jip-jan Alunkel 2.2 55 })
Jip-jan Alunkel 6.2 56 #createFormElement($booktype)
Jip-jan Alunkel 8.2 57 #set($book_title = {
58 "id" : "book_title",
Jip-jan Alunkel 3.9 59 "type" : "text",
Jip-jan Alunkel 7.2 60 "required" : "true",
Jip-jan Alunkel 8.7 61 "label" : "Title of the book",
Jip-jan Alunkel 8.2 62 "aria-label" : "Enter the title of the book",
Jip-jan Alunkel 8.7 63 "placeholder" : "Title",
Jip-jan Alunkel 8.2 64 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 3.9 65 "data-query-type" : "XWQL.matchTitle",
Jip-jan Alunkel 8.29 66 "data-query-scope" : "books",
Jip-jan Alunkel 3.9 67 "data-query-list-type" : "suggest-negate",
Jip-jan Alunkel 8.8 68 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
Jip-jan Alunkel 3.9 69 "data-query-list-contents" : "value",
70 "data-create-page" : "true",
Jip-jan Alunkel 8.8 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.'
Jip-jan Alunkel 3.9 72 })
Jip-jan Alunkel 8.4 73 #createFormElement($book_title)
Jip-jan Alunkel 8.12 74 #set($author = {
75 "id" : "author",
76 "type" : "text",
Jip-jan Alunkel 7.2 77 "required" : "true",
Jip-jan Alunkel 8.12 78 "label" : "Author of the book",
79 "aria-label" : "Enter the author of the book",
Jip-jan Alunkel 9.14 80 "data-default-value": "",
Jip-jan Alunkel 9.9 81 "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
82 "data-auto-first-capital" : "true",
Jip-jan Alunkel 9.15 83 "data-query-type" : "XWQL",
Jip-jan Alunkel 9.9 84 "data-query-reference" : "assets.pagemaker.XWQL.matchObject",
Jip-jan Alunkel 9.10 85 "data-query-scope" : "",
Jip-jan Alunkel 8.12 86 "data-query-list-type" : "suggest-select",
Jip-jan Alunkel 9.9 87 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
Jip-jan Alunkel 8.12 88 "data-query-list-contents" : "value",
Jip-jan Alunkel 8.21 89 "data-query-list-editable" : "true",
Jip-jan Alunkel 3.24 90 "data-create-xobj" : "true",
Jip-jan Alunkel 9.9 91 "data-xobj-classname" : "assets.pagemaker.classes.persons",
Jip-jan Alunkel 9.10 92 "data-xobj-fieldname" : "name",
Jip-jan Alunkel 9.9 93 "data-modal-input" : ["$services.localization.render('global.word.lastname')", "$services.localization.render('global.word.firstname')"],
94 "data-modal-input-glue": ", ",
95 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 9.13 96 "help-block" : 'Enter the last name of the author of this case. Choose the author from the list or create a new author.'
Jip-jan Alunkel 3.24 97 })
Jip-jan Alunkel 8.12 98 #createFormElement($author)
Jip-jan Alunkel 8.30 99 #set($extra_info = {
100 "id" : "extra_info",
101 "type" : "checkbox",
102 "required" : "no",
103 "label" : "Extra information (optional)",
Jip-jan Alunkel 9.8 104 "value" : "1",
Jip-jan Alunkel 9.4 105 "data-opener" : "true"
Jip-jan Alunkel 8.30 106 })
107 #createFormElement($extra_info)
Jip-jan Alunkel 9.7 108 #createExpandStart($extra_info "1")
Jip-jan Alunkel 9.6 109 #set($publish_year = {
110 "id" : "publish_year",
111 "type" : "number",
112 "required" : "false",
113 "label" : "Year of publishing",
114 "aria-label" : "Enter the year of publishing",
115 "placeholder" : "Year",
116 "data-error-response-type" : "use_label_definite_1",
117 "data-create-xobj" : "true",
118 "data-xobj-classname" : "books.WebHome",
119 "data-xobj-fieldname" : "publish_year"
120 })
121 #createFormElement($publish_year)
Jip-jan Alunkel 3.30 122 #createExpandEnd()
Jip-jan Alunkel 8.20 123 #set($submit = {
124 "id" : "create_book",
125 "button-text" : "Create book",
126 "help-block" : ""
127 })
128 #createSubmit($submit)
Jip-jan Alunkel 9.16 129 #set($form_end = {
130 "use_captcha": "false"
131 })
132 #createFormEnd($form_end)
Jip-jan Alunkel 3.13 133
Jip-jan Alunkel 3.16 134 {{/html}}
Jip-jan Alunkel 2.2 135 {{/velocity}}