Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How does attributes substitution work?, posted by Gianluca Rigoletti on Fri Mar 20 14:07:59 2020 
    icon2.gif   Re: How does attributes substitution work?, posted by Stefan Ritt on Fri Mar 20 14:24:28 2020 
Message ID: 69126     Entry time: Fri Mar 20 14:24:28 2020     In reply to: 69125
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux | All  ELOG Version: 3.1.3-7933898 
Subject: Re: How does attributes substitution work? 

There could be a bug which is triggered by the fact that $M is a substring of $min. Try to rename $M to $Month or so.

Stefan

Gianluca Rigoletti wrote:

Hello,

Let's say I have a logboook where I define two attributes:

[TOTEM]
Comment = TOTEM Gas System Status
Attributes = Author, D, M, Y, h, min, ...

I would like to modify the "Last submission" so that I display something like %D/%M/%Y, %h:%min

so in my elogd.cfg I added this line:

Last submission = $D / $M / $Y , $h : $min by $Author

however, when display in the selection page instead of getting $min displayed i get the attribute $M+'in' displayed. How does attributes substitution work? is it case unsensitive? how does it behave when different attributes starts with the same name?

 

ELOG V3.1.4-80633ba