Re: Shared logbook and elog.cfg file across multiple installations, posted by Sebastian Schenk on Mon Nov 15 17:40:08 2021
|
Hi Anthony,
the elog has a mirroring function, which synchornizes config and logs between multiple instances.
See the bottom section of https://elog.psi.ch/elog/config.html
Best wishes,
Sebastian
Anthony wrote: |
Hi,
I'm wondering if it's possible to have a shared logbook and elog.cfg between multiple instances of elog. Ideally, I'd like to have my logbooks folder and elog.cfg hosted on a nextcloud instance while running the elog service locally. I've tried this using symlinks and shortcuts on windows with no luck. I was able to install elog into my mounted nextcloud folder, but this isn't ideal as I would like this to work from multiple computers.
Any ideas or thoughts on how I can do this (if I can actually do this)?
|
|
Re: Shared logbook and elog.cfg file across multiple installations, posted by Anthony on Tue Nov 16 13:05:05 2021
|
Thank you Sebastian!
I admittidely haven't looked through the page in a while, so I completely missed this feature. This should solve the problem, although in a slightly different implementation than what I was trying for.
Sebastian Schenk wrote: |
Hi Anthony,
the elog has a mirroring function, which synchornizes config and logs between multiple instances.
See the bottom section of https://elog.psi.ch/elog/config.html
Best wishes,
Sebastian
Anthony wrote: |
Hi,
I'm wondering if it's possible to have a shared logbook and elog.cfg between multiple instances of elog. Ideally, I'd like to have my logbooks folder and elog.cfg hosted on a nextcloud instance while running the elog service locally. I've tried this using symlinks and shortcuts on windows with no luck. I was able to install elog into my mounted nextcloud folder, but this isn't ideal as I would like this to work from multiple computers.
Any ideas or thoughts on how I can do this (if I can actually do this)?
|
|
|
Adjustment of summary columns, posted by Mariia Fedkevych on Fri Dec 17 11:54:38 2021
|
Hi!
Is it possible to manage the column widths on a logbook's summary page one by one?
Also, is it possible to hide the Text column without actually hiding the text body in entries (as Show Text = 0 in elog.cfg does)?
Kind regards,
Mariia |
Re: Adjustment of summary columns, posted by Stefan Ritt on Fri Dec 17 12:11:22 2021
|
You can manually modify the CSS style to adjust column widths. Locate elog.css which resides under elog/themes/default/elog.css, then find the class “.listtitle”, and modify the line
width: 0%;
to something like
width: 10%;
you can play with the width until it suits your needs. After each change, you have to reload the page in the browser to see the effect.
If you only want to change the width of a specific column, add following lines to your elog.css:
.listtitle:nth-child(4) {
width:30%;
}
where ‘4” is for example the 4th column. You can have several of these statements for different columns.
To hide the text, use the option 'summary lines' as described in the manual.
Mariia Fedkevych wrote: |
Hi!
Is it possible to manage the column widths on a logbook's summary page one by one?
Also, is it possible to hide the Text column without actually hiding the text body in entries (as Show Text = 0 in elog.cfg does)?
Kind regards,
Mariia
|
|
Re: Adjustment of summary columns, posted by Mariia Fedkevych on Tue Dec 21 10:40:11 2021
|
Thank you!
Stefan Ritt wrote: |
You can manually modify the CSS style to adjust column widths. Locate elog.css which resides under elog/themes/default/elog.css, then find the class “.listtitle”, and modify the line
width: 0%;
to something like
width: 10%;
you can play with the width until it suits your needs. After each change, you have to reload the page in the browser to see the effect.
If you only want to change the width of a specific column, add following lines to your elog.css:
.listtitle:nth-child(4) {
width:30%;
}
where ‘4” is for example the 4th column. You can have several of these statements for different columns.
To hide the text, use the option 'summary lines' as described in the manual.
Mariia Fedkevych wrote: |
Hi!
Is it possible to manage the column widths on a logbook's summary page one by one?
Also, is it possible to hide the Text column without actually hiding the text body in entries (as Show Text = 0 in elog.cfg does)?
Kind regards,
Mariia
|
|
|
Re: Adjustment of summary columns, posted by Mariia Fedkevych on Fri Jan 28 17:37:55 2022
|
Thank you!
Stefan Ritt wrote: |
You can manually modify the CSS style to adjust column widths. Locate elog.css which resides under elog/themes/default/elog.css, then find the class “.listtitle”, and modify the line
width: 0%;
to something like
width: 10%;
you can play with the width until it suits your needs. After each change, you have to reload the page in the browser to see the effect.
If you only want to change the width of a specific column, add following lines to your elog.css:
.listtitle:nth-child(4) {
width:30%;
}
where ‘4” is for example the 4th column. You can have several of these statements for different columns.
To hide the text, use the option 'summary lines' as described in the manual.
Mariia Fedkevych wrote: |
Hi!
Is it possible to manage the column widths on a logbook's summary page one by one?
Also, is it possible to hide the Text column without actually hiding the text body in entries (as Show Text = 0 in elog.cfg does)?
Kind regards,
Mariia
|
|
|
Use different HTML class for drafts compared to not existing entries, posted by Edmund Hertle on Wed Mar 9 16:25:31 2022
|
Right now a Draft shows a red error indication, that the entry is currently a draft. For the CSS styling it uses the HTML class="errormsg". The same class is also used if an entry does not exist.
Would it be possible for the draft version to use a different HTML class (for example class="draftmsg")? It can also use the same visual style (or making it yellow would probably also work)
The reason is that the py_elog Interface uses the class="errormsg" to determine if an entry does not exist ( https://github.com/paulscherrerinstitute/py_elog/blob/master/elog/logbook.py#L394 ) and refuses to return the content for this entry. One could possibly fix that also on the py_elog part, but it would probably at least require parsing of actual text (which might make problems for translated pages). Alternativley one could also look for the edit button, but maybe a small change on the elog server side is the simplest solution to this problem?
|
Duplicated \n in "plain" format with new WebKit, posted by Andrey on Tue Dec 27 12:44:52 2022
|
Dear Stefan,
There is a problem with editing an Elog page in "plain" format with the following "User Agent" :
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
It duplicates the newline symbols such that "1<CRLF>2" becomes "1<CRLF><CRLF>2". If edited again - "1<CRLF><CRLF><CRLF><CRLF>2".
I blame the new version of the Apple WebKit.
It works fine with Chrome (user agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"). But fails with Safari.
Could you please have a look?
Thank you in advance,
Andrey Pashnin
AMS collaboration
|