Hi Jerome,

Many thanks for looking into this. I'm still having some trouble getting the thumbnail to update without modifying the metadata for a record. Please see my comments below and the descriptions of what I've tried.

On May 4, 2009, at 2:21 AM, Jerome Caffaro wrote:
The output of a record that has been cached by bibreformat is
refreshed only when its metadata has changed, which is not the
case in the scenario you describe (the file is replaced, the
metadata is untouched). In your case, the brief output still
links to the old picture, which does apparently no longer exists,
overwritten by the new file, with a new name (that behavior
really depends on the way your SRV step is configured).

We pretty much started with the default demo Pictures collection, and have not modified the SRV setup.

Hence the broken link to the image.
(You say that the HTML detailed view is affected by this problem:
this is most probably because you are also creating caches of the
detailed pages, which is usually not necessary)

We are running our bibsched tasks exactly as described in the "HOWTO Run ..." guide, so I'm not sure when we would be creating caches for the detailed pages. Our periodic bibreformat task is "bibreformat - oHB -s1h".

A 'bibreformat' did not help, as this tool does only process records
for which the metadata has changed too (unless you 'force' the
reformatting. Check bibreformat --help)

One solution is to trigger a reformatting using a custom WebSubmit
function placed just at the end of your SRV functions list. You can
also simply delete the 'hb' output of the record so that it is
formatted "on-the-fly" until the periodical bibreformat task processes
it.

So far I have been testing manually without modifying or creating any WebSubmit functions. Please see the following procedures that I've tried (during which no periodic tasks were run).

Round 1:
- use the SRV submit interface to revise the PICTURE_FILE for a record in the Pictures collection - the thumbnail in the HB and HD views are both replaced by question marks - manually run "DELETE FROM bibfmt WHERE id_bibrec=2062 and (format='hd' OR format='hb');"
        - two rows are affected, but no change in the HB or HD views
- use the MBI submit interface to revise the description of this record
        - Everything looks correct.

Round 2:
- use the SRV submit interface to revise the PICTURE_FILE for a record in the Pictures collection - the thumbnail in the HB and HD views are both replaced by question marks
- manually run "bibreformat -o HB -o HD -i 2062"
        - no change.
- use the MBI submit interface to revise the description of this record
        - no change
- manually run "bibreformat -o HB -o HD -i 2062"
- the thumbnail in the HB view is now correct, but the HD view still contains a question mark. - manually run "DELETE FROM bibfmt WHERE id_bibrec=2062 and (format='hd' OR format='hb');"
        - one row is affected
        - everything now looks correct

Round 3:
- use the SRV submit interface to revise the PICTURE_FILE for a record in the Pictures collection - the thumbnail in the HB and HD views are both replaced by question marks
- manually run "bibreformat -o HB -o HD -i 2062"
        - no change
- manually run "DELETE FROM bibfmt WHERE id_bibrec=2062 and (format='hd' OR format='hb');"
        - 2 rows are affected, but no visible change in the HB or HD views
- use the MBI submit interface to revise the description of this record
- the thumbnail in the HB view is now correct, but the HD view still contains a question mark.
- manually run "bibreformat -o HB -o HD -i 2062"
        - everything looks good.

Round 4:
- use the SRV submit interface to revise the PICTURE_FILE for a record in the Pictures collection - the thumbnail in the HB and HD views are both replaced by question marks - manually run "DELETE FROM bibfmt WHERE id_bibrec=2062 and (format='hd' OR format='hb');"
        - 0 rows are affected; no visible change in the HB or HD views
- manually run "bibreformat -o HB -o HD -i 2062"
        - no change
- use the MBI submit interface to revise the description of this record
- the thumbnail in the HB view is now correct, but the HD view still contains a question mark. - manually run "DELETE FROM bibfmt WHERE id_bibrec=2062 and (format='hd' OR format='hb');"
        - one row is affected
        - everything now looks good

Please let me know if there is anything else I should try or any other information I can provide. Thank you very much for all of your time and help.

Sincerely,
Devin

Reply via email to