LP1850473: manual and automated eslint fixes Automatic fixes from `npm run lint -- --fix` Signed-off-by: Jane Sandberg <js7389@princeton.edu> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
LP1865898 Scan Item as Missing Pieces Angular Port Port the 'Scan Item As Missing Pieces' staff client interface to Angular. Interface displays additional data (title/author/callnum) during the staff confirmation step. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Mike Risher <mrisher@catalyte.io> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP1850555 Angular Item (Copy) Location Select Component <eg-item-location-select .../> Adds a new item location select component which filters the list of displayed locations based on a permission-check org or a specific context org unit. Values in the selector are decorated with the org unit short name in parens after the location name to clarify the owning lib. Sandbox example included. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
LP1840050 Modularize various standalone components + more. Create container modules for the String, Translate, FM record editor, and Admin Page components & services. This simplifies imports and allows us to avoid requiring these modules on pages that don't need them. In particular, the staff splash page now loads fewer imports, which should improve initial load/login time. Additionally some components were enhanced. FM record editor now has a eg-fm-record-editor-action component so users can pass in an action, rendered as a button at the bottom of the editor. FM record editor gets a delete record option and hideBanner option. FM record editor now better handles real-time updates of its underlying recordId and record values, including updates to some editor callers to migrate to the modified API (replace recId with recordId). Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP1825851 Server managed/processed print templates Adds a new database table config.print_template (and IDL class) for storing configurable, org- and locale-specific print templates. Adds a web service which accepts POSTed print data and generates a print-ready document. Includes example Apache configs. Teaches the Angular app to use the new web service for generting print output. Adds and Angular print template administration interface. Adds HTML::Defang for scrubbing unwanted HTML elements and attributes from print documents for security. Add the new ADMIN_PRINT_TEMPLATE permission to the Circ Admin group at System level as a default. Adds 2 templates, a simple patron_address tepmlate (pending Angular port of patron UIs) and a 'Holds for Bib Record' template, accessible from the Angular staff catalog Holds interface. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Kyle Huckins <khuckins@catalyte.io> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP1831390 ControlValueAccessor continued Make eg-date-select traffic in Date objects instead of YMD strings. Added simple combobox [(ngModel)] example. Added combobox freetext testing Avoid forcing startIdFiresOnChange for combobox. Avoid redundant FormsModule import. Minor lint repairs. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP1831390: combobox and date-select implement ControlValueAccessor This makes both components compatible with [(ngModel)] and reactive forms. Also adds sandbox examples. Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP1830432: Make the org-family-select reusable This commit removes Bill Erickson's automagic org unit select with +Ancestors and +Descendants checkboxes from the admin-page component, and gives it a component of its own, called <eg-org-family-select>. This commit also makes it compatible with [(ngModel)], reactive forms, and any custom Angular validators you might want to throw at it. Examples of all three are available in the sandbox. Also includes some component tests. Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> Signed-off-by: Bill Erickson <berickxx@gmail.com>
LP#1775466 Angular(6) base application Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>