Evergreen.git
4 years agowebstaff: implement import/export of copy templates
Galen Charlton [Mon, 25 Jan 2016 23:34:54 +0000 (18:34 -0500)]
webstaff: implement import/export of copy templates

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add egJsonExporter directive
Galen Charlton [Mon, 25 Jan 2016 23:30:48 +0000 (18:30 -0500)]
webstaff: add egJsonExporter directive

This directive is used to allow a piece of JSON
to be saved to the user's filesystem.  For example:

<span eg-json-exporter container="foo" default-file-name="example.json">Export</span>

specifies a button that, when click, allows the user to save
the contents of the scope variable foo.  The dialog that
appears will use "example.json" as the default filename.

This also adds a new dependency, the MIT-licensed
 angular-file-saver service written by Philipp Alferov:

https://alferov.github.io/angular-file-saver/

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: style file input buttons more nicely
Galen Charlton [Mon, 25 Jan 2016 20:41:52 +0000 (15:41 -0500)]
webstaff: style file input buttons more nicely

Using technique devised by Cory LaViska per
http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fixed client-side sorting of names in add-to-bucket dialog
Galen Charlton [Thu, 21 Jan 2016 22:42:47 +0000 (17:42 -0500)]
webstaff: fixed client-side sorting of names in add-to-bucket dialog

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: alphabetize status and location dropdowns in copy-editor
Galen Charlton [Thu, 21 Jan 2016 22:31:46 +0000 (17:31 -0500)]
webstaff: alphabetize status and location dropdowns in copy-editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: display floating group correctly in item status
Galen Charlton [Thu, 21 Jan 2016 22:20:43 +0000 (17:20 -0500)]
webstaff: display floating group correctly in item status

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add copy editor support for floating field
Galen Charlton [Thu, 21 Jan 2016 22:15:53 +0000 (17:15 -0500)]
webstaff: add copy editor support for floating field

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: rework Local Administration
Jason Etheridge [Mon, 4 Jan 2016 20:51:14 +0000 (15:51 -0500)]
webstaff: rework Local Administration

maintain links and labels as a data structure

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: tweak how element IDs in MARC editor are generated
Galen Charlton [Thu, 29 Oct 2015 23:24:35 +0000 (23:24 +0000)]
webstaff: tweak how element IDs in MARC editor are generated

For new records (or records that for whatever reason lack
a 901 field), use '0' as a dummy value for the record
ID when constructing element IDs (e.g., r0f5, r0f10sf0value,
etc.).  This fixes a problem where setCaret() couldn't
successfully change focus after adding a field or subfield
to a new record.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: users with negative balance
Bill Erickson [Mon, 5 Oct 2015 02:05:58 +0000 (22:05 -0400)]
webstaff: users with negative balance

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Wire up statcat filtering in item attribute editor
Mike Rylander [Mon, 26 Oct 2015 16:13:45 +0000 (12:13 -0400)]
webstaff: Wire up statcat filtering in item attribute editor

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: open title from item status in a new tab
Mike Rylander [Fri, 23 Oct 2015 20:34:16 +0000 (16:34 -0400)]
webstaff: open title from item status in a new tab

Also, iindicate that will happen with an icon by the title link

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Move new Vol Transfer UI menu option to "misc" section to avoid confusion
Mike Rylander [Fri, 23 Oct 2015 20:25:19 +0000 (16:25 -0400)]
webstaff: Move new Vol Transfer UI menu option to "misc" section to avoid confusion

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Use the record id to fetch the summary record data in item status
Mike Rylander [Thu, 22 Oct 2015 20:03:26 +0000 (16:03 -0400)]
webstaff: Use the record id to fetch the summary record data in item status

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: for selected grids, allow display of 10000 items
Mike Rylander [Thu, 22 Oct 2015 15:42:15 +0000 (11:42 -0400)]
webstaff: for selected grids, allow display of 10000 items

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: enable copy edit link from opac view
Mike Rylander [Wed, 21 Oct 2015 21:53:21 +0000 (17:53 -0400)]
webstaff: enable copy edit link from opac view

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agoLP#1508477: bump up minimum version of angular-hotkeys
Galen Charlton [Wed, 21 Oct 2015 17:39:08 +0000 (17:39 +0000)]
LP#1508477: bump up minimum version of angular-hotkeys

Version 1.3.0 of angular-hotkeys is now required, as this
is the version that introduces the ability the specify
that hotkeys can be used even when inputs, selects,
and textareas have focus.

