raiseInvenioWebSubmitWarning(_('Unable to move field at position %s to position %s on page %s of submission \'%s%s\' - Invalid Field Position Numbers')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype))
## failed to swap 2 fields - couldn't move field1 to temp position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %s with field at position %s on page %s of submission %s - could not move field at position %s to temporary field location')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype))
## failed to swap 2 fields on submission page - couldn't move field2 to field1 position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %s with field at position %s on page %s of submission %s - could not move field at position %s to position %s. Please ask Admin to check that a field was not stranded in a temporary position')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype))
## failed to swap 2 fields in submission page - couldnt swap field at temp position to field2 position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %s with field at position %s on page %s of submission %s - could not move field that was located at position %s to position %s from temporary position. Field is now stranded in temporary position and must be corrected manually by an Admin')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype,movefieldfromposn,movefieldtoposn))
user_msg.append("""Unable to move field from position %s to position %s on page %s of submission %s%s - Field-order is now broken and must be corrected by Admin""" \
## failed to decrement the position of all fields below the field that was moved to a temp position
try:
raiseInvenioWebSubmitWarning(_('Unable to move field at position %s to position %s on page %s of submission %s - could not decrement the position of the fields below position %s. Tried to recover - please check that field ordering is not broken')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype,movefieldfromposn))
## failed to increment position of fields in and below position into which 'movefromfieldposn' is to be inserted
try:
raiseInvenioWebSubmitWarning(_('Unable to move field at position %s to position %s on page %s of submission %s%s - could not increment the position of the fields at and below position %s. The field that was at position %s is now stranded in a temporary position.')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype,movefieldtoposn,movefieldfromposn))
user_msg.append("""Unable to move field from position %s to position %s on page %s of submission %s%s - Field-order is now broken and must be corrected by Admin""" \
raiseInvenioWebSubmitWarning(_('Moved field from position %s to position %s on page %s of submission \'%s%s\'.')%(movefieldfromposn,movefieldtoposn,pagenum,action,doctype))