working/Evergreen.git
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 years agoUse record, not owning_lib, for the part record field. Doh.
Mike Rylander [Wed, 30 Sep 2015 19:45:17 +0000 (15:45 -0400)]
Use record, not owning_lib, for the part record field. Doh.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 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>
10 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>
10 years agoAdd a few important fields for the holdings view grid
Mike Rylander [Tue, 29 Sep 2015 18:14:04 +0000 (14:14 -0400)]
Add a few important fields for the holdings view grid

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoMake the last applied template sticky
Mike Rylander [Tue, 29 Sep 2015 18:01:42 +0000 (14:01 -0400)]
Make the last applied template sticky

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoImprove combo box functionality -- clicking on down arrow shows all options (possibly...
Mike Rylander [Tue, 29 Sep 2015 17:45:02 +0000 (13:45 -0400)]
Improve combo box functionality -- clicking on down arrow shows all options (possibly following filtered options)

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoNormalize the type of values going into in-memory objects
Mike Rylander [Tue, 29 Sep 2015 16:28:16 +0000 (12:28 -0400)]
Normalize the type of values going into in-memory objects

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agowebstaff: replace acn prefix()/suffix() with IDs only when needed
Galen Charlton [Tue, 29 Sep 2015 13:48:26 +0000 (13:48 +0000)]
webstaff: replace acn prefix()/suffix() with IDs only when needed

Fixes an issue that could break saving volumes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: adjust URL when navigating catalog search results
Galen Charlton [Mon, 28 Sep 2015 21:36:58 +0000 (21:36 +0000)]
webstaff: adjust URL when navigating catalog search results

Navigating from record to record after performing a catalog
search now sets the URL in the browser to /eg/staff/cat/catalog/record/{record_id}.
Clicking on the "Back To Results" button will set the URL
back to /eg/staff/cat/catalog/index.

This allows staff to copy and paste record URIs more conveniently.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agoadd angular-location-update dependency
Galen Charlton [Mon, 28 Sep 2015 21:20:46 +0000 (21:20 +0000)]
add angular-location-update dependency

This module adds a $location.update_path() routine to
allow changing the URL without forcing a controller reload.

This module is copyright (c) 2015 anglibs and released under
the MIT license and is taken from
https://github.com/anglibs/angular-location-update.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agoGrid saveConfig can generate bad data (not sure how) but we will avoid duplicates...
Mike Rylander [Mon, 28 Sep 2015 16:41:13 +0000 (12:41 -0400)]
Grid saveConfig can generate bad data (not sure how) but we will avoid duplicates in loadConfig

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoAdd a Save & Exit shortcut to the copy attribute editing pane
Mike Rylander [Mon, 28 Sep 2015 15:33:31 +0000 (11:33 -0400)]
Add a Save & Exit shortcut to the copy attribute editing pane

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoAvoid blowing away the volume value when there is no merge target
Mike Rylander [Mon, 28 Sep 2015 15:03:17 +0000 (11:03 -0400)]
Avoid blowing away the volume value when there is no merge target

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoPass IDs instead of objects for prefix and suffix
Mike Rylander [Mon, 28 Sep 2015 15:02:44 +0000 (11:02 -0400)]
Pass IDs instead of objects for prefix and suffix

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoSpecial case for egOrgSelector value reading/writing in copy templates
Mike Rylander [Mon, 28 Sep 2015 14:41:29 +0000 (10:41 -0400)]
Special case for egOrgSelector value reading/writing in copy templates

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agowebstaff: stylistic fix for MARC editor
Galen Charlton [Thu, 24 Sep 2015 21:08:35 +0000 (21:08 +0000)]
webstaff: stylistic fix for MARC editor

Prevent record type display from overlapping the
bibliographic source selector.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: tweak MARC editor in "edit overlay record"
Galen Charlton [Thu, 24 Sep 2015 20:57:55 +0000 (20:57 +0000)]
webstaff: tweak MARC editor in "edit overlay record"

The save button is now labeled "Modify"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: give more feedback for Z39.50 edit-then-import
Galen Charlton [Thu, 24 Sep 2015 20:52:50 +0000 (20:52 +0000)]
webstaff: give more feedback for Z39.50 edit-then-import

The "edit then import" modal now varies the label of the
MARC editor's save button based on whether one has yet
to import the current record or if one is just making
changes to it after having imported it. The dialog now
also has a button for going to the newly-imported record
in catalog view.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: provide feedback after record imported via Z39.50
Galen Charlton [Thu, 24 Sep 2015 20:07:56 +0000 (20:07 +0000)]
webstaff: provide feedback after record imported via Z39.50

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: teach egConfirmDialog how to set custom labels for buttons
Galen Charlton [Thu, 24 Sep 2015 18:33:58 +0000 (18:33 +0000)]
webstaff: teach egConfirmDialog how to set custom labels for buttons

egConfirmDialog() now accepts optional fourth and fifth
arguments to set custom labels for the "OK" and "cancel"
buttons.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: fix deleting fields in MARC editor
Galen Charlton [Thu, 24 Sep 2015 15:47:07 +0000 (15:47 +0000)]
webstaff: fix deleting fields in MARC editor

When editing a record that has not yet been saved
to Evergreen (either because it is new or because it
is a record coming from a Z39.50 target), ensure that
the context menu 'delete field' operation works.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agowebstaff: make some MARC editor strings translateable
Galen Charlton [Thu, 17 Sep 2015 22:45:36 +0000 (22:45 +0000)]
webstaff: make some MARC editor strings translateable

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agoSelect on focus for tag, indicators, and sf codes
Mike Rylander [Thu, 17 Sep 2015 22:11:11 +0000 (18:11 -0400)]
Select on focus for tag, indicators, and sf codes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoLP 1496977: Duplicate Code in OpenILS::Application::Cat::AssetCommon
Jason Stephenson [Thu, 17 Sep 2015 19:12:40 +0000 (15:12 -0400)]
LP 1496977: Duplicate Code in OpenILS::Application::Cat::AssetCommon

It looks like two lines of code got duplicated in commit e2f6cca0 in
AssetCommon.  This duplication can lead to data loss for the function
update_fleshed_copies.  It also lead to the following warning when
you use OpenILS::Application::Cat::AssetCommon in a script:

"my" variable $sc_entries masks earlier declaration in same scope at
/usr/local/share/perl/5.18.2/OpenILS/Application/Cat/AssetCommon.pm
line 371.

After this patch, the warning disappears.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agoProvide context menu options for adding and removing fields; TODO: i18n on strings
Mike Rylander [Thu, 17 Sep 2015 21:19:50 +0000 (17:19 -0400)]
Provide context menu options for adding and removing fields; TODO: i18n on strings

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoLP#1437110 add Manual Floating Active
Victoria Lewis [Thu, 16 Jul 2015 20:07:04 +0000 (13:07 -0700)]
LP#1437110 add Manual Floating Active

Add Manual Floating Active to Checkin Modifiers in web staff client.

Signed-off-by: Victoria Lewis <“vlewis@catalystitservices.com”>
10 years agoLP#1436980: Default copy circ count to 0 instead of undefined
Mike Rylander [Wed, 16 Sep 2015 14:28:46 +0000 (10:28 -0400)]
LP#1436980: Default copy circ count to 0 instead of undefined

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agoLP#1436980 Total Circulations in Patron Bills
Victoria Lewis [Fri, 24 Jul 2015 22:08:15 +0000 (15:08 -0700)]
LP#1436980 Total Circulations in Patron Bills

Add code to display Total Circulations in
Item Summary on Bills page.

Signed-off-by: Victoria Lewis <vlewis@catalystitservices.com>
10 years agoLP#1483857 Add code to clear barcodes from in-house use
Stephen Moss [Tue, 18 Aug 2015 18:28:25 +0000 (11:28 -0700)]
LP#1483857 Add code to clear barcodes from in-house use

Signed-off-by: Stephen Moss <smoss@catalystitservices.com>
10 years agoProvide hooks for on-save callback for marc edit to, for instance, refresh the record...
Mike Rylander [Tue, 15 Sep 2015 21:32:41 +0000 (17:32 -0400)]
Provide hooks for on-save callback for marc edit to, for instance, refresh the record summary UI

Signed-off-by: Mike Rylander <mrylander@gmail.com>
10 years agowebstaff: record summary now signals if record is deleted
Galen Charlton [Tue, 15 Sep 2015 01:22:12 +0000 (01:22 +0000)]
webstaff: record summary now signals if record is deleted

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agoFix typo in comment in 002.schema.config.sql.
Jason Stephenson [Mon, 14 Sep 2015 20:08:06 +0000 (16:08 -0400)]
Fix typo in comment in 002.schema.config.sql.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agoLP 1495509: Stamping upgrade scripts.
Jason Stephenson [Mon, 14 Sep 2015 19:55:26 +0000 (15:55 -0400)]
LP 1495509: Stamping upgrade scripts.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agoLP#1489955: tweak to work on PostgreSQL 9.1
Galen Charlton [Mon, 14 Sep 2015 15:34:47 +0000 (15:34 +0000)]
LP#1489955: tweak to work on PostgreSQL 9.1

Stored functions written in SQL cannot use parameter
names in their bodies until Pg 9.2.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: update release notes for sprint 2
Galen Charlton [Mon, 14 Sep 2015 13:08:12 +0000 (13:08 +0000)]
webstaff: update release notes for sprint 2

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: explicitly pass record type to MARC editor from Z39.50
Galen Charlton [Fri, 11 Sep 2015 13:40:30 +0000 (13:40 +0000)]
webstaff: explicitly pass record type to MARC editor from Z39.50

This fixes a bug where the Edit then Import action would
pop up an empty MARC editor.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Remove dependency-suggesting indent from "Use checkdigit" default
Mike Rylander [Thu, 10 Sep 2015 19:09:22 +0000 (15:09 -0400)]
webstaff: Remove dependency-suggesting indent from "Use checkdigit" default

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Propagate changes to barcode auto-gen defaults immediately
Mike Rylander [Thu, 10 Sep 2015 19:08:07 +0000 (15:08 -0400)]
webstaff: Propagate changes to barcode auto-gen defaults immediately

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add barcode generation and checkdigit checking
Mike Rylander [Thu, 10 Sep 2015 17:16:20 +0000 (13:16 -0400)]
webstaff: Add barcode generation and checkdigit checking

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: tweak Phys Char Wizard layout
Galen Charlton [Thu, 10 Sep 2015 15:01:42 +0000 (15:01 +0000)]
webstaff: tweak Phys Char Wizard layout

Ensure that if a drop-down is particularly wide, it
can no longer overlap with the previous/next buttons.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz various additions and repairs
Bill Erickson [Thu, 10 Sep 2015 00:52:14 +0000 (20:52 -0400)]
webstaff: Phys Char Wiz various additions and repairs

 * Show <unset> as selector value when no value is selected
 * Properly handle gaps (undefined slots) in 007 field value
 * Return to origin value when dialog Cancel is chosen

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz : wizard continued
Bill Erickson [Tue, 8 Sep 2015 13:23:02 +0000 (09:23 -0400)]
webstaff: Phys Char Wiz : wizard continued

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz : wizard continued
Bill Erickson [Tue, 8 Sep 2015 00:37:40 +0000 (20:37 -0400)]
webstaff: Phys Char Wiz : wizard continued

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz : initial dialog / wizard
Bill Erickson [Mon, 7 Sep 2015 17:46:01 +0000 (13:46 -0400)]
webstaff: Phys Char Wiz : initial dialog / wizard

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz : launcher link
Bill Erickson [Mon, 7 Sep 2015 15:51:39 +0000 (11:51 -0400)]
webstaff: Phys Char Wiz : launcher link

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Phys Char Wiz : initial service funcs
Bill Erickson [Mon, 7 Sep 2015 15:23:48 +0000 (11:23 -0400)]
webstaff: Phys Char Wiz : initial service funcs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: implement Transfer Title Holds from record bucket
Galen Charlton [Thu, 10 Sep 2015 01:06:01 +0000 (01:06 +0000)]
webstaff: implement Transfer Title Holds from record bucket

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Allow optional override of TITLE_LAST_COPY event
Mike Rylander [Thu, 10 Sep 2015 00:15:33 +0000 (20:15 -0400)]
webstaff: Allow optional override of TITLE_LAST_COPY event

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Transfer Copies to Marked Volume
Jason Etheridge [Wed, 9 Sep 2015 22:02:06 +0000 (18:02 -0400)]
webstaff: Transfer Copies to Marked Volume

in Copy Bucket

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Allow editing of /only/ volume data
Mike Rylander [Wed, 9 Sep 2015 23:51:27 +0000 (19:51 -0400)]
webstaff: Allow editing of /only/ volume data

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Allow adding vol/copy to an empty bib (or when no vol/lib is selected)
Mike Rylander [Wed, 9 Sep 2015 23:51:06 +0000 (19:51 -0400)]
webstaff: Allow adding vol/copy to an empty bib (or when no vol/lib is selected)

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: implement Merge Selected Records from record bucket
Galen Charlton [Wed, 9 Sep 2015 22:56:08 +0000 (22:56 +0000)]
webstaff: implement Merge Selected Records from record bucket

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add "add items to bucket" action to holdings maint
Mike Rylander [Wed, 9 Sep 2015 20:26:44 +0000 (16:26 -0400)]
webstaff: Add "add items to bucket" action to holdings maint

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Refactor replace-barcode to be reusable, and reuse it in holdings maint
Mike Rylander [Wed, 9 Sep 2015 17:57:41 +0000 (13:57 -0400)]
webstaff: Refactor replace-barcode to be reusable, and reuse it in holdings maint

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Conjoined items management
Mike Rylander [Wed, 9 Sep 2015 14:17:05 +0000 (10:17 -0400)]
webstaff: Conjoined items management

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: ensure that side-by-side MARC record views don't overlap text
Galen Charlton [Tue, 8 Sep 2015 21:47:49 +0000 (21:47 +0000)]
webstaff: ensure that side-by-side MARC record views don't overlap text

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Z39.50: unbreak MARC editor embedded in overlay
Galen Charlton [Tue, 8 Sep 2015 21:42:49 +0000 (21:42 +0000)]
webstaff: Z39.50: unbreak MARC editor embedded in overlay

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: flat MARC editor now updates model on blur, not change
Galen Charlton [Tue, 8 Sep 2015 20:44:00 +0000 (20:44 +0000)]
webstaff: flat MARC editor now updates model on blur, not change

This fixes a problem where attempting to type in the flat
MARC editor would result in a fromBreaker()/toBreaker() cycle
being run with each keystroke, which (among other things) made
the user have to fight for control of the insertion cursor.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: fix a thinko when saving default Z39.50 targets
Galen Charlton [Tue, 8 Sep 2015 19:33:00 +0000 (19:33 +0000)]
webstaff: fix a thinko when saving default Z39.50 targets

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff Z39.50: don't risk letting default_targets be undefined
Jason Etheridge [Tue, 8 Sep 2015 18:10:33 +0000 (14:10 -0400)]
webstaff Z39.50: don't risk letting default_targets be undefined

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Conjoined item attach-inator
Mike Rylander [Tue, 8 Sep 2015 19:27:22 +0000 (15:27 -0400)]
webstaff: Conjoined item attach-inator

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: implement add to record bucket from catalog view
Galen Charlton [Tue, 8 Sep 2015 19:16:28 +0000 (19:16 +0000)]
webstaff: implement add to record bucket from catalog view

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: More default values for required fields
Mike Rylander [Tue, 8 Sep 2015 18:42:36 +0000 (14:42 -0400)]
webstaff: More default values for required fields

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add support for the fast-add copy status org setting
Mike Rylander [Tue, 8 Sep 2015 16:38:24 +0000 (12:38 -0400)]
webstaff: Add support for the fast-add copy status org setting

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: implement saving default Z39.50 targets
Galen Charlton [Tue, 8 Sep 2015 16:07:36 +0000 (16:07 +0000)]
webstaff: implement saving default Z39.50 targets

Also make the target password input field's type be
"password".

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Use ids for prefix, suffix, label_class
Mike Rylander [Tue, 8 Sep 2015 15:47:49 +0000 (11:47 -0400)]
webstaff: Use ids for prefix, suffix, label_class

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Protect the cloner from undefined values
Mike Rylander [Tue, 8 Sep 2015 15:47:27 +0000 (11:47 -0400)]
webstaff: Protect the cloner from undefined values

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: MARC editor button layout improvement
Mike Rylander [Fri, 4 Sep 2015 20:47:43 +0000 (16:47 -0400)]
webstaff: MARC editor button layout improvement

Also, add mark-vol-transfer-dest and mark-conjoined-dest

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: use localStorage for the overlay-record selection
Jason Etheridge [Wed, 12 Aug 2015 17:52:05 +0000 (13:52 -0400)]
webstaff: use localStorage for the overlay-record selection

in the Import Record from z39.50 interface

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: add Mark as Overlay Target to MARC editor
Jason Etheridge [Thu, 3 Sep 2015 05:49:19 +0000 (01:49 -0400)]
webstaff: add Mark as Overlay Target to MARC editor

no bells and whistles though :)

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add confirmation before deleting copies/volumes
Mike Rylander [Fri, 4 Sep 2015 19:32:35 +0000 (15:32 -0400)]
webstaff: Add confirmation before deleting copies/volumes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Allow deleting copys/vols ... need a speed bump?
Mike Rylander [Fri, 4 Sep 2015 17:59:14 +0000 (13:59 -0400)]
webstaff: Allow deleting copys/vols ... need a speed bump?

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add a save-and-continue mode
Mike Rylander [Fri, 4 Sep 2015 17:57:16 +0000 (13:57 -0400)]
webstaff: Add a save-and-continue mode

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Provide a fieldmapper-aware cloning method
Mike Rylander [Fri, 4 Sep 2015 17:56:33 +0000 (13:56 -0400)]
webstaff: Provide a fieldmapper-aware cloning method

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Make next-barcode-on-enter happy
Mike Rylander [Fri, 4 Sep 2015 14:56:56 +0000 (10:56 -0400)]
webstaff: Make next-barcode-on-enter happy

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Enable Fast Item Add functionality in the MARC editor, and improve button...
Mike Rylander [Fri, 4 Sep 2015 12:47:03 +0000 (08:47 -0400)]
webstaff: Enable Fast Item Add functionality in the MARC editor, and improve button layout

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: add additional FF definitions for authority records
Galen Charlton [Thu, 3 Sep 2015 21:47:25 +0000 (21:47 +0000)]
webstaff: add additional FF definitions for authority records

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: put heading validation lookups in a promise chain
Galen Charlton [Thu, 3 Sep 2015 21:27:25 +0000 (21:27 +0000)]
webstaff: put heading validation lookups in a promise chain

