LP1834665 Import marcrecord.js to Angular
authorBill Erickson <berickxx@gmail.com>
Fri, 28 Jun 2019 16:27:35 +0000 (12:27 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 20 Aug 2019 22:26:33 +0000 (15:26 -0700)
commitabd263727cca59456fcc84b840c6f00aec958ae4
treea36a73b2de21effd5c35ffcb426d61a2ad0da636
parente689c8caa2c0d1667f551fd229f608230c4208e5
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>
Open-ILS/src/eg2/angular.json
Open-ILS/src/eg2/src/assets/js/marcrecord.js [new file with mode: 0644]