Hi Anca,
On Thu, Oct 15, 2009 at 9:07 PM, Anca Luca<ancapaula.luca(a)xwiki.com> wrote:
Hi Guillaume,
Guillaume Lerouge wrote:
Hi Anca,
On Wed, Oct 14, 2009 at 10:03 PM, Anca Luca<ancapaula.luca(a)xwiki.com
wrote:
> Hello devs,
>
> The current state of the annotation feature in the sandbox can be
described
> by
> the following:
> * there is a single type of annotation which can be added, using a
specific
> javascript client backed by a rest service.
Such an annotation contains
an
> annotation text, the annotated content and
its position and this type is
> highly
> coupled in the plugin implementation
> * the backing annotation storage is based on components, currently with
an
> XWiki
> objects implementation but a different service can be easily created
(there
> is
> one implemented for Scribo annotations stored in RDF)
> * for the moment, only xwiki documents and feed entries fetched by the
> feedreader plugin can be used as targets for annotations (the annotated
> documents), with the restriction that the content of the document is
*not*
> generated using scripting. A component can be
implemented for a new type
of
> document but the current UI (the javascript
client) is *specific to
xwiki
> documents*
> * the javascript client (UI) is only in the state of a prototype: while
> proving
> that it works, it is not robust enough and the user experience is poor
> * annotation creation algorithm seems to perform well in practice, but
we
> should
> put it to more real-world test (by releasing).
>
> Some *requirements* in terms of functionality, in order to make this an
> extensible and flexible feature, would be to:
> * be able to have different types of annotations (one to be able to
easily
> specify fields for the annotations to add),
with storage as xwiki
objects.
> This
> needs to be flexible at all levels: UI and storage backend, preferably
> using
> xwiki scripting (no jars on the server side, or java coding) so that it
can
> be
> easily customized. Also, the annotation UI should be thought of as easy
to
customize
and create whatever forms and actions in a light manner.
I'm not sure I understand this one well. What exactly do you mean by
"different types of annotations"? From what I understand right now, this
means the following:
1. I select text and choose to annotate it
2. I select custom properties for my annotation (let's say additional
"city"& "country" fields)
3. I fill in those fields and save the annotation
4. My annotation is saved with those custom fields
If this is correct, I'm a bit afraid this will bring un-needed complexity
both to the UI and the backend implementation. From what I understood so
far
it looks a bit like having the XClass editor each
time ones creates a new
annotation -> isn't that overkill?
An alternative solution I was thinking about was to use only 1 field with
a
semantic syntax& autosuggest (something
like: @city:Paris
@country:France).
Is that a possible option? Or maybe it
doesn't make sense in the context
or
your work?
Yet another option would be to offer a number of already configured types
to
select from in a list when adding a new
annotation.
Not exactly.
The idea was that an admin or a wiki programmer could configure the
annotation
application (such as setting an XWiki class as the annotation type) and
then
whenever a user adds an annotation, he will get, in the annotation
"bubble", a
form to edit an object from that class. Right now, to do that, you'd need
to
write a few java components& rewrite the js client. The idea is to have
that
easily configurable, "scriptable" from the wiki.
Ok, thanks for the clarification :-)
Sounds good to me since it's not too complex for users but at the same time
addresses Scribo's needs (if I understood those correctly).