LP#2056204: support "Form of item" in MARC editor for electronic resources This patch adds mappings to the Angular and AngularJS MARC editors so that the "Form" (form of item) fixed field positions in the 006 and 008 fields are recognized and (in the case of the 008) editable via the "Form" input when the record type is "m" (electronic resources/computer files). Release-note: Fixes problem where "Form" value could not be saved in MARC editor for electronic resources. To test ------- [1] Open a bib record of type 'm' (electronic resource) in the Angular MARC editor. [2] Change the form value with the input labeled "Form". [3] Note that the corresponding position in the 008 is not updated. [4] Apply the patch and repeat steps 1-3. This type, the change should stick. [5] Bonus: do the same testing in the AngularJS MARC editor. Signed-off-by: Galen Charlton <gmc@equinoxOLI.org> Signed-off-by: Mike Rylander <mrylander@gmail.com> Signed-off-by: Jane Sandberg <js7389@princeton.edu>
LP1841823 Marc flat editor repair slashes (Angular) Replace all control field spaces with backslashes in MARC Flat text editor, Anglular edition. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
LP1834665 Import marcrecord.js to Angular Port the marcrecord.js file into the Angular build configuration so it may be used by the MARC editor code. Additionally, port jquery-dependent code to vanilla JS to avoid the jquery dependency. As a part of this, some code from the source file was removed since it was not needed (yet, anyway). Code added back will need to be similarly ported (mostly changing XML parsing). Note as-is, the JS is loaded on every Angular page. We could optimize this and have it loaded only when needed if we port it to Typescript and integrate it into the application instead of loading it as a 3rd-party dependancy. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>