Index: openacs-4/packages/assessment/www/doc/display_types.html
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/doc/display_types.html,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/assessment/www/doc/display_types.html 13 Jun 2004 23:20:44 -0000 1.1
+++ openacs-4/packages/assessment/www/doc/display_types.html 21 Jul 2004 09:20:38 -0000 1.2
@@ -33,32 +33,37 @@
Each item_display_type has a couple of attributes in common.
- - item_display_type_id
+
- item_display_type_id
+ - item_type_name - name like "Select box, aligned right", stored in
+the name field of CR.
- - item_type_name - name like "Select box, aligned right"
-
- presentation_type - the type of "widget" displayed when the
Item is output in html. There are many types we should support beyond
-the stock html types.
+the stock html types. We are talking ACS
+Templating widgets here.
- item_answer_alignment - the orientation between the
"question part" of the Item (the item_text/item_subtext) and the
"answer part" -- the native Item widget (eg the textbox) or the 1..n
choices. Alternatives accommodate L->R and R->L alphabets (or is
this handled automagically be Internationalization?) and include:
- - beside_left - the "answers" are left of the "question"
-
- - beside_right - the "answers" are right of the "question"
-
- - below - the "answers" are below the "question"
-
- - above - the "answers" are above the "question"
-
+ - beside_left - the "answers" are left of the "question"
+ - beside_right - the "answers" are right of the "question"
+ - below - the "answers" are below the "question"
+ - above - the "answers" are above the "question"
- html_display_options - field to specify other stuff like
-textarea dimensions ("rows=10 cols=50" eg)
+textarea dimensions ("rows=10 cols=50" eg)
+ - as_item_default -
+optional field that sets what the as_item will
+display when first output (eg text in a textbox; eg the defaults that
+ad_dateentrywidget expects: "" for "no date", "0" for "today", or else
+some specific date set by the author; see
+this example)
Depending on the presentation_types additonal
@@ -74,15 +79,13 @@
textbox - single-line typed entry
- abs_size - An abstraction of the real size value in
-"small","medium","large". Up to the developer how this translates.
-
+"small","medium","large". Up to the developer how this translates.
text area - multiple-line typed entry
- abs_size - An abstraction of the real size value in
-"small","medium","large". Up to the developer how this translates.
-
+"small","medium","large". Up to the developer how this translates.
radiobutton - single-choice multiple-option
@@ -97,61 +100,57 @@
relative to the Item label by the item_alignment option (discussed
below).
- - horizontal - all Choices are in one line
-
- - vertical - all Choices are in one column
-
+ - horizontal - all Choices are in one line
+ - vertical - all Choices are in one column
- matrix_col-row - Choices are laid out in matrix, filling
-first col then row
-
+first col then row
matrix_row-col -Choices are laid out in matrix, filling
-first row then col
-
+first row then col
- Button type - type of button to use
-
+ Button type - type of button to use
+ sort_order: Numerical, alphabetic, randomized or
+by order of entry.
checkbox - multiple-choice multiple-option
- - choice_orientation (see above)
-
+ - choice_orientation (see above)
+ - allow_multiple_p - Is it allow to select multiple values ?
+ - sort_order: Numerical, alphabetic, randomized or
+by order of entry.
- select - single-choice multiple-option displayed in "popup menu"
-
+ select - multiple-option displayed in "popup menu"
+
+ - sort_order: Numerical, alphabetic, randomized or
+by order of entry.
+ - allow_multiple_p - Is
+it allow to select multiple values ?
+
multiple-choice-other: Consider, for instance, a combo box
that consists of a radiobutton plus a textbox -- used for instance when
you need a check "other" and then fill in what that "other" datum is.
In effect this is a single Item but it has two different forms: a
radiobutton and a textbox.
- - other_size: size of the other text field.
-
- - other_label: label (instead of "other").
-
+ - other_size: size of the other text field.
+ - other_label: label (instead of "other").
- display_type: What display type should be used for the
-multiple-choice-part ?
-
+multiple-choice-part ?
pop-up_date - a widget with month-day-year select elements
that resets the day element based on year and month (ie include Feb 29
-during leap years -- via Javascript) and tests for valid dates
-
+during leap years -- via Javascript) and tests for valid dates
typed_date - similar to pop-up_date but month-day-year
elements are textboxes for all-keyboard entry; needs no resetting
-scripts but does need date validity check
-
+scripts but does need date validity check
image_map - requires a linked image; the image map coordinates
-are handled as Item Choices
-
+are handled as Item Choices
file_upload - present a File box (browse button, file_name
-textbox, and submit button together) so user can upload a file
-
- many more
-
+textbox, and submit button together) so user can upload a file
+ many more
In addition, there are some potential presentation_types that actually
@@ -164,25 +163,20 @@
worse"). Is this one Item with multiple Item Choices? Actually, not,
since each alternative has a value that must be separately stored (the
tester would want to know that the testee ranked GWB last, for
-instance).
-
-
...
-
+instance).
+ ...
Section display
A section can be seen as a form with all the
items within this section making up the form. Depending on the type of
assessment we are talking about, the section can be displayed in
various ways (examples):
- - Normal survey view, with a description on top.
-
+ - Normal survey view, with a description on top.
- Test view, which has certain restrictions on the display (e.g.
-not allowed to use the back button)
-
+not allowed to use the back button)
- Portlet view, only displaying the items of the section with a
-submit button
-
+submit button
Additionally each section has certain parameters that
determine the look and feel of the section itself. Luckily it is not