After applying the patch (and doing a bower update,
grunt uglify, and install), one can test hotkeys in
the web staff client by (for example):

- starting from the home page and hitting F1 to
  get to patron search by barcode
- hitting F5 to get the item status page

Note that if the page embeds the OPAC or a Dojo
interface using an egEmbedFrame, if any element
of the iframe's content has focus, the hotkeys won't
work -- that will be the subject of another patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add another option for choosing volume transfer library
Galen Charlton [Tue, 20 Oct 2015 20:08:44 +0000 (20:08 +0000)]
webstaff: add another option for choosing volume transfer library

The actions menu on the holdings view now has two ways of
specifying a library to transfer volumes to:

 * Library as Volume Transfer Destination

   Pops up a modal with a library selector.

 * Library from Selection as Volume Transfer Destination

   Uses the currently selected volume's owning
   library to specify the target library.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: keep $scope.{pre,suf}fix as acnp/acns objects
Galen Charlton [Tue, 20 Oct 2015 19:39:10 +0000 (19:39 +0000)]
webstaff: keep $scope.{pre,suf}fix as acnp/acns objects

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: sort prefix/suffix selectors by sortkey
Galen Charlton [Tue, 20 Oct 2015 19:12:44 +0000 (19:12 +0000)]
webstaff: sort prefix/suffix selectors by sortkey

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: update volume prefix/suffix selectors
Galen Charlton [Tue, 20 Oct 2015 19:08:33 +0000 (19:08 +0000)]
webstaff: update volume prefix/suffix selectors

Ensuring that when the owning library changes that
the selectors for the volume prefix and suffix
refelect the options available to that OU.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client: remove pending label from closed dates
Bill Erickson [Mon, 5 Oct 2015 01:35:25 +0000 (21:35 -0400)]
webstaff: browser client: remove pending label from closed dates

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client: Remove closed dates editor XUL-y requirements
Bill Erickson [Mon, 5 Oct 2015 01:34:01 +0000 (21:34 -0400)]
webstaff: browser client: Remove closed dates editor XUL-y requirements

Replace JSAN date functions with manual, inline date formatting
functions.  Remove JSAN and XUL constants requirements.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client: misc. new links
Bill Erickson [Wed, 30 Sep 2015 01:57:40 +0000 (21:57 -0400)]
webstaff: browser client: misc. new links

field documentation
group penalty threshold
hold policies
library settings edito
noncat types
action/trigger
search filter group
stat cats editor

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client local admin additions
Bill Erickson [Sun, 9 Aug 2015 22:59:00 +0000 (18:59 -0400)]
webstaff: browser client local admin additions

* copy locations editor
* copy locations groups
* copy locations order
* copy template editor
* auto-print settings (new UI)

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser: closed dates / research missing dump() func
Bill Erickson [Wed, 29 Jul 2015 13:33:26 +0000 (09:33 -0400)]
webstaff: browser: closed dates / research missing dump() func

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client local admin re-org 2
Bill Erickson [Sat, 25 Jul 2015 18:11:00 +0000 (14:11 -0400)]
webstaff: browser client local admin re-org 2

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client local admin re-org; adding new links
Bill Erickson [Sat, 25 Jul 2015 18:10:37 +0000 (14:10 -0400)]
webstaff: browser client local admin re-org; adding new links

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client: starting local admin landing page
Bill Erickson [Fri, 24 Jul 2015 02:35:47 +0000 (22:35 -0400)]
webstaff: browser client: starting local admin landing page

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: browser client: age to lost UI
Bill Erickson [Mon, 20 Jul 2015 01:38:07 +0000 (21:38 -0400)]
webstaff: browser client: age to lost UI

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Browser client: integrate address alert HTML UI
Bill Erickson [Wed, 15 Jul 2015 02:04:39 +0000 (22:04 -0400)]
webstaff: Browser client: integrate address alert HTML UI

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Typo in method name for volume transfer
Mike Rylander [Mon, 19 Oct 2015 13:46:42 +0000 (09:46 -0400)]
webstaff: Typo in method name for volume transfer

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Label field "Owning Library" instead of "Library" in call number area
Mike Rylander [Mon, 19 Oct 2015 13:45:50 +0000 (09:45 -0400)]
webstaff: Label field "Owning Library" instead of "Library" in call number area

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach egOrgSelector how to be sticky
Galen Charlton [Fri, 16 Oct 2015 22:21:14 +0000 (22:21 +0000)]
webstaff: teach egOrgSelector how to be sticky

