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>
Mon, 26 Aug 2019 16:08:03 +0000 (12:08 -0400)
commitb3578d8ae2f18803f444dcb40752f7df1a6a282b
treea214e563aeb43671066782202b5bfdf0670bbeeb
parent06e6d483c7423566e18a60fde12bd164ecefadff
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]