LP1834665 Import marcrecord.js to Angular
authorBill Erickson <berickxx@gmail.com>
Fri, 28 Jun 2019 16:27:35 +0000 (12:27 -0400)
committerBill Erickson <berickxx@gmail.com>
Sun, 11 Aug 2019 23:53:22 +0000 (19:53 -0400)
commit638a0cbec9309a6cc82ed46ac0da6257a5a23108
tree98747aa5b12a8e897d5e9f3cfdc464214d5058dc
parent53dd40504d92f3092e0bf98a94fe4592a0dc49c0
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>
Open-ILS/src/eg2/angular.json
Open-ILS/src/eg2/src/assets/js/marcrecord.js [new file with mode: 0644]