CDS Invenio: query database to know a tag value from a record

Which is the quickest way to know the tag’s value of a record using CDS Invenio functions? Imagine you want to know the value for the 8564_u tag of record which sysno=4403

Easy! First, run python. Then:

>>> from invenio.dbquery import run_sql
>>> from invenio.websubmit_functions.Create_Modify_Interface_TAZ import Create_Modify_Interface_getfieldval_fromDBrec
>>> value =  Create_Modify_Interface_getfieldval_fromDBrec('8564_u',4403)
>>> print value
http://aneto.unizar.es/TAZ/CPS/2010/4403/TAZ-2010-077.pdf

There is only a small snag… the database is not always updated, so this information is not absolutely consistent. If the record has been modified recently the value might not be up to date.

Related posts:

  1. CDS Invenio: Get Record number (recid, sysno) from reference number
  2. CDS Invenio: avoid duplicate content on comments and other record tabs
  3. CDS Invenio: add meta information (tag keywords / description)
  4. CDS-Invenio: bibrecdocfile
  5. CDS-Invenio: Understanding WEBSUBMIT

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.