Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 208 of 796  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Versionup Subject
  1222   Mon Jul 4 12:16:13 2005 Warning Emiliano GabrielliAlberT@SuperAlberT.itBug reportAll2.6.0beta2Re: [BUG] show only new entries

Emiliano Gabrielli wrote:

Stefan Ritt wrote:


I added a "Show all entries" link to go back.

I think you only committed the changes to elcode.js but not the ones relative to elogd.c ... the Attribute quick filter is now empty, and no "show all entries" is ever displayed


Just tested the rev 1.686 .. now the link is displayed, but following the "Show only last" link the "attach=1" setting in the URL I use is removed, not being able to have inline attachment in full view. They are displayed again when turning back to "Show all entries"
  1224   Mon Jul 4 22:44:03 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportAll2.6.0beta2Re: [BUG] show only new entries

Emiliano Gabrielli wrote:
Just tested the rev 1.686 .. now the link is displayed, but following the "Show only last" link the "attach=1" setting in the URL I use is removed, not being able to have inline attachment in full view. They are displayed again when turning back to "Show all entries"


I tried to fix this in the current CVS. Can you give it a try?
  1225   Tue Jul 5 11:32:34 2005 Reply Emiliano GabrielliAlberT@SuperAlberT.itBug reportAll2.6.0beta2Re: [BUG] show only new entries

Stefan Ritt wrote:

Emiliano Gabrielli wrote:
Just tested the rev 1.686 .. now the link is displayed, but following the "Show only last" link the "attach=1" setting in the URL I use is removed, not being able to have inline attachment in full view. They are displayed again when turning back to "Show all entries"


I tried to fix this in the current CVS. Can you give it a try?


the following patch has to be applied over the one of you to complete it Smile
diff -u -r1.691 elogd.c
--- src/elogd.c 4 Jul 2005 21:12:58 -0000       1.691
+++ src/elogd.c 5 Jul 2005 09:29:57 -0000
@@ -16728,7 +16728,7 @@

    /*---- apply last login cut ----*/

-   if (isparam("new_entries") && isparam("unm"))
+   if (isparam("new_entries") && atoi(getparam("new_entries")) == 1 && isparam("unm"))
       get_user_line(lbs, getparam("unm"), NULL, NULL, NULL, NULL, &ltime_start);

    /*---- assemble message list ----*/
  1226   Tue Jul 5 11:51:14 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportAll2.6.0beta2Re: [BUG] show only new entries

Emiliano Gabrielli wrote:
the following patch has to be applied over the one of you to complete it Smile


Ok, done.
  1419   Thu Sep 22 11:34:46 2005 Question Yoshio ImaiRequestLinux2.6.0beta2Conditional hiding of attributes in list view
Hi!

All here are amazed by how quickly this software has evolved since we
took our first look into the world of electronic logbooks.

