ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67516
|
Wed May 29 14:57:23 2013 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Info | Linux | 2.8-2350 | Re: hyperlink other elog posts |
Remington Tyler Thornton wrote: |
I am on an experiment that used ELOG for all documentation and meeting notes. In our meeting notes we link to elog posts that had been discussed during the meeting. We had done this by hyperlinking the URL to the entry. Recently we had to move our logbook to another machine and so none of our hyperlinks work since the URLs have changed. I noticed that when one creates a new entry in the subject they can reference another post. Is there a way to link another elog in the body of the elog by using its logbook name and id number without having to use a URL?
Thanks in advance
|
This is one of the rare cases where it helps to read the manual: https://midas.psi.ch/elog/userguide.html#add (You may need to upgrade to elog 2.9)
If you want to replace the old URLs with the new ones, you can edit the logbook files with the entries. The attached script allows you to do so easily. But be careful, try it on a copy of your data first.
 ⇄
Detect language » English
⇄
Detect language » English
Using:
regreplace "<old-url>" "<new-url>" *a.log
I hope this helps.
Andreas |
Attachment 1: regreplace
|
#!/bin/bash
if [ $# -lt 3 ]
then
echo "using: $0 <search-for> <replace-with> <file-list>"
exit
fi
if [ "$1" = "-f" ]
then
flag="-f"
shift 1
else
flag="-i"
fi
search="$(echo "$1"|awk '{gsub("\\","\\\\");gsub("/","\\/");print $0}')"
replace="$(echo "$2"|awk '{gsub("\\","\\\\");gsub("[$]","\\$");gsub("/","\\/");print $0}')"
shift 2
echo "replace \"$search\" with \"$replace\" in the files "
bold=`tput smso`
offbold=`tput rmso`
for file in $(grep -l "$search" "$@")
do
tmp=/tmp/regreplace_$(basename $file)
sed "s/${search}/${replace}/g" $file >$tmp
echo "${bold}diffs of $file$offbold ('<' = before, '>' = after)"
diff $file $tmp
cp $flag $tmp $file
rm -f $tmp
done
|
242
|
Thu Mar 6 20:49:31 2003 |
| Robert Keeney | rkeeney@dfs.state.fl.us | Bug report | | | Re: https:// changed to http:// when submit button is clicked |
> I hope this is not something I did.
>
> I'm using elog 2.3.1 on redhat 7.1 and using stunnel to redirect from port
> 443 to 8080. When I try to add a new record (click submit) https:// in the
> browser gets changed to http://. I ve tried three browsers all with the same
> result. If I go into the address field and change it to https:// after
> getting a 404 error it works. The record gets posted.
Just an update: It does the same thing when I click the back button |
243
|
Fri Mar 7 09:39:45 2003 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | | | Re: https:// changed to http:// when submit button is clicked |
> > I'm using elog 2.3.1 on redhat 7.1 and using stunnel to redirect from port
> > 443 to 8080. When I try to add a new record (click submit) https:// in the
> > browser gets changed to http://. I ve tried three browsers all with the
same
> > result. If I go into the address field and change it to https:// after
> > getting a 404 error it works. The record gets posted.
This is due to a change we had to do in the redirection of the pages. If you
submit a page, the result is a redirection using the HTTP
statement "Location: ..." inside the header. While this was a relative link
in the previous versions, we changed this into an absolute link, which then
agrees with the standard. But since elgod does not know if it runs
under "http:" or "https:", you have now to add the line
URL = https://your.server:port
into elogd.cfg. I will add this note into the documentation.
- Stefan |
244
|
Fri Mar 7 12:32:34 2003 |
| Robert Keeney | rkeeney@dfs.state.fl.us | Bug report | | | Re: https:// changed to http:// when submit button is clicked |
Operator error. Figures!
Elog has worked fine for a log time then I upgraded and added stunnel at the
same time. A case of not seeing the forest for the trees.
Thanks for the help.
> > > I'm using elog 2.3.1 on redhat 7.1 and using stunnel to redirect from port
> > > 443 to 8080. When I try to add a new record (click submit) https:// in the
> > > browser gets changed to http://. I ve tried three browsers all with the
> same
> > > result. If I go into the address field and change it to https:// after
> > > getting a 404 error it works. The record gets posted.
>
> This is due to a change we had to do in the redirection of the pages. If you
> submit a page, the result is a redirection using the HTTP
> statement "Location: ..." inside the header. While this was a relative link
> in the previous versions, we changed this into an absolute link, which then
> agrees with the standard. But since elgod does not know if it runs
> under "http:" or "https:", you have now to add the line
>
> URL = https://your.server:port
>
> into elogd.cfg. I will add this note into the documentation.
>
> - Stefan |
67030
|
Mon Mar 21 08:53:48 2011 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Windows | 2.90 | Re: http://midas.psi.ch/elog/download/windows/ doesn't have the latest 2.90 release |
> It looks like the newest windows release of elog at
> http://midas.psi.ch/elog/download/windows/ is 2.81.
>
> elog281-1.exe 23-Dec-2010 11:42 3.1M
> elog-latest.exe 23-Dec-2010 11:42 3.1M
>
> Can you post the 2.90 release.
>
> Thanks.
>
> -- rouilj
Yepp, done. I somehow overlooked it.
- Stefan |
69726
|
Tue Jan 30 13:10:38 2024 |
| Alexey Khudyakov | khudyakov@sepulcarium.org | Bug report | Linux | ELOG V3.1.5 | Re: http status 200 returned for "file not found" |
> "file not found" should return http code 404. elogd returns code 200 together
> with a page containing text "404 not found". This pollutes the browser cache
> with wrong content (in this case, we are trying to load a css file, and the browser
> is trying to use text "404 not found" as if it were a css. bad. file not found
> should return http code 404. K.O.
Yes. That's quite a problem when interacting with ELOG programmatically. Only way to
find whether response succeeded or failed with 404 is to parse response body
When file is not found send_file_direct calls show_html_header which in turn calls
show_http_header which sets HTTP code 200 unconditionally. It's reasonably easy to
patch around. |
69741
|
Fri Feb 23 14:59:29 2024 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Linux | ELOG V3.1.5 | Re: http status 200 returned for "file not found" |
> > "file not found" should return http code 404. elogd returns code 200 together
> > with a page containing text "404 not found". This pollutes the browser cache
> > with wrong content (in this case, we are trying to load a css file, and the browser
> > is trying to use text "404 not found" as if it were a css. bad. file not found
> > should return http code 404. K.O.
>
> Yes. That's quite a problem when interacting with ELOG programmatically. Only way to
> find whether response succeeded or failed with 404 is to parse response body
>
> When file is not found send_file_direct calls show_html_header which in turn calls
> show_http_header which sets HTTP code 200 unconditionally. It's reasonably easy to
> patch around.
I fixed the code to properly return "404 Not Found" in case a non-existing file is requested.
Stefan |
65940
|
Thu Jul 31 17:22:23 2008 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | All | 2.7.3-2058 | Re: html code in reply window |
Tom Plancon wrote: |
Hello,
Recently upgraded to 2.7.3 and I'm seeing html code filling up the reply window. Before I would just see [quote] and [/quote] around the original entry. Did I miss something in the upgrade? Thanks!
|
Probably you did not install the FCKeditor. Just try a reply to this message, and you will see the many formatting icons on top of the page coming from that HTML editor. Without the editor, you will only see the plain HTML. You can switch back however to the old behavior by selecting the ELCode encoding. You can make this permanent with the "Default encoding =0" option. |