Doing this to avoid spamming potentially a couple dozen
authority record lookups all at once.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: improve performance of open-ils.search.authority.simple_heading.from_xml
Galen Charlton [Thu, 3 Sep 2015 21:13:27 +0000 (21:13 +0000)]
webstaff: improve performance of open-ils.search.authority.simple_heading.from_xml

Searching authority.record_entry by comparing are.simple_heading
with the results of authority.simple_normalize_heading() can result
in bad query plans; if we calculate the results of that function
first, we have a much better chance of hitting the index on
simple_heading.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: add Validate (headings) button to MARC editor
Galen Charlton [Thu, 3 Sep 2015 20:26:24 +0000 (20:26 +0000)]
webstaff: add Validate (headings) button to MARC editor

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add Request Items to copy buckets
Mike Rylander [Thu, 3 Sep 2015 18:24:16 +0000 (14:24 -0400)]
webstaff: Add Request Items to copy buckets

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: prune empty fields and subfields before saving MARC record
Galen Charlton [Thu, 3 Sep 2015 17:17:59 +0000 (17:17 +0000)]
webstaff: prune empty fields and subfields before saving MARC record

This implements functionality that was handled server-side
by the XUL staff client.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add modal "request items" to holding view
Mike Rylander [Thu, 3 Sep 2015 16:42:33 +0000 (12:42 -0400)]
webstaff: Add modal "request items" to holding view

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: make authorityControlSet in egTagTable actually be a singleton
Galen Charlton [Thu, 3 Sep 2015 16:03:05 +0000 (16:03 +0000)]
webstaff: make authorityControlSet in egTagTable actually be a singleton