In order to make the org unit selector in the holdings view
to be "sticky", the egOrgSelector directive now accepts an
optional stickySetting attribute specifying the name of a
preference key for storing the last selected org unit.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: when FF input gains focus, select contents
Galen Charlton [Fri, 16 Oct 2015 18:02:39 +0000 (18:02 +0000)]
webstaff: when FF input gains focus, select contents

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fix org unit selectors in vol/copy editor
Mike Rylander [Thu, 15 Oct 2015 19:36:56 +0000 (15:36 -0400)]
webstaff: fix org unit selectors in vol/copy editor

Restrict owning and circ lib selection to only those orgs
that have can_have_vols true for their org type

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Force refresh from server on copy delete
Mike Rylander [Wed, 14 Oct 2015 16:03:28 +0000 (12:03 -0400)]
webstaff: Force refresh from server on copy delete

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: be explicit about fast-add availability
Mike Rylander [Tue, 13 Oct 2015 20:00:48 +0000 (16:00 -0400)]
webstaff: be explicit about fast-add availability

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: use activateItem to open the vol/copy editor
Mike Rylander [Tue, 13 Oct 2015 18:06:03 +0000 (14:06 -0400)]
webstaff: use activateItem to open the vol/copy editor

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: typo preventing a setting from working
Mike Rylander [Tue, 13 Oct 2015 16:24:55 +0000 (12:24 -0400)]
webstaff: typo preventing a setting from working

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: inform on record save failure, and mark the page clean on successful save
Mike Rylander [Tue, 13 Oct 2015 16:24:29 +0000 (12:24 -0400)]
webstaff: inform on record save failure, and mark the page clean on successful save

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make sure copy_notes() contains an array before pushing to it
Mike Rylander [Tue, 13 Oct 2015 15:41:12 +0000 (11:41 -0400)]
webstaff: make sure copy_notes() contains an array before pushing to it

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: improve styling of aligned grid columns to avoid cell overlap
Mike Rylander [Tue, 13 Oct 2015 15:30:48 +0000 (11:30 -0400)]
webstaff: improve styling of aligned grid columns to avoid cell overlap

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: highlight currently active position in phys char wizard
Galen Charlton [Mon, 12 Oct 2015 21:12:08 +0000 (21:12 +0000)]
webstaff: highlight currently active position in phys char wizard

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: allow batch copy attribute editing across bib records
Mike Rylander [Mon, 12 Oct 2015 20:10:04 +0000 (16:10 -0400)]
webstaff: allow batch copy attribute editing across bib records

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make webstaff grid menus scrollable
Galen Charlton [Mon, 12 Oct 2015 15:08:05 +0000 (15:08 +0000)]
webstaff: make webstaff grid menus scrollable

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Mark new copy notes as new, so they will save.
Mike Rylander [Fri, 9 Oct 2015 19:51:11 +0000 (15:51 -0400)]
webstaff: Mark new copy notes as new, so they will save.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Typo fix (Catagories)
Mike Rylander [Fri, 9 Oct 2015 17:33:09 +0000 (13:33 -0400)]
webstaff: Typo fix (Catagories)

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: A little spacing tweak to avoid overlapping UI elements in modals
Mike Rylander [Fri, 9 Oct 2015 16:07:29 +0000 (12:07 -0400)]
webstaff: A little spacing tweak to avoid overlapping UI elements in modals

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Move the "Help" and "Stack Subfields" UI elements around a bit, to save...
Mike Rylander [Fri, 9 Oct 2015 15:47:52 +0000 (11:47 -0400)]
webstaff: Move the "Help" and "Stack Subfields" UI elements around a bit, to save space

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: CSS tweak - add padding belong MARC editor help button
Galen Charlton [Fri, 9 Oct 2015 14:54:19 +0000 (14:54 +0000)]
webstaff: CSS tweak - add padding belong MARC editor help button

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: disable non-OPAC-view tabs when doing catalog search
Galen Charlton [Fri, 9 Oct 2015 14:50:17 +0000 (14:50 +0000)]
webstaff: disable non-OPAC-view tabs when doing catalog search

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: improve MARC record deletion
Galen Charlton [Thu, 8 Oct 2015 21:28:53 +0000 (21:28 +0000)]
webstaff: improve MARC record deletion

