mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented "Sort attributes = Date"
SVN revision: 2274
This commit is contained in:
parent
20e7c19e9d
commit
862777fd0a
@ -1644,9 +1644,10 @@ ID display = TAG-$message id
|
|||||||
attributes, which are used for sorting. The first attribute in the list
|
attributes, which are used for sorting. The first attribute in the list
|
||||||
has the highest priority. Only if two entries have the same value in
|
has the highest priority. Only if two entries have the same value in
|
||||||
the first sort attribute, they are sorted according to the second sort
|
the first sort attribute, they are sorted according to the second sort
|
||||||
attribute and so on. The list of attributes may contain <b>ID</b> and
|
attribute and so on. To the list of attributes one can add <b>ID</b>,
|
||||||
<b>logbook</b>, although <b>ID</b> makes only sense together with
|
<b>Date</b> and <b>logbook</b>, although <b>ID</b> makes only sense
|
||||||
other attributes.
|
together with other attributes, since it is sorted as the primary
|
||||||
|
key anyhow.
|
||||||
</li>
|
</li>
|
||||||
</ul><a name="conditional" id="conditional"></a>
|
</ul><a name="conditional" id="conditional"></a>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
14
doc/faq.html
14
doc/faq.html
@ -322,6 +322,20 @@ second logbook ("closed items"). This can be done with the "Move To" command (se
|
|||||||
two separate logbooks. One can still search both logbooks at the same time if one checks
|
two separate logbooks. One can still search both logbooks at the same time if one checks
|
||||||
"Search all logbooks" in the find page.<p>
|
"Search all logbooks" in the find page.<p>
|
||||||
|
|
||||||
|
Starting from elog version 2.7.7, there now even a third way to do this.
|
||||||
|
With an additional line in the configuration file:
|
||||||
|
|
||||||
|
Collapse tn last = 1
|
||||||
|
|
||||||
|
(in fact the default, but to be explicit), then when the thread is
|
||||||
|
ready to be marked as closed, select the "closed entry" icon when
|
||||||
|
writing the last entry.
|
||||||
|
|
||||||
|
When the entries are viewed in "threaded" mode, then the closed entry
|
||||||
|
icon appears on the last entry; and when in "threaded, collapsed" mode,
|
||||||
|
then the closed entry icon appears in the one line that represents that
|
||||||
|
whole thread.
|
||||||
|
|
||||||
<LI><a name=17><b>Does elog have a spell checker?</b>
|
<LI><a name=17><b>Does elog have a spell checker?</b>
|
||||||
<p>
|
<p>
|
||||||
No, but you can use any spell checker which works with your browser. Examples are
|
No, but you can use any spell checker which works with your browser. Examples are
|
||||||
|
|||||||
10
src/elogd.c
10
src/elogd.c
@ -19018,7 +19018,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
char *p, *pt1, *pt2, *slist, *svalue, *gattr, line[1024], iattr[256];
|
char *p, *pt1, *pt2, *slist, *svalue, *gattr, line[1024], iattr[256];
|
||||||
BOOL show_attachments, threaded, csv, xml, raw, mode_commands, expand, filtering, disp_filter, show_text,
|
BOOL show_attachments, threaded, csv, xml, raw, mode_commands, expand, filtering, disp_filter, show_text,
|
||||||
text_in_attr, searched, found, disp_attr_link[MAX_N_ATTR + 4], sort_attributes, show_att_column;
|
text_in_attr, searched, found, disp_attr_link[MAX_N_ATTR + 4], sort_attributes, show_att_column;
|
||||||
time_t ltime, ltime_start, ltime_end, now, ltime1, ltime2;
|
time_t ltime, ltime_start, ltime_end, now, ltime1, ltime2, entry_ltime;
|
||||||
struct tm tms, *ptms;
|
struct tm tms, *ptms;
|
||||||
MSG_LIST *msg_list;
|
MSG_LIST *msg_list;
|
||||||
LOGBOOK *lbs_cur;
|
LOGBOOK *lbs_cur;
|
||||||
@ -19721,7 +19721,13 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
sprintf(str, "%08d", message_id);
|
sprintf(str, "%08d", message_id);
|
||||||
strlcat(msg_list[index].string, str, sizeof(msg_list[index].string));
|
strlcat(msg_list[index].string, str, sizeof(msg_list[index].string));
|
||||||
} else if (strieq(sort_attr[i], loc("Logbook"))) {
|
} else if (strieq(sort_attr[i], loc("Logbook"))) {
|
||||||
strlcpy(msg_list[index].string, msg_list[index].lbs->name, 256);
|
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
||||||
|
strlcat(msg_list[index].string, msg_list[index].lbs->name, sizeof(msg_list[index].string));
|
||||||
|
} else if (strieq(sort_attr[i], loc("Date"))) {
|
||||||
|
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
||||||
|
entry_ltime = date_to_ltime(date);
|
||||||
|
sprintf(str, "%08d", entry_ltime);
|
||||||
|
strlcat(msg_list[index].string, str, sizeof(msg_list[index].string));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user