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>
Fri, 28 Jun 2019 16:27:49 +0000 (12:27 -0400)
commit39ddca5a587490971beef4b4fd925844a321646a
treedd296b15e9eb3773afcd27daecff55b2661edd8d
parenta1a03fa71d95bed03a5498d12c3be8c5f0ec10cf
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]