Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 705 of 807  Not logged in ELOG logo
    icon2.gif   Re: Configure default time range in 'Find', posted by Stefan Ritt on Thu Jan 22 16:30:07 2015 
I added a new optoin "Show last default = <days>", where one can pre-set the "Show last" drop-down box. I think this is a good
idea, so now people can configure their elog to a certain default in this parameter. Of course all settings in the Find page are AND'ed together, so
if one restricts the search to tha last week, but then looks for a date more in the past, the result will be zero by definition. The change is in the GIT
    icon2.gif   Re: Configure default time range in 'Find', posted by Eoin Butler on Thu Jan 22 17:04:03 2015 
This looks like exactly what I wanted, thanks!




Stefan
Ritt wrote:



I added a new optoin "Show last default = <days>", where
    icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Thu Jan 22 17:32:16 2015 
If my coding had been up to it, I would have done this and submitted...  thanks Stefan.




Stefan
Ritt wrote:



I added a new optoin "Show last default = <days>", where
    icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 16:41:49 2015 
Hi Stefan,

There's one pre-set value you forgot to include in this, which is the genuinely required "Show last all time".  I archive
many logbooks by years, and so for the year 2005 (say), searching by anything other than all time will always bring up zero results.  And it gets
    icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 17:53:44 2015 
Law of unintended consequences came into play.  If you use 0, then on the results page it says "Restricted search to last 0 Days". 
So that also needs tweeking, and that's really put my c coding (or lack of it) to the test.  But I've changed that phrase to "Unrestricted
search" followed by blank for when the parameter "last" is 0.
    icon5.gif   Re: Configure default time range in 'Find', posted by Andreas Luedeke on Mon Mar 16 07:16:56 2015 
Hi David,

isn't the empty string "" doing already exactly what you want to achieve with "Show last all time"?

It
is at least in my logbook.

Cheers

Andreas




David Pilgram wrote:



Hi Stefan,
    icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Mon Mar 16 13:51:11 2015 
Hi Andreas,

Yes, the empty string does exactly that, in the drop down menu, but before my changes, I could not set it to be the default setting in the configuration
file.  In an archived logbook, it's perfectly possible for "all time" to be the only sensible value.  I tried "Show last default
    icon2.gif   Re: Configure default time range in 'Find', posted by Andreas Luedeke on Tue Mar 17 07:04:44 2015 
Hi David,

I was confused because one normally does not need to include a line in the configuration to set a default value. A default
is exactly what you get if you don't specify anything in the configuration 

But I think I've figured it out: you were overriding the default in the global section for all logbooks and
ELOG V3.1.5-3fb85fa6