#53: Improve record retrieval in 'Get_Recid' function
------------------------+----------------------
  Reporter:  jcaffaro   |      Owner:  skaplun
      Type:  task       |     Status:  assigned
  Priority:  major      |  Milestone:
 Component:  WebSubmit  |    Version:  v0.99.1
Resolution:             |   Keywords:
------------------------+----------------------

Comment (by simko):

 Replying to [comment:2 skaplun]:
 > I would rather go for adding such mainreportnumber logical field

 One can also use the "named tag" technique, if logical fields are not
 strictly needed.  For example, see `bibsword_config.py`:

 {{{
 #!python
 from invenio.bibformat_dblayer import get_tag_from_name

 marc_tag_main_report_number = get_tag_from_name('primary report number')
 if marc_tag_main_report_number:
     CFG_MARC_REPORT_NUMBER = marc_tag_main_report_number
 else:
     CFG_MARC_REPORT_NUMBER = '037__a'

 }}}

-- 
Ticket URL: <http://invenio-software.org/ticket/53#comment:3>
Invenio <http://invenio-software.org>

Reply via email to