This resolves an issue where the control set can be incompletely
initialized when jumping from creating a new bib to opening
in in catalog view.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: implement Create New MARC Record
Galen Charlton [Thu, 3 Sep 2015 15:47:21 +0000 (15:47 +0000)]
webstaff: implement Create New MARC Record

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Edit items from copy buckets
Mike Rylander [Thu, 3 Sep 2015 13:54:33 +0000 (09:54 -0400)]
webstaff: Edit items from copy buckets

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Support adding copies and volumes
Mike Rylander [Thu, 3 Sep 2015 13:11:30 +0000 (09:11 -0400)]
webstaff: Support adding copies and volumes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Transfer volume and item actions
Mike Rylander [Thu, 3 Sep 2015 12:21:20 +0000 (08:21 -0400)]
webstaff: Transfer volume and item actions

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Avoid adding deleted notes that were created in the same session
Mike Rylander [Wed, 2 Sep 2015 20:45:42 +0000 (16:45 -0400)]
webstaff: Avoid adding deleted notes that were created in the same session

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Copy note bug fixing
Mike Rylander [Wed, 2 Sep 2015 20:43:16 +0000 (16:43 -0400)]
webstaff: Copy note bug fixing

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add copy note creation/editing
Mike Rylander [Wed, 2 Sep 2015 20:12:44 +0000 (16:12 -0400)]
webstaff: Add copy note creation/editing

TODO: move copy note dialog to a service so others can use it

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Support fleshed updating of copy notes
Mike Rylander [Wed, 2 Sep 2015 20:03:35 +0000 (16:03 -0400)]
webstaff: Support fleshed updating of copy notes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Dirty-data watcher stops unload when there is unsaved data
Mike Rylander [Wed, 2 Sep 2015 15:46:28 +0000 (11:46 -0400)]
webstaff: Dirty-data watcher stops unload when there is  unsaved data

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
10 years agowebstaff: Add call number attrs to copy templates
Mike Rylander [Wed, 2 Sep 2015 14:56:45 +0000 (10:56 -0400)]
webstaff: Add call number attrs to copy templates

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>