Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 311 of 808  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Version Subjectdown
  2291   Tue Jul 17 11:30:16 2007 Reply Stefan Rittstefan.ritt@psi.chBug reportWindows6.5-1886Re: Show attributes

deletoille wrote:
here a small example with the function: "show attributes". that functions with release 1748 but not with the last release 1886.
All the attributes appear at the same time whereas I would wish only the 2 first.


I tried your config file, and it works as expected. If your equipment type is Sour vide, then only three attributes are shown according to your config statement:
show attributes = auteur,Icone, Type Equipement

Here is how it looks in my browser:



If you choose however equipment type Apple II (do you still use those computers at soleil?), then you have condition {A} which activates your config statement:
{A}show attributes = auteur,Icone, Type Equipement, Equipement, Localisation, Type evenement

showing of course more attributes:

  2292   Tue Jul 17 11:45:02 2007 Reply deletoillexavier.deletoille@synchrotron-soleil.frBug reportWindows6.5-1886Re: Show attributes

Stefan Ritt wrote:

deletoille wrote:
here a small example with the function: "show attributes". that functions with release 1748 but not with the last release 1886.
All the attributes appear at the same time whereas I would wish only the 2 first.


I tried your config file, and it works as expected. If your equipment type is Sour vide, then only three attributes are shown according to your config statement:
show attributes = auteur,Icone, Type Equipement

Here is how it looks in my browser:



If you choose however equipment type Apple II (do you still use those computers at soleil?), then you have condition {A} which activates your config statement:
{A}show attributes = auteur,Icone, Type Equipement, Equipement, Localisation, Type evenement

showing of course more attributes:



I'd try again and that does not works. does the problem come from the windows version?
  2293   Tue Jul 17 11:50:44 2007 Reply Stefan Rittstefan.ritt@psi.chBug reportWindows6.5-1886Re: Show attributes

deletoille wrote:
I'd try again and that does not works. does the problem come from the windows version?


Certainly not. Double check that you have the current elog version (check the ELOG V2.6.5-1887 at the bottom). If you are on windows, you can try to install elog265-7.exe which is the most recent one.
  2294   Tue Jul 17 13:24:58 2007 Reply deletoillexavier.deletoille@synchrotron-soleil.frBug reportWindows6.5-1886Re: Show attributes

Stefan Ritt wrote:

deletoille wrote:
I'd try again and that does not works. does the problem come from the windows version?


Certainly not. Double check that you have the current elog version (check the ELOG V2.6.5-1887 at the bottom). If you are on windows, you can try to install elog265-7.exe which is the most recent one.


I am sorry but I have the same thing on a colleague PC. that functions works on the old version but not on the last 1886 (see at the bottom). When I push "new" boutton, all is displayed at the same time.

  2295   Tue Jul 17 13:28:29 2007 Reply Stefan Rittstefan.ritt@psi.chBug reportWindows6.5-1886Re: Show attributes
Grrrr. I already told you in elog:2287 to use Show Attributes Edit instead of Show Attributes. So put following into your config file:

show attributes edit = auteur,Icone, Type Equipement

Note the edit.
  2296   Tue Jul 17 14:05:50 2007 Agree deletoillexavier.deletoille@synchrotron-soleil.frBug reportWindows6.5-1886Re: Show attributes

Stefan Ritt wrote:
Grrrr. I already told you in elog:2287 to use Show Attributes Edit instead of Show Attributes. So put following into your config file:

show attributes edit = auteur,Icone, Type Equipement

Note the edit.


ok sorry sorry
its works with show attributes edit Tongue
  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. 

 

  68105   Mon Aug 31 17:14:08 2015 Reply Eric Quinteroericq@caltech.eduQuestionAll3.0.0-70b274bRe: Show attachments = 0

The automatic hiding behavior is what I'm after, and I've discovered that it is only a problem for PDF attachments. I have reproduced this on the demo logbook on git revision f828049. 

I've taken a look at the source you mentioned, but as far as I can tell, it is just looking for the opening of the img tag in the HTML source, and I'm not sure why that is different for a PDF.

ELOG V3.1.5-3fb85fa6