Wiki source code of Books

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

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