The MARC editor now asks the user to confirm
whether to delete the record, and in the case of
deleting bibs, now uses open-ils.cat.biblio.record_entry.delete
so as to catch things like volumes still attached
to the bib and cancelling holds in the bib record.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add keyboard shortcut legend to MARC editor
Galen Charlton [Thu, 8 Oct 2015 19:23:36 +0000 (19:23 +0000)]
webstaff: add keyboard shortcut legend to MARC editor

Note that once we upgrade to angularjs-ui >= 0.13.0, using
a popover rather than a collapse might be better.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: tweak layout of the merge interface
Galen Charlton [Thu, 8 Oct 2015 16:43:42 +0000 (16:43 +0000)]
webstaff: tweak layout of the merge interface

The lead record is now displayed using the same sort
of tabset as the subordinate records. While, of course,
there can be only one lead record at a time, doing it
this way gives us two things:

[1] Display of the lead bib's ID
[2] Better vertical alignment of the MARC records

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: automatically advance focus in MARC editor
Galen Charlton [Thu, 8 Oct 2015 16:16:01 +0000 (16:16 +0000)]
webstaff: automatically advance focus in MARC editor

Upon completing a tag, indicator, or subfield code
input, focus will now automatically advance to the next
input, allowing users to enter records with less need
to use the tab button.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Always accept double-dagger as a SF delimiter
Mike Rylander [Thu, 8 Oct 2015 15:14:10 +0000 (11:14 -0400)]
webstaff: Always accept double-dagger as a SF delimiter

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: another fix to focus-on-new-MARC-field
Galen Charlton [Thu, 8 Oct 2015 14:46:33 +0000 (14:46 +0000)]
webstaff: another fix to focus-on-new-MARC-field

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fix setting focus when inserting a new MARC field
Galen Charlton [Thu, 8 Oct 2015 14:43:29 +0000 (14:43 +0000)]
webstaff: fix setting focus when inserting a new MARC field

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make context menus in MARC editor scrollable
Galen Charlton [Thu, 8 Oct 2015 14:04:30 +0000 (14:04 +0000)]
webstaff: make context menus in MARC editor scrollable

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make egGrid actions menu scrollable
Galen Charlton [Thu, 8 Oct 2015 14:04:13 +0000 (14:04 +0000)]
webstaff: make egGrid actions menu scrollable

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agoLP#1464767 Browser client scrollable selectors
Bill Erickson [Tue, 16 Jun 2015 02:29:25 +0000 (22:29 -0400)]
LP#1464767 Browser client scrollable selectors

Adds a new scrollable-menu CSS class.  It's (provisionally?) limited to
larger screens, w/ the assumption that smaller screens handle scrolling
for you.

New class is applied to org unit selects only so far.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/templates/staff/css/style.css.tt2

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: implement subfield stacking in MARC editor
Galen Charlton [Thu, 8 Oct 2015 02:09:41 +0000 (02:09 +0000)]
webstaff: implement subfield stacking in MARC editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add session-stickiness for MARC template selector
Galen Charlton [Thu, 8 Oct 2015 01:10:35 +0000 (01:10 +0000)]
webstaff: add session-stickiness for MARC template selector

The new bib function now remembers the last MARC template
that was used for the lifetime of the browser tab.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: start teaching egHatch about sessionStorage
Galen Charlton [Thu, 8 Oct 2015 01:05:48 +0000 (01:05 +0000)]
webstaff: start teaching egHatch about sessionStorage

This patch adds getSessionItem(), setSessionItem(), and
removeSessionItem(), which are all wrappers around
$window.sessionStorage. This is done to support settings
whose values are sticky for the duration of a session,
which at present is the lifetime of the browser tab.

An alternative would be using session cookies; some user
testing is needed to see which lifetime makes the most
sense.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: improve how egVolumeList opens the vol/copy editor
Galen Charlton [Wed, 7 Oct 2015 21:01:51 +0000 (21:01 +0000)]
webstaff: improve how egVolumeList opens the vol/copy editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach volcopy editor how to set default item status
Galen Charlton [Wed, 7 Oct 2015 20:38:24 +0000 (20:38 +0000)]
webstaff: teach volcopy editor how to set default item status

It now consults the cat.default_copy_status_fast and
cat.default_copy_status_normal library settings as appropriate.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add ability to edit copies to the record merge interface
Galen Charlton [Wed, 7 Oct 2015 20:01:18 +0000 (20:01 +0000)]
webstaff: add ability to edit copies to the record merge interface

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach egVolumeList more tricks
Galen Charlton [Wed, 7 Oct 2015 20:00:08 +0000 (20:00 +0000)]
webstaff: teach egVolumeList more tricks

