• last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
use glyph icon in bootstrap mode instead of gif image in form info messages

  1. … 2 more files in changeset.
extended form-fields autocorrection handling

- added functionality of per-form-field statistics

- added support for "radio"/single choice test items

- added support for richtext handling in "radio"

- added a (limited) method to set a form-field to a correct value, based on "correct_when".

So far, just a minimal set of predicated is handled

- improved "unknown" handling, when the code does not know, whether item is correct or not

- refactored some code

- improved source code documentation

Check for answer being not-empty instead of being true

make method "is_disabled" more robust (accepting truth values in different formats)

- New option for all form_fields: "disabled_as_div" to render disabled input fields as div.

This has the advantage that con can provide with little effort highlighting in such fields.

- New conveniance method "is_disabled" to avoid repetitious cose

- Additional correct_when predicate: "contains".

Correct, when answer contains any of the provided words.

- added instance variable parent_field (when create_components is used).

This eases the upwards traversal for compound form fields.

- simplify usage of shuffling since it makes configuration via

form-constraints easier. we use now one field "shuffle_kind"

instead of the tow fields before.

  1. … 1 more file in changeset.
change order of class definition: move CompoundField to the front to let other fields depend on it

    • -1078
    • +1079
    ./form-field-procs.tcl
- new abstract form-field class: ShuffleField

* provide means for shuffling options and answers

* three shuffle modes:

- no-shuffling (parameter shuffle false)

- shuffling on every call

- shuffling for a seed (depending on an ID, always the same shuffling)

- new form-field class text_fields, based on ShuffleField

similar to checkbox, but with text fields

and autocorrection via "correct_when"

- support for richtext in checkbox labels

- factored out set_feedback (was previously inline in xowf)

- bump version number to 5.10.0d41

  1. … 1 more file in changeset.
factor out loop invariants

added validator for "correct_when" form field types

prefer variable names over method calls

strip white space

allow empty correct_when specifications

provide new form-field "correct_when" for conveniant user interaction

the form-field type is currently just a text field with a tailored

help text, but can be extended in the future via pull-downs etc.

  1. … 2 more files in changeset.
prefer resolver variables over method calls.

remove fallback to obsolete version of ckeditor and bail out instead

remove debug output

The xowikiimage plugin requires "standard-all". Currently, the CKeditor CDN seems to have troubles. If this pe3rsists, we have to switch per-default to "standard", and drop the plugin for the time being, or rewrite it.

CKeditor has on its CDN just "standard", "basic" and "full". Default now to "standard" instead of "standard-all"

improve comments

  1. … 1 more file in changeset.
fix bug: never update references in the search renderer

before, it was possible that the search renderer added some

unsresolved references, although these were already fixed.

This was caused by the asynchrnous search queue, which

might have inserted such values.

The interface of Page.render was extended to be able to

specify, that the references should be always updated in the DB,

or just when unresolved references are encountered, or

never.

  1. … 3 more files in changeset.
  1. … 4 more files in changeset.
improve input validaton on query variables

  1. … 7 more files in changeset.
whitespace changes

  1. … 3 more files in changeset.
fixes for links to folders of different package instances:

- when resolve_local is used, fetch the correct index page, when target folder has an index page defined

- when resolve_local is used, avoid potential resolving loop

various code improvements:

- improve comments

- use better variable names

- remove dead code

- Package.lookup: make it am ad_instproc and make clear, it returns an integer

  1. … 2 more files in changeset.
Bring back old default behavior of using Gravatar as a fallback, but allow to disable it, reuse existing Gravatar code

  1. … 1 more file in changeset.
Rely on portrait-bits, that already provides a default image in case (many thanks to Monika Andergassen)

remove commented-out code

improve spelling

  1. … 6 more files in changeset.
prefer "nsf::is object" over ":isobject" or "info commands", since it is faster, more generic and can be used in all contexts

  1. … 3 more files in changeset.