Hello,
I wrote some simple code to enable better record editing. The idea is
to add "Add another subfield" button add the bottom of the page when
"add new field" form is active.
You can try this in inspire.kicks-ass.net.. and it works, but:
Try editing some record, e.g. 7000, and add additional author 700a
"X". Then do the same for record 7001: add Y as 700a, press "Add
another field".
You'll see that X is there, too, though this is not the same record.
Here's the code.. perform_request_index in bibedit_engine.py:
if add == 4:
..
if tag != '' and subcode != '' and value != '':
record = add_field(recid, uid, record,
tag, ind1, ind2, subcode, valu\e)
if another and another != '':
#find the largest subfield index: this
is the added field
largest = 0
for k in record.keys():
subfields = record[k]
for s in subfields:
num = s[4]
if num > largest:
largest = num
#open in field editor
if largest > 0:
return perform_request_edit(ln,
recid, uid, tag, largest, 1, 'marc', True, None, 0, dict_value)
Yours,
Marko