Wiki source code of Books

Version 8.12 by Jip-jan Alunkel on April 10, 16:56

Hide last authors
Jip-jan Alunkel 3.11 1 {{velocity}}
Jip-jan Alunkel 5.2 2 #set($discard = $services.localization.use('document', 'cases.Code.translations'))
3 #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
4 #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
5 #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
Jip-jan Alunkel 3.11 6 {{/velocity}}
Jip-jan Alunkel 3.14 7
Jip-jan Alunkel 1.1 8 All about books
Jip-jan Alunkel 2.2 9
Jip-jan Alunkel 5.2 10 {{include reference="assets.formMaker.macros" /}}
Jip-jan Alunkel 2.2 11
12 {{velocity}}
Jip-jan Alunkel 3.16 13 {{html}}
Jip-jan Alunkel 3.13 14
Jip-jan Alunkel 6.3 15 #createFormStart("homeoworld_form" "book")
Jip-jan Alunkel 3.12 16
Jip-jan Alunkel 6.2 17 #set($booktype = {
18 "id" : "booktype",
Jip-jan Alunkel 2.2 19 "type" : "select",
Jip-jan Alunkel 7.2 20 "required" : "true",
Jip-jan Alunkel 6.2 21 "label" : "Type of book",
Jip-jan Alunkel 8.8 22 "aria-label" : "Select the type of book",
Jip-jan Alunkel 8.3 23 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 2.2 24 "data-set-space" : "true",
Jip-jan Alunkel 8.6 25 "placeholder" : "Type",
Jip-jan Alunkel 6.1 26 "space-reference" : "books",
Jip-jan Alunkel 8.7 27 "help-block" : "Choose the type of book you would like to add."
Jip-jan Alunkel 2.2 28 })
Jip-jan Alunkel 3.13 29
Jip-jan Alunkel 6.2 30 #createFormElement($booktype)
Jip-jan Alunkel 3.13 31
Jip-jan Alunkel 8.2 32 #set($book_title = {
33 "id" : "book_title",
Jip-jan Alunkel 3.9 34 "type" : "text",
Jip-jan Alunkel 7.2 35 "required" : "true",
Jip-jan Alunkel 8.7 36 "label" : "Title of the book",
Jip-jan Alunkel 8.2 37 "aria-label" : "Enter the title of the book",
Jip-jan Alunkel 8.7 38 "placeholder" : "Title",
Jip-jan Alunkel 8.2 39 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 3.9 40 "data-query-type" : "XWQL.matchTitle",
Jip-jan Alunkel 6.1 41 "data-query-scope" : "books",
Jip-jan Alunkel 3.9 42 "data-query-list-type" : "suggest-negate",
Jip-jan Alunkel 8.8 43 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
Jip-jan Alunkel 3.9 44 "data-query-list-contents" : "value",
45 "data-create-page" : "true",
Jip-jan Alunkel 8.8 46 "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 47 })
Jip-jan Alunkel 3.13 48
Jip-jan Alunkel 8.4 49 #createFormElement($book_title)
Jip-jan Alunkel 3.9 50
Jip-jan Alunkel 8.12 51 #set($author = {
52 "id" : "author",
53 "type" : "text",
Jip-jan Alunkel 7.2 54 "required" : "true",
Jip-jan Alunkel 8.12 55 "label" : "Author of the book",
56 "aria-label" : "Enter the author of the book",
57 "placeholder" : "Author",
58 "data-query-type" : "XWQL.matchObject",
59 "data-query-scope" : "books",
60 "data-query-list-type" : "suggest-select",
61 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
62 "data-query-list-contents" : "value",
63 "data-query-list-editable" : "false",
Jip-jan Alunkel 3.24 64 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 65 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 8.12 66 "data-xobj-fieldname" : "author",
67 "help-block" : 'Select the author of this case.'
Jip-jan Alunkel 3.24 68 })
69
Jip-jan Alunkel 8.12 70 #createFormElement($author)
Jip-jan Alunkel 3.24 71
Jip-jan Alunkel 3.27 72 #set($extra_info = {
73 "id" : "extra_info",
74 "type" : "checkbox",
75 "required" : "no",
76 "label" : "Extra information (optional)",
77 "value" : "yes"
78 })
79
80 #createFormElement($extra_info)
81
Jip-jan Alunkel 3.30 82 #createExpandStart("extra_info" "yes")
Jip-jan Alunkel 3.28 83
Jip-jan Alunkel 8.12 84 #set($publish_year = {
85 "id" : "publish_year",
86 "type" : "number",
87 "required" : "true",
88 "label" : "Year of publishing",
89 "aria-label" : "Enter the year of publishing",
90 "placeholder" : "Year",
91 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 3.31 92 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 93 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 8.12 94 "data-xobj-fieldname" : "publish_year"
Jip-jan Alunkel 3.31 95 })
Jip-jan Alunkel 3.29 96
Jip-jan Alunkel 8.12 97 #createFormElement($publish_year)
Jip-jan Alunkel 3.33 98
Jip-jan Alunkel 3.30 99 #createExpandEnd()
Jip-jan Alunkel 3.28 100
Jip-jan Alunkel 3.13 101 #createFormEnd()
102
Jip-jan Alunkel 3.16 103 {{/html}}
Jip-jan Alunkel 2.2 104 {{/velocity}}