Hi Valkyrie:
On Wed, 05 May 2010, Valkyrie Savage wrote:
> 0) In websearch_templates.py (in the websearch module), I need to be
> able to loop through instances in the 8564 MARC tag together; instead
> of looping through 8564_y and 8564_u separately. The get_fieldvalues
> function doesn't provide this.
As I mentioned, one way of doing this is to use the bibrecord library.
Here is an example:
from invenio.search_engine import get_record
from invenio.bibrecord import get_field_instances
from invenio.bibrecord import record_get_field_instances
rec = get_record(1)
flds = record_get_field_instances(rec, '856', '4')
for fld in flds:
print field_get_subfield_values(fld, 'u')
print field_get_subfield_values(fld, 'y')
> 1) I need to be able to upload captions without matching plots (for,
> i.e., plots that are rendered by the LaTeX engine), but bibupload
> won't accept an upload with no URL or URI associated, nor will it let
> me attach more than one file by the same name to a record. How should
> I go about displaying the same default image for all captions with no
> plot associated?
A docname must be unique for a given record. You can attach the same
empty plot but you have to name it uniquely, e.g. fig3, fig7 even if
behind it is the same empty plot picture. You don't have to rename the
plot file, you can set docname to a given value this via FFT $n, or
bibdocfile --set-docname. See e.g. BibUpload Admin Guide.
Best regards
--
Tibor Simko