Backporting r14305 to fix <controlfield> creation and use (when missing) bug:
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Oct 2009 17:50:11 +0000 (17:50 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Oct 2009 17:50:11 +0000 (17:50 +0000)
commit721b932563546a1ab79e216126896bb32064aef0
treefc37c96a8c38c98b1005c1dec671368def0bcda5
parent604efef2fe435325ac470043d3cc32b009b6e9f3
Backporting r14305 to fix <controlfield> creation and use (when missing) bug:

When we add a <controlfield> element we need to set it to be 40 characters
long, and full of spaces, otherwise the Fixed Field editor cannot properly
set the positions.

Additionally, when a Fixed Field is edited but there is no backing
<controlfield> element (say, trying to set the Audn when there is no 008)
then we will add the needed <controlfield>.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@14314 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/cat/marcedit.js