Dear Mrs. Adjerad,
On 07/07/2010 03:34 PM, DSInani douna wrote:
Concerning the link (http://invenio-demo.cern.ch/record/96?verbose=9>),
it seems not working. I checked everything (all seemed alright) but got
the same result: no title displayed.
This is all right: adding `?verbose=9' just gives some additional hints
on how the formatting was done. Big red warnings would have appeared on
screen if there was any problem, which does not seem to be the case on
the screenshot you sent.
As to the first link
(<http://invenio-software.org/browser/modules/bibformat/lib/elements/bfe_title.py?rev=c99ca13c8537a12a841b4850d0b573d4ae7a80d7>),
could you please be more precise telling me where exactly am I to make
modifications? What are the steps to follow to sort this out? Are there
any other suggestions you can recommend?
(The link was just to show that the bfe_title.py element should in
principle already display the field 111__a)
Here is what you could do (provided that Invenio is installed in the
/opt/cds-invenio/ directory):
$cp /opt/cds-invenio/lib/python/invenio/bibformat_elements/bfe_title.py
/opt/cds-invenio/lib/python/invenio/bibformat_elements/bfe_my_title.py
$ emacs /opt/cds-invenio/lib/python/bibformat_elements/bfe_my_title.py
(Edit the element to show/hide the fields you want)
$ emacs
/opt/cds-invenio/etc/bibformat/format_templates/Default_HTML_detailed.bft
(edit to use <BFE_MY_TITLE /> instead of <BFE_TITLE/> )
$ sudo /etc/init.d/apache restart
(restart your Apache, wherever it is)
You should then see the field(s) that you have added to bfe_my_title.py.
Note that you can instead just do the following:
$ emacs
/opt/cds-invenio/etc/bibformat/format_templates/Default_HTML_detailed.bft
(add <BFE_FIELD tag="111__a" /> after <BFE_TITLE />)
This could also be done right from the BibFormat admin interface
provided that you let your Apache user write to the templates
directory. For eg. with:
$ sudo chown -R www-data.www-data /opt/cds-invenio/etc/bibformat/
Also note that in principle you would not modify directly the template
"Default_HTML_detailed.bft", but would duplicate it, modify it and
connect if to the HD output format instead, so that it does not
get overwritten if you update/upgrade Invenio.
I strongly recommend you to read fully the BibFormat admin guide:
<http://invenio-demo.cern.ch/help/admin/bibformat-admin-guide>
Finally, you can ensure that the record you want to display indeed has
a title in field 111. Just add `?of=hm' or `?of=xm' at the end of the
URL to check it. For eg:
<http://invenio-demo.cern.ch/record/96?of=hm>
You can send us a screenshot, or better the corresponding MARCXML file
(by appending `?of=xm') so that we could test it.
Best regards
--
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>