What was the reasoning for not using JS in the OI for this purpose?
I thought the regular webpage was prefered without it, but it was
assumed JS would be unavoidable in the OI.
Cheers,
--
Andres Jimenez
Lack of JS knowledge on my part and neither intention nor time nor
interest to learn it at this stage.
> I thought the regular webpage was prefered without it, but it was
> assumed JS would be unavoidable in the OI.
Sure. We want JS in the OI. But somebody would need to do it.
Jochen
What is needed?
Andrés
2011/3/13 Jochen Garcke <gcd...@garcke.de>:
> --
> GCD-Tech mailing list - gcd-...@googlegroups.com
> To unsubscribe send email to gcd-tech+u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/gcd-tech
We also need to be careful about how we add it. The correct way to add
JavaScript (based on my experience with another web app over the past three
years, learned the hard way) is to keep the JavaScript in files separate from
the HTML template files. Link in an external .js that initializes things. This
mostly means it should look for HTML elements with particular CSS classes, names
or ids and instantiate JS objects or execute JS functions that are relevant for
those elements.
The key point is that the interface between the HTML and JavaScript should be
the DOM and the CSS. It should *NOT* be scripts embedded in the pages that do
specific things. This can be a bit hard to wrap your head around, but works
beautifully once you get it. Everything else I've ever tried ended up sucking.
A lot.
One important caveat is that you don't want to rely on DOM positioning too much.
It's much better to, for instance, instantiate a JavaScript object that adds
cool list functionality on a div that has the CSS class "list" than it is to
look for the 2nd div on the page, or the div under the div with CSS class X or
whatever.
thanks,
-henry
Henry has ideas how to do searches, filtering and selectiones with JS in
a bigger framework, but I don't know too much about that.
But since that is a bigger project, we might reactivate the django-code
I did for the reprint selection before that to get going on that front.
It might be worth to do some JS routines for that to avoid the workflow
over several URLs. But before I look at the code again (after the issue
variants) I wouldn't know what can/should be done.
Jochen
Am 13.03.2011 12:21, schrieb Andres Jimenez:
> I am no JS expert at all, but I have used it in the past and would
> have no trouble writing a few functions.
>
> What is needed?
>
> Andr�s
Asynchronous queries to a web service? (desired for the long term?)
Long time ago, I used JS to fill select forms (you choose in the first
select, generates the contens of the second one). That was easy and
required nothing special in the server-side.
Andrés
2011/3/13 Jochen Garcke <gcd...@garcke.de>:
> That is a big question :-)
>
> Henry has ideas how to do searches, filtering and selectiones with JS in
> a bigger framework, but I don't know too much about that.
>
> But since that is a bigger project, we might reactivate the django-code
> I did for the reprint selection before that to get going on that front.
> It might be worth to do some JS routines for that to avoid the workflow
> over several URLs. But before I look at the code again (after the issue
> variants) I wouldn't know what can/should be done.
>
> Jochen
>
> Am 13.03.2011 12:21, schrieb Andres Jimenez:
>> I am no JS expert at all, but I have used it in the past and would
>> have no trouble writing a few functions.
>>
>> What is needed?
>>
>> Andrés
>>
>> 2011/3/13 Jochen Garcke <gcd...@garcke.de>:
>>> Am 13.03.2011 12:08, schrieb Andres Jimenez:
>>>> 2011/3/13 Jochen Garcke <gcd...@garcke.de>:
>>>>> But some code for
>>>>> selection will be there when the reprint links - finally - will be
>>>>> introduced to production later this year. It probably won't be nice and
>>>>> fancy (as in no JavaScript), but useable.
>>>>
>>>>
>>>> What was the reasoning for not using JS in the OI for this purpose?
>>>
>>> Lack of JS knowledge on my part and neither intention nor time nor
>>> interest to learn it at this stage.
>>>
>>>> I thought the regular webpage was prefered without it, but it was
>>>> assumed JS would be unavoidable in the OI.
>>>
>>> Sure. We want JS in the OI. But somebody would need to do it.
>>>
>>> Jochen
>>>
>>> --
>>> GCD-Tech mailing list - gcd-...@googlegroups.com
>>> To unsubscribe send email to gcd-tech+u...@googlegroups.com
>>> For more options, visit this group at http://groups.google.com/group/gcd-tech
>>>
>>
>>
>>
>
> --
> GCD-Tech mailing list - gcd-...@googlegroups.com
> To unsubscribe send email to gcd-tech+u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/gcd-tech
>
--
-henry
----- Original Message ----
> From: Jochen Garcke <gcd...@garcke.de>
> To: gcd-...@googlegroups.com
> Sent: Sat, March 12, 2011 5:29:26 PM
> Subject: Re: [gcd-tech] Javascript in OI WAS [gcd-main] Deleted and re-adding
>issues and series
>
> That is a big question :-)
>
> Henry has ideas how to do searches, filtering and selectiones with JS in
> a bigger framework, but I don't know too much about that.
>
> But since that is a bigger project, we might reactivate the django-code
> I did for the reprint selection before that to get going on that front.
> It might be worth to do some JS routines for that to avoid the workflow
> over several URLs. But before I look at the code again (after the issue
> variants) I wouldn't know what can/should be done.
>
> Jochen
>
> Am 13.03.2011 12:21, schrieb Andres Jimenez:
> > I am no JS expert at all, but I have used it in the past and would
> > have no trouble writing a few functions.
> >
> > What is needed?
> >
> > Andrés
2011/3/13 Henry Andrews <andrew...@yahoo.com>:
--
What I did till now was search directly for a series name and issue
number using our normal search routines. From the result list one than
could choose an issue. From that a sequence.
Jochen
> What I did till now was search directly for a series name and issue
> number using our normal search routines. From the result list one than
> could choose an issue. From that a sequence.
Whatever that returns a pair id->name_to_display will work
http://djangosnippets.org/snippets/269/
My concern is that somebody looking for a series called "Superman"
will have too many options to choose from.
I would suggest selecting entities in order
(Contry->Publisher->Series->Issue->Sequence). Using AJAX is not too
complicated. My main concern would be how fast the autocompletion
would happen...
Andrés
2011/3/13 Andres Jimenez <gand...@gmail.com>:
Selecting down a tree Country->Publisher->Series->Issue->Sequence is not
the best option IMHO.
Jochen
Am 13.03.2011 14:29, schrieb Andres Jimenez:
> What if we use this as our first approach to autocomplete?
>
> http://djangosnippets.org/snippets/269/
>
> My concern is that somebody looking for a series called "Superman"
> will have too many options to choose from.
>
> I would suggest selecting entities in order
> (Contry->Publisher->Series->Issue->Sequence). Using AJAX is not too
> complicated. My main concern would be how fast the autocompletion
> would happen...
>
>
> Andr�s
-henry
----- Original Message ----
> From: Jochen Garcke <gcd...@garcke.de>
> To: gcd-...@googlegroups.com
> Sent: Sat, March 12, 2011 8:31:24 PM
> Subject: Re: [gcd-tech] Javascript in OI WAS [gcd-main] Deleted and re-adding
>issues and series
>
> What I was doing, and I think needs to be done, for the selection of
> objects is not autocompletion. Precisely because Superman would give too
> many results and it is difficult to decide which one of the series to take.
> Therefore in the code for the reprint editing, people would enter series
> name and issue number at the same time. Optionally publisher, series
> year. In some way the same info as currently in a reprint link.
> By using both series and issue number the results is already quite
> reduced. But still can be large and we need to show reasonable
> additional information (e.g. publication date).
>
> Selecting down a tree Country->Publisher->Series->Issue->Sequence is not
> the best option IMHO.
>
> Jochen
>
> Am 13.03.2011 14:29, schrieb Andres Jimenez:
> > What if we use this as our first approach to autocomplete?
> >
> > http://djangosnippets.org/snippets/269/
> >
> > My concern is that somebody looking for a series called "Superman"
> > will have too many options to choose from.
> >
> > I would suggest selecting entities in order
> > (Contry->Publisher->Series->Issue->Sequence). Using AJAX is not too
> > complicated. My main concern would be how fast the autocompletion
> > would happen...
> >
> >
> > Andrés
> >
> > 2011/3/13 Andres Jimenez <gand...@gmail.com>:
> >> 2011/3/13 Jochen Garcke <gcd...@garcke.de>:
> >>
> >>> What I did till now was search directly for a series name and issue
> >>> number using our normal search routines. From the result list one than
> >>> could choose an issue. From that a sequence.
> >>
> >> Whatever that returns a pair id->name_to_display will work
> >>
> >> --
> >> Andres Jimenez
> >>
> >> GPG : http://www.andresin.com/gpg/gand...@gmail.com.asc
> >>
> >
> >
> >
>
This way, the JavaScript programmer doesn't need to know anything at all about
the server side, assuming there is good communication with whoever is writing
the server side code and templates.
thanks,
-henry
----- Original Message ----
> From: Andres Jimenez <gand...@gmail.com>
> To: gcd-...@googlegroups.com
Jochen
>>> Andr�s
> Therefore in the code for the reprint editing, people would enter series
> name and issue number at the same time. Optionally publisher, series
> year. In some way the same info as currently in a reprint link.
If we enter different types of data in a search field, we will need to
"teach" our users in which order information needs to be enteres (just
like it is needed with the reprime links).
I still think we need to either base the whole "find-the-object-thing"
in an advanced search (typing a series' name and issue number and show
ALL ocurrences ) or request our indexers to insert each piece of data
in the proper order.
Would be acceptable to show a simpler versión of the advanced search
in a layer? The search's results would show a link to select the found
issue or sequence.
The layer would be displayed after clicking on a link.
Cheers,
This pattern will solve the vast majority of many-to-many relation UI problems
and not require the writing a separate parser for various formats. It can be
done in such a way that if you get an exact match then you can choose as a
search option to automatically select it (kind of like Google's "I'm feeling
lucky" button).
Having implemented something like this before (but not in jQuery), the biggest
pain was getting the search+result list interface to be sufficiently
self-contained that you could have more than one of them on a given interactive
page.
thanks,
-henry
----- Original Message ----
> From: Andres Jimenez <gand...@gmail.com>
> To: "gcd-...@googlegroups.com" <gcd-...@googlegroups.com>
> Cc: Jochen Garcke <gcd...@garcke.de>
> Sent: Sun, April 3, 2011 11:33:03 AM
> Subject: [gcd-tech] Javascript in OI WAS [gcd-main] Deleted and re-adding
>issues and series
>