Backporting r14305 to fix <controlfield> creation and use (when missing) bug:
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Oct 2009 17:47:11 +0000 (17:47 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Oct 2009 17:47:11 +0000 (17:47 +0000)
commit00fe3683507856c2ceb58fd641956f7dbfecd938
tree9194f8671cebd303c0bbfd042bceae107636efa1
parenteaea89f00fdff007573d6fb47722927080c7f744
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_6@14310 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/cat/marcedit.js