Did you install the invenio-demosite?

Yep, you saw it running.

Yes, I think you should only use Tibor’s approach if you don’t need the recid 
afterwards. Querying for the last recid is an unreliable way to obtain it.

You can test it like this:

from invenio.modules.records.api import Record
r = Record.create({‘recid': 1234}, 'json')
r.produce('json_for_marc’)

This should give you something like this:

[{'005': '20140318071429.0'}, {'001': 1234}]

Yeah, so definitely something's wrong cause it returns me an empty list []...

Cheers,
Pedro

Reply via email to