In order to use it as our shift logbook, however, we have one request
which is in principle the same as that of Juliana Peng
(http://midas.psi.ch/elogs/Forum/1280). We want to have the usual
maintenance/admin/problem report entries of the shift crew in the
same logbook as the automatic entries from our runcontrol software to
clearly see cause and effect when analyzing the beamtimes later. Of
course, the run entries have different attributes than the shift crew
entries. So, it would be nice to have the conditional "Show attributes"
function extended also to the list view.
I understand that the attributes layout might then change from line to
line, but since we have only two sets of attributes, that would not
matter (to us). Would you consider implementing this function (i.e.
evaluate the conditions and hide attributes also in list view),
if not by default, then maybe as an option of the config file?

Another nice feature (which we do not explicitly need, just a suggestion)
might be implementing a filter function in list view, such that only entries
with certain attribute values are displayed.

I have also found one possible problem, maybe it's already solved in the
newest version: We have set up the elog under an stunnel, but the elog
server also responds to the original port (i.e. 80), displaying the logbook
selection page and from there even the login screen. Only after logging in
the elog server redirects the client browser to the https-page defined with
the URL-statement of the config file. The whole thing seems like an unwanted
behaviour, but could you change it so that it either doesn't respond on the
wrong URL at all, or at least redirects to the secured URL before presenting
the login window, so that we transfer the passwords encrypted?

Cheers

Yoshio
  1453   Thu Oct 13 11:40:32 2005 Warning Yoshio Imaiimai@kph.uni-mainz.deQuestionLinux2.6.0beta2Re: Conditional hiding of attributes in list view
Hi again!

I noticed the quickfilter option in the config guide in the meantime Wink!
I have one question however, concerning the "Resource Dir"-statement of the
config file. When setting it, the default theme doesn't work any more, I get
white background and no color schemes when going to the elog page with the
browser. Does this mean that the default resource location (/usr/share/elog/themes)
is overriden by this statement, and that all resources have to be put there
(if so, is it on purpose or is it a bug)?

Thanks

Yoshio

BTW, do you think it is at all feasible to implement the changes we mentioned earlier?
  1456   Thu Oct 13 14:08:26 2005 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.6.0beta2Re: Conditional hiding of attributes in list view

Yoshio Imai wrote:
I noticed the quickfilter option in the config guide in the meantime Wink!


Sorry my late reply, I'm extremely busy these days. I still don't get the point where you want attributes to be hidden. Let's assume you have a logbook with attributes A, B, C, D, E. One set of entries use A, B and C, whil the other set of entries use A, D and E. Right now, you get a listing like
Title A  B  C  D  E
one   a  b  c
one   a  b  c
two   a        d  e
two   a        d  e
one   a  b  c

Now if you want to hide D and E for type one and B and C for type two, you would get
Title A  B  C  D  E
one   a  b  c
one   a  b  c
two   a  d  e
two   a  d  e
one   a  b  c

so the "d" and "e" values are under the wrong title "B" and "C". Of course you can put a separate tile line each time you switch from "one" to "two", but that costs a lot of space. So how would you layout a listing where different attribute sets are mixed?


Yoshio Imai wrote:
I have one question however, concerning the "Resource Dir"-statement of the
config file. When setting it, the default theme doesn't work any more, I get
white background and no color schemes when going to the elog page with the
browser. Does this mean that the default resource location (/usr/share/elog/themes)
is overriden by this statement, and that all resources have to be put there
(if so, is it on purpose or is it a bug)?


Well, the "theme" is a "resource". The manual says: Resource dir = <directory>: Specifies the root directory for ELOG resources like help files, themes, icons and user HTML files, so it's explicitly written there. If you change the resource dir and do not move your themes accordingly, you won't have them! If you shoot yourself in the foot, no gun will help you to prevent this Wink


Yoshio Imai wrote:
BTW, do you think it is at all feasible to implement the changes we mentioned earlier?


Which features do you mean? In your previous posting you mentioned a filter, but you found that already. So what else is left except the hiding of attributes?
  1457   Thu Oct 13 14:47:06 2005 Reply Yoshio Imaiimai@kph.uni-mainz.deRequestLinux2.6.0beta2Re: Conditional hiding of attributes in list view

Stefan Ritt wrote:

Of course you can put a separate tile line each time you switch from "one" to "two", but that costs a lot of space. So how would you layout a listing where different attribute sets are mixed?

Well, in our case the changes would not be very frequent (if the beamtime goes smooth, we will have mainly
run-entries and few admin entries; if it is a hardware developement beamtime, we will have mainly admin
entries and fewer run entries). So, for us a layout with a new title line at the change between the two sets of attributes is ok.


Stefan Ritt wrote:

Well, the "theme" is a "resource". The manual says: Resource dir = <directory>: Specifies the root directory for ELOG resources like help files, themes, icons and user HTML files, so it's explicitly written there.

I see. I thought that the "hardcoded" default directory would still be searched -- my error.


Stefan Ritt wrote:

Which features do you mean? In your previous posting you mentioned a filter, but you found that already. So what else is left except the hiding of attributes?


Not much Wink. The only thing left was that the elogd redirects to the "URL="-address only after logging in, and not already after selecting a logbook in the selection page (i.e. before the password is transmitted), when a user calls directly the elogd port and not, say, the stunnel port defined to secure the connection. In our case this doesn't matter so much, but maybe to others it does ... ?

Thanks for the work

Yoshio
ELOG V3.1.5-fe60aaf