[prev in list] [next in list] [prev in thread] [next in thread]
List: opensolaris-opengrok-discuss
Subject: Re: [opengrok] Export results to CSV
From: Lubos Kosco <Lubos.Kosco () Oracle ! COM>
Date: 2012-01-24 12:22:40
Message-ID: 4F1EA290.3010000 () Oracle ! COM
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Well my idea was that you wget the search result page from the server
and use THAT as xslt input :)
I don't think any changes to search.jsp are necessary, unless we broke
the xhtml validity ... (I didn't test it since 0.10 went out, which is
certainly a long time)
hmm?
L
On 24.1.2012 13:12, Alexandre Simundi da Silva wrote:
> Hi Lads,
>
> Back to export result to CSV. I was doing some tests and I've changed
> some pages to generate the CSV and Excel.
>
> But (there is always a "but") the summary part is quite messy.
>
> Regards the xslt, the idea is parse the whole search.jsp and decorate
> it? Or you have a different view?
>
> Thanks again,
> Alex
>
> On 18 January 2012 04:44, Jens Elkner
> <jel+opengrok@cs.uni-magdeburg.de
> <mailto:jel%2Bopengrok@cs.uni-magdeburg.de>> wrote:
>
> On Wed, Jan 18, 2012 at 12:37:48AM +0100, Lubos Kosco wrote:
> > On 17.1.2012 23:42, Jens Elkner wrote:
> > >On Tue, Jan 17, 2012 at 08:58:09AM +0100, Knut Anders Hatlen wrote:
> > >>Lubos Kosco<Lubos.Kosco@oracle.com
> <mailto:Lubos.Kosco@oracle.com>> writes:
> > >>
> > >>>agreed
> > >>>I think I added some skeleton to be able to change the number of
> > >>>results per page some time ago
> > >>Yes, you did. :)
> > >>
> > >>If you append&n=3 to the search URL, it'll only return the
> first three
> > >>results. It doesn't work with 0.10 though, only with (the not yet
> > >>released) 0.11.
> > >>
> > >>>but it needs revisiting after Jens did the refactoring and
> finish it
> > >>>I guess there is a bug somewhere for finishing this
> > >>https://defect.opensolaris.org/bz/show_bug.cgi?id=2633
> > >Could be implemented in the old fashion way, i.e. cookies (wrt.
> server
> > >kind of "stateless") or made it session based, which requires a
> little
> > >bit more resources on the server. Even the preferred style could be
> > >implemented this way (at least in theory ;-)).
> > >
> > >The question is, where to squeeze it and how the should look
> like ...
> > >Quick and dirty would be a separate page ...
> >
> > Yeah, I'd love that too
> > another candidate for such setting is disabling of css frames
> and stick
> > to old one page behaviour ...
> >
> > do I hear a volunteer? :)
>
> chi chi, the flesh is willing, but the head says nay ;-)
> I.e., 1-2 hours should be sufficient just for thinking/coding, but
> when
> one touches [evolved] GUI stuff, it usually becomes quickly a very
> time
> consuming task (in the sense of days...). So my head says, rather
> postpone to the semester break (March or August) than delaying the
> next
> release ...
>
> Regards,
> jel.
> --
> Otto-von-Guericke University http://www.cs.uni-magdeburg.de/
> Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2
> 39106 Magdeburg, Germany Tel: +49 391 67 12768
> <tel:%2B49%20391%2067%2012768>
> _______________________________________________
> opengrok-discuss mailing list
> opengrok-discuss@opensolaris.org
> <mailto:opengrok-discuss@opensolaris.org>
> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
>
>
>
>
> --
> Alexandre Simundi <http://about.me/simundi>
>
>
>
>
> _______________________________________________
> opengrok-discuss mailing list
> opengrok-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Well my idea was that you wget the search result page from the
server<br>
and use THAT as xslt input :)<br>
I don't think any changes to search.jsp are necessary, unless we
broke the xhtml validity ... (I didn't test it since 0.10 went out,
which is certainly a long time)<br>
<br>
hmm?<br>
L<br>
<br>
On 24.1.2012 13:12, Alexandre Simundi da Silva wrote:
<blockquote
cite="mid:CACMCJ6VpD_-xKHjcRPbqvMgcW9DiPt42HQyA=Hp+VLxaxqkQ5g@mail.gmail.com"
type="cite">Hi Lads,
<div><br>
</div>
<div>Back to export result to CSV. I was doing some tests and I've
changed some pages to generate the CSV and Excel.</div>
<div><br>
</div>
<div>But (there is always a "but") the summary part is quite
messy. </div>
<div><br>
</div>
<div>Regards the xslt, the idea is parse the whole search.jsp and
decorate it? Or you have a different view?</div>
<div><br>
</div>
<div>Thanks again,</div>
<div>Alex<br>
<br>
<div class="gmail_quote">On 18 January 2012 04:44, Jens Elkner <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:jel%2Bopengrok@cs.uni-magdeburg.de">jel+opengrok@cs.uni-magdeburg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jan 18, 2012 at 12:37:48AM +0100,
Lubos Kosco wrote:<br>
> On 17.1.2012 23:42, Jens Elkner wrote:<br>
> >On Tue, Jan 17, 2012 at 08:58:09AM +0100, Knut
Anders Hatlen wrote:<br>
> >>Lubos Kosco<<a moz-do-not-send="true"
href="mailto:Lubos.Kosco@oracle.com">Lubos.Kosco@oracle.com</a>>
writes:<br>
> >><br>
> >>>agreed<br>
> >>>I think I added some skeleton to be able
to change the number of<br>
> >>>results per page some time ago<br>
> >>Yes, you did. :)<br>
> >><br>
> >>If you append&n=3 to the search URL,
it'll only return the first three<br>
> >>results. It doesn't work with 0.10 though,
only with (the not yet<br>
> >>released) 0.11.<br>
> >><br>
> >>>but it needs revisiting after Jens did
the refactoring and finish it<br>
> >>>I guess there is a bug somewhere for
finishing this<br>
> >><a moz-do-not-send="true"
href="https://defect.opensolaris.org/bz/show_bug.cgi?id=2633"
target="_blank">https://defect.opensolaris.org/bz/show_bug.cgi?id=2633</a><br>
> >Could be implemented in the old fashion way, i.e.
cookies (wrt. server<br>
> >kind of "stateless") or made it session based,
which requires a little<br>
> >bit more resources on the server. Even the
preferred style could be<br>
> >implemented this way (at least in theory ;-)).<br>
> ><br>
> >The question is, where to squeeze it and how the
should look like ...<br>
> >Quick and dirty would be a separate page ...<br>
><br>
> Yeah, I'd love that too<br>
> another candidate for such setting is disabling of
css frames and stick<br>
> to old one page behaviour ...<br>
><br>
> do I hear a volunteer? :)<br>
<br>
</div>
chi chi, the flesh is willing, but the head says nay ;-)<br>
I.e., 1-2 hours should be sufficient just for
thinking/coding, but when<br>
one touches [evolved] GUI stuff, it usually becomes quickly
a very time<br>
consuming task (in the sense of days...). So my head says,
rather<br>
postpone to the semester break (March or August) than
delaying the next<br>
release ...<br>
<br>
Regards,<br>
<div class="im HOEnZb">jel.<br>
--<br>
Otto-von-Guericke University <a
moz-do-not-send="true"
href="http://www.cs.uni-magdeburg.de/" \
target="_blank">http://www.cs.uni-magdeburg.de/</a><br> Department of Computer \
Science Geb. 29 R 027, Universitaetsplatz 2<br>
39106 Magdeburg, Germany Tel: <a
moz-do-not-send="true"
href="tel:%2B49%20391%2067%2012768"
value="+493916712768">+49 391 67 12768</a><br>
</div>
<div class="HOEnZb">
<div class="h5">_______________________________________________<br>
opengrok-discuss mailing list<br>
<a moz-do-not-send="true"
href="mailto:opengrok-discuss@opensolaris.org">opengrok-discuss@opensolaris.org</a><br>
<a moz-do-not-send="true"
href="http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss"
target="_blank">http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<a moz-do-not-send="true" href="http://about.me/simundi"
target="_blank">Alexandre Simundi</a><br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
opengrok-discuss mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:opengrok-discuss@opensolaris.org">opengrok-discuss@opensolaris.org</a> \
<a class="moz-txt-link-freetext" \
href="http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss">http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic