raiseInvenioWebSubmitFunctionError("cannot find fields to modify")
#output some text
t=t+"<CENTER bgcolor=\"white\">The document <B>%s</B> has been found in the database.</CENTER><br />Please modify the following fields:<br />Then press the 'END' button at the bottom of the page<br />\n"%rn
forfieldinfields:
subfield=""
value=""
marccode=""
text=""
# retrieve and display the modification text
t=t+"<FONT color=\"darkblue\">\n"
res=run_sql("SELECT modifytext FROM sbmFIELDDESC WHERE name=%s",(field,))
iflen(res)>0:
t=t+"<small>%s</small> </FONT>\n"%res[0][0]
# retrieve the marc code associated with the field
res=run_sql("SELECT marccode FROM sbmFIELDDESC WHERE name=%s",(field,))