Hello again,
>> Except that, even after many times of running webcoll, forcing and what
>> not, I'm not able to display the first (cached) page of those records in
>> my own AB brief format; instead, it uses the default HB. Do I have to
>> do any special magical invocation for that?
>
> So, from this cached screen you see the old format, and if you hit the
> search button from this page, you see the updated format?
That's right.
> you have run webcoll with --force option? (Check the last updated
> timestamp at the bottom of the page)
>
> $ sudo -u apache /opt/cds-invenio/bin/webcoll -c "MYCOLLECTION2" -f
> $ sudo -u apache /opt/cds-invenio/bin/bibsched
I really did it.
> Don't forget that any update of a format which is cached (typically HB
> outpouts) must be followed by a BibReformat (which then sends BibUpload
> tasks. So make sure your BibSched queue is running!).
Ooops, I didn't do that, but after having done it, I cannot see any
difference.
I have noticed a couple of issues, if it matters. The first one is that
my AB (or ab) format is not stored in bibfmt (cache) table:
$ echo "select format from bibfmt;" | dbexec | sort | uniq -c
1 format
67404 HB
67404 xm
And, am I wrong or it is just hardcoded this way?
http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blob;f=modules/websearch/lib/websearch_webcoll.py#l417)
def create_latest_additions_info(self, rg=CFG_WEBSEARCH_INSTANT_BROWSE,
ln=CFG_SITE_LANG):
[...]
for idx in range(total-1, total-to_display-1, -1):
recid = recIDs[idx]
self.latest_additions_info.append({'id': recid,
'format':
format_record(recid, "hb", ln=ln),
'date':
get_creation_date(recid, fmt="%Y-%m-%d<br />%H:%i")})
So should I do some temporary hacks like you do?
http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blob;f=modules/websearch/lib/websearch_webcoll.py#l397
Thanks again for your attention,
Ferran