Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 716 of 808  Not logged in ELOG logo
ID Date Icon Author Author Email Category OSdown ELOG Version Subject
  67997   Wed Jun 10 11:52:47 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionAll3.1Re: Formatting multiple datetime entries

Edmund Hertle wrote:
Hey

in one of my measurement logbooks I'm using two datetime entries (for start and end time of a measurement). The entries are created automatically by the measurement script.
Attributes = Time Start, Time End

Type Time Start = datetime
Type Time End = datetime

Time format = %H:%M:%S
For better visual appearance I would like to only display the time on the two additional datetime fields but keep the full date and time on the standard date field. Using the "Time format" option will influence all three at once.

Is there an option to do something like the time format for individual attributes (similar to the syntax of adding comments etc)?

Example:
Attributes = Time Start, Time End

Type Time Start = datetime
Type Time End = datetime

Time format Time Start = %H:%M:%S
Time format Time End = %H:%M:%S


Ok, implemented in the current version.
  67999   Wed Jun 10 12:48:41 2015 Reply Neal Graftonneal.grafton@stfc.ac.ukQuestionAll3.1Re: Formatting multiple datetime entries

Stefan Ritt wrote:

Edmund Hertle wrote:
Hey

in one of my measurement logbooks I'm using two datetime entries (for start and end time of a measurement). The entries are created automatically by the measurement script.
Attributes = Time Start, Time End

Type Time Start = datetime
Type Time End = datetime

Time format = %H:%M:%S
For better visual appearance I would like to only display the time on the two additional datetime fields but keep the full date and time on the standard date field. Using the "Time format" option will influence all three at once.

Is there an option to do something like the time format for individual attributes (similar to the syntax of adding comments etc)?

Example:
Attributes = Time Start, Time End

Type Time Start = datetime
Type Time End = datetime

Time format Time Start = %H:%M:%S
Time format Time End = %H:%M:%S


Ok, implemented in the current version.


I can use that....
Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End?
  68000   Wed Jun 10 12:52:48 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionAll3.1Re: Formatting multiple datetime entries

Neal Grafton wrote:

Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End?


Nope. The only way to do that is to use a scrip on the server (see elog:67876 for example), or use JavaScript. With "Top Text = <file>" you can "sneak in" some JavaScript code which massages the DOM tree and computes everything you want.

/Stefan
  68001   Wed Jun 10 12:56:58 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionAll3.1Re: Formatting multiple datetime entries

Neal Grafton wrote:
Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End?


I guess you want to do some more complex calculations, like adding the running times, etc. This goes beyond the scope of elog. You can however export elog entries as a CSV file and import it in a spreadsheet program and do there all calculations you want.

/Stefan
  68002   Wed Jun 10 13:00:07 2015 Reply Neal Graftonneal.grafton@stfc.ac.ukQuestionAll3.1Re: Formatting multiple datetime entries

Stefan Ritt wrote:

Neal Grafton wrote:
Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End?


I guess you want to do some more complex calculations, like adding the running times, etc. This goes beyond the scope of elog. You can however export elog entries as a CSV file and import it in a spreadsheet program and do there all calculations you want.

/Stefan


Thanks Stefan



Neal
  68070   Tue Aug 4 15:35:39 2015 Entry Stefan Rittstefan.ritt@psi.chInfoAll3.1.1Version 3.1.1 of elog has been released

Version 3.1.1, released August 4th, 2015

  • Updated CKEditor to version 4.5.1

  • Implemented "Date/Time format <attribute> = ..."

  • Implemented "Use Email Subject Edit = ..."

  • Replaced "Back" by "Delete" button

  • Fixed many issues with Draft Messages

  • CSS file is now in *addition* to the default file elog.css

  • Added LDAP documentation

  • Added "Logout to URL = ..." option

  • Added description of Apacher server authentication

  68080   Wed Aug 12 23:44:16 2015 Question Eric Quinteroericq@caltech.eduQuestionAll3.0.0-70b274bShow attachments = 0

I have "Show attachments = 0" set in [global], but attachments are shown in the "Full" view. Is this the intended behavior? Looking at individual entries correctly hides the attachments. 

We use inline images often, so when an attachement is shown at the bottom of a post it is effectively a duplicate, which clutters things up a bit. 

  68081   Thu Aug 13 08:41:57 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionAll3.0.0-70b274bRe: Show attachments = 0

That's strange. If you use HTML or ELCode encoding, attachments are automatically hidden if they are used inline. So no "Show attachments = 0" necessary! I just tried that with the demo logbook and here is how it looks:

As you can see, there is no attachment shown in the full view. This is actually handled by the function "is_inline_attachment()" in elogd.c. I don't know if you can do debugging, but somehow this inline test won't work for you and the question is why. Can you try the simple configuration from the demo logbook and see if you still have the problem? Can you show me an example when this does not work. I need to reproduce your problem exactly in order to fix it.

Stefan

 

 

Eric Quintero wrote:

I have "Show attachments = 0" set in [global], but attachments are shown in the "Full" view. Is this the intended behavior? Looking at individual entries correctly hides the attachments. 

We use inline images often, so when an attachement is shown at the bottom of a post it is effectively a duplicate, which clutters things up a bit. 

 

ELOG V3.1.5-3fb85fa6