The directive now accepts two new attributes:

* editVolumes - controls display of the 'Edit volumes' button
* editCopies - if true, adds a 'Edit volumes and copies button'

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: require SSL for /eg/staff/
Galen Charlton [Wed, 7 Oct 2015 19:27:02 +0000 (19:27 +0000)]
webstaff: require SSL for /eg/staff/

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: force deletion of copies on "delete copies and volumes"
Mike Rylander [Wed, 7 Oct 2015 19:08:56 +0000 (15:08 -0400)]
webstaff: force deletion of copies on "delete copies and volumes"

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Protect against loops before cloning copy/volume data
Mike Rylander [Wed, 7 Oct 2015 18:58:59 +0000 (14:58 -0400)]
webstaff: Protect against loops before cloning copy/volume data

Also, set proper defaults on newly added copies

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fetch both staff_client and vandelay_queue record buckets
Galen Charlton [Wed, 7 Oct 2015 18:36:13 +0000 (18:36 +0000)]
webstaff: fetch both staff_client and vandelay_queue record buckets

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: mark some egEmbedFrame bindings as optional
Galen Charlton [Wed, 7 Oct 2015 15:38:46 +0000 (15:38 +0000)]
webstaff: mark some egEmbedFrame bindings as optional

This gets rid of some noise in the browser console.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fetch MVR to help build record summary
Galen Charlton [Wed, 7 Oct 2015 15:22:34 +0000 (15:22 +0000)]
webstaff: fetch MVR to help build record summary

Although this adds another OpenSRF request, using the
MVR rather than fleshing simple_record() gives us
two benefits:

* getting access to the edition
* fields like title and author are now displayed in
  their proper case, rather than the normalized lowercase
  supplied by simple_record().

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach record summary how to display the bib call number
Galen Charlton [Wed, 7 Oct 2015 14:59:09 +0000 (14:59 +0000)]
webstaff: teach record summary how to display the bib call number

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach side-by-side editing to the record merge interface
Galen Charlton [Tue, 6 Oct 2015 18:26:30 +0000 (18:26 +0000)]
webstaff: teach side-by-side editing to the record merge interface

It is now possible to edit the lead record in place (in
flat editor mode).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach MARC editor some more tricks
Galen Charlton [Tue, 6 Oct 2015 18:24:16 +0000 (18:24 +0000)]
webstaff: teach MARC editor some more tricks

[1] Now accepts a flat-only attribute specifying that
    the editor should be restricted to flat mode.
[2] Now accepts an embedded attribute specifying that
    various stuff that isn't useful when the editor
    is embedded in another control should be ignored.
[3] The width of the flat editor's textarea is now
    bounded by its container.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: display MARC records in merge interface in breaker format
Galen Charlton [Tue, 6 Oct 2015 17:30:10 +0000 (17:30 +0000)]
webstaff: display MARC records in merge interface in breaker format

Doing this will ease copy-and-paste between records.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add egRecordBreaker directive
Galen Charlton [Tue, 6 Oct 2015 17:28:58 +0000 (17:28 +0000)]
webstaff: add egRecordBreaker directive

This directive takes a blob of MARCXML or a bib
record ID and renders the record in "breaker"
format.

Example usage:

  <eg-record-breaker record-id="1234"></eg-record-breaker>
  <eg-record-breaker marc-xml="xml"></eg-record-breaker>

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Allow editing of empty volumes
Mike Rylander [Tue, 6 Oct 2015 17:56:45 +0000 (13:56 -0400)]
webstaff: Allow editing of empty volumes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: fix saving copy price in vol/copy editor
Galen Charlton [Tue, 6 Oct 2015 16:24:00 +0000 (16:24 +0000)]
webstaff: fix saving copy price in vol/copy editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: unbreak tabs in volume/copy editor
Galen Charlton [Tue, 6 Oct 2015 14:12:43 +0000 (14:12 +0000)]
webstaff: unbreak tabs in volume/copy editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach the merge record dialog how to edit volumes
Galen Charlton [Mon, 5 Oct 2015 22:02:44 +0000 (22:02 +0000)]
webstaff: teach the merge record dialog how to edit volumes

This adds an "edit volumes" button under each record in the
merge records interface that opens a modal embedding the
volume editor.

