Wiki source code of Books
Version 9.7 by Jip-jan Alunkel on August 30, 22:01
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
9.1 | 1 | {{include reference="assets.pagemaker.macros"/}} |
![]() |
8.23 | 2 | |
![]() |
3.11 | 3 | {{velocity}} |
![]() |
9.3 | 4 | #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) |
![]() |
9.6 | 5 | #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false})) |
![]() |
9.3 | 6 | #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false})) |
![]() |
8.24 | 7 | |
8 | {{html wiki="true" clean="false"}} | ||
![]() |
8.22 | 9 | <p> |
10 | All about books | ||
11 | </p> | ||
12 | <h2 class="livetable">Overview of all books</h2> | ||
![]() |
9.2 | 13 | <div class="livetable"> |
![]() |
3.13 | 14 | |
![]() |
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 | |||
![]() |
6.3 | 36 | #createFormStart("homeoworld_form" "book") |
![]() |
6.2 | 37 | #set($booktype = { |
38 | "id" : "booktype", | ||
![]() |
2.2 | 39 | "type" : "select", |
![]() |
7.2 | 40 | "required" : "true", |
![]() |
6.2 | 41 | "label" : "Type of book", |
![]() |
8.8 | 42 | "aria-label" : "Select the type of book", |
![]() |
8.18 | 43 | "placeholder" : "Type", |
![]() |
8.3 | 44 | "data-error-response-type" : "use_label_definite_1", |
![]() |
2.2 | 45 | "data-set-space" : "true", |
![]() |
8.28 | 46 | "select-space-reference" : "books", |
![]() |
8.7 | 47 | "help-block" : "Choose the type of book you would like to add." |
![]() |
2.2 | 48 | }) |
![]() |
6.2 | 49 | #createFormElement($booktype) |
![]() |
8.2 | 50 | #set($book_title = { |
51 | "id" : "book_title", | ||
![]() |
3.9 | 52 | "type" : "text", |
![]() |
7.2 | 53 | "required" : "true", |
![]() |
8.7 | 54 | "label" : "Title of the book", |
![]() |
8.2 | 55 | "aria-label" : "Enter the title of the book", |
![]() |
8.7 | 56 | "placeholder" : "Title", |
![]() |
8.2 | 57 | "data-error-response-type" : "use_label_definite_1", |
![]() |
3.9 | 58 | "data-query-type" : "XWQL.matchTitle", |
![]() |
8.29 | 59 | "data-query-scope" : "books", |
![]() |
3.9 | 60 | "data-query-list-type" : "suggest-negate", |
![]() |
8.8 | 61 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", |
![]() |
3.9 | 62 | "data-query-list-contents" : "value", |
63 | "data-create-page" : "true", | ||
![]() |
8.8 | 64 | "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' |
![]() |
3.9 | 65 | }) |
![]() |
8.4 | 66 | #createFormElement($book_title) |
![]() |
8.12 | 67 | #set($author = { |
68 | "id" : "author", | ||
69 | "type" : "text", | ||
![]() |
7.2 | 70 | "required" : "true", |
![]() |
8.12 | 71 | "label" : "Author of the book", |
72 | "aria-label" : "Enter the author of the book", | ||
73 | "placeholder" : "Author", | ||
![]() |
8.19 | 74 | "data-error-response-type" : "use_label_definite_1", |
![]() |
8.12 | 75 | "data-query-type" : "XWQL.matchObject", |
76 | "data-query-scope" : "books", | ||
77 | "data-query-list-type" : "suggest-select", | ||
78 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", | ||
79 | "data-query-list-contents" : "value", | ||
![]() |
8.21 | 80 | "data-query-list-editable" : "true", |
![]() |
3.24 | 81 | "data-create-xobj" : "true", |
![]() |
6.1 | 82 | "data-xobj-classname" : "books.WebHome", |
![]() |
8.12 | 83 | "data-xobj-fieldname" : "author", |
84 | "help-block" : 'Select the author of this case.' | ||
![]() |
3.24 | 85 | }) |
![]() |
8.12 | 86 | #createFormElement($author) |
![]() |
8.30 | 87 | #set($extra_info = { |
88 | "id" : "extra_info", | ||
89 | "type" : "checkbox", | ||
90 | "required" : "no", | ||
91 | "label" : "Extra information (optional)", | ||
![]() |
9.4 | 92 | "value" : "yes", |
93 | "data-opener" : "true" | ||
![]() |
8.30 | 94 | }) |
95 | #createFormElement($extra_info) | ||
![]() |
9.7 | 96 | #createExpandStart($extra_info "1") |
![]() |
9.6 | 97 | #set($publish_year = { |
98 | "id" : "publish_year", | ||
99 | "type" : "number", | ||
100 | "required" : "false", | ||
101 | "label" : "Year of publishing", | ||
102 | "aria-label" : "Enter the year of publishing", | ||
103 | "placeholder" : "Year", | ||
104 | "data-error-response-type" : "use_label_definite_1", | ||
105 | "data-create-xobj" : "true", | ||
106 | "data-xobj-classname" : "books.WebHome", | ||
107 | "data-xobj-fieldname" : "publish_year" | ||
108 | }) | ||
109 | #createFormElement($publish_year) | ||
![]() |
3.30 | 110 | #createExpandEnd() |
![]() |
8.20 | 111 | #set($submit = { |
112 | "id" : "create_book", | ||
113 | "button-text" : "Create book", | ||
114 | "help-block" : "" | ||
115 | }) | ||
116 | #createSubmit($submit) | ||
![]() |
3.13 | 117 | #createFormEnd() |
118 | |||
![]() |
3.16 | 119 | {{/html}} |
![]() |
2.2 | 120 | {{/velocity}} |