#712: BibFormat: fix multiple output format option
-----------------------+-----------------
 Reporter:  simko      |      Owner:
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:
Component:  BibFormat  |    Version:
 Keywords:             |
-----------------------+-----------------
 Once upon a time, one could submit bibreformatting job for several output
 format at once, like:

 {{{
 $ sudo -u www-data /opt/invenio/bin/bibreformat -u admin -o HB,HD
 }}}

 That is, the `-o` option used to accept different output formats that were
 separated by commas.

 Currently BibFormat will not recognise this, and, what is worse, it will
 create a format called `"HB,HD"` with comma included:

 {{{
 $ echo "SELECT DISTINCT(format) FROM bibfmt" | /opt/invenio/bin/dbexec
 format
 HB
 HB,HD
 HD
 recstruct
 xm
 }}}

 We need (i) to plug the multiple comma-separated output format option
 back, and (ii) to check the validity of the input argument in order to
 signal an error if people try to submit a task with invalid format such as
 `XFOO`.

-- 
Ticket URL: <http://invenio-software.org/ticket/712>
Invenio <http://invenio-software.org>

Reply via email to