The embedding is done via an iframe in lieu of splitting the
relevant bits of the volume/copy editor into an independent
service.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach volcopy editor how to be embeddable
Galen Charlton [Mon, 5 Oct 2015 22:00:57 +0000 (22:00 +0000)]
webstaff: teach volcopy editor how to be embeddable

The route /eg/staff/cat/volcopy/$key/embedded will
load the volume/copy editor in an embedded mode; specifically,

[1] the navbar and record summary will not be displayed
[2] "Save & Exit" becomes "Save changes"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make record merge interface display volumes for all OUs
Galen Charlton [Mon, 5 Oct 2015 20:25:06 +0000 (20:25 +0000)]
webstaff: make record merge interface display volumes for all OUs

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add unit test for egOrg.root()
Galen Charlton [Mon, 5 Oct 2015 20:24:43 +0000 (20:24 +0000)]
webstaff: add unit test for egOrg.root()

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add egOrg.root() method
Galen Charlton [Mon, 5 Oct 2015 20:21:23 +0000 (20:21 +0000)]
webstaff: add egOrg.root() method

Also, start adding some documentation for egOrg.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: go to lead record after merge from bucket
Galen Charlton [Mon, 5 Oct 2015 19:01:30 +0000 (19:01 +0000)]
webstaff: go to lead record after merge from bucket

After a successful record merge initiated from a record
bucket, go to the lead record rather than refreshing
the bucket display.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: teach the record merge modal how to display volumes
Galen Charlton [Fri, 2 Oct 2015 20:53:29 +0000 (20:53 +0000)]
webstaff: teach the record merge modal how to display volumes

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: more changes to holdingsSvc
Galen Charlton [Fri, 2 Oct 2015 20:50:03 +0000 (20:50 +0000)]
webstaff: more changes to holdingsSvc

- convert holdingsSvc from a singleton to a provider
  of holdings service instance objects
- adjust the catalog app accordingly
- add a new egVolumeList directive that displays
  a list of volumes attached to a bib record, including
  owning library, call number, and copies

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: break holdingsSvc out of catalog/app.js
Galen Charlton [Fri, 2 Oct 2015 19:09:50 +0000 (19:09 +0000)]
webstaff: break holdingsSvc out of catalog/app.js

This will allow using its logic for constructing
volume/copy lists in other places.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: make overlay record modal wider
Galen Charlton [Fri, 2 Oct 2015 14:19:52 +0000 (14:19 +0000)]
webstaff: make overlay record modal wider

This patch defines a CSS class, eg-wide-modal, that can be
set as the windowClass of 'lg' Boostrap modals and increase
their width from a fixed width to 95% of the window.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: use tabset rather than accordion for bucket record merge modal
Galen Charlton [Thu, 1 Oct 2015 21:56:12 +0000 (21:56 +0000)]
webstaff: use tabset rather than accordion for bucket record merge modal

This stylistic change will pave the way towards
better side-by-side record management and editing in this
interface.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: move some "mark for" buttons to record summary
Galen Charlton [Thu, 1 Oct 2015 20:31:08 +0000 (20:31 +0000)]
webstaff: move some "mark for" buttons to record summary

This patch moves the "Mark for..." overlay, volume transfer,
and conjoined items buttons from the MARC editor to
the record summary (next to the "Add To Bucket" button).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: add drop-down for item type Z39.50 search field
Galen Charlton [Thu, 1 Oct 2015 19:24:57 +0000 (19:24 +0000)]
webstaff: add drop-down for item type Z39.50 search field

It should be noted that this works *only* for OCLC, as
not all targets support use attribute 1001, and the list
of values for that use attribute are target-defined.

A more general solution might be creating a new
config.z3950_attr_value_list table.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Use record, not owning_lib, for the part record field. Doh.
Mike Rylander [Wed, 30 Sep 2015 19:45:17 +0000 (15:45 -0400)]
webstaff: Use record, not owning_lib, for the part record field. Doh.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: tweak labels of remove from bucket actions
Galen Charlton [Tue, 29 Sep 2015 21:47:24 +0000 (21:47 +0000)]
webstaff: tweak labels of remove from bucket actions

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: record buckets: implement show selected in catalog action
Galen Charlton [Tue, 29 Sep 2015 21:45:51 +0000 (21:45 +0000)]
webstaff: record buckets: implement show selected in catalog action

This replaces the show all in catalog action.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
4 years agowebstaff: Add a few important fields for the holdings view grid
Mike Rylander [Tue, 29 Sep 2015 18:14:04 +0000 (14:14 -0400)]
webstaff: Add a few important fields for the holdings view grid

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>