Kathy Lussier [Wed, 17 Jan 2018 04:40:32 +0000 (23:40 -0500)]
LP#
1738249: Item status column picker fixes
Adds some fixes to the column pickers in the web staff client Item Status
interface:
* The Circulation Library field now displays the asset.copy circ library
instead of the checkout library.
* The Circulation Library and Checkout / Renewal Library now show the
shortname instead of the full name.
* A typo fix so that Remaining Renewals display
Conflicts:
Open-ILS/src/templates/staff/cat/item/t_list.tt2
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Chris Sharp [Tue, 21 Aug 2018 18:22:05 +0000 (14:22 -0400)]
LP#
1788260 - Break out in-house-use non-cat circulations.
Previously, all non-cataloged circulations were grouped
together, causing problems for libraries who need to
exclude in-house circulations from circ counts.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Bill Erickson [Tue, 19 Jun 2018 15:27:43 +0000 (11:27 -0400)]
LP1739284 Bib summary fetches classification scheme
Always fetch the classification scheme org setting (or access the cached
value) instead of relying on the value getting stored in advance in
egEnv.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Galen Charlton [Fri, 29 Jun 2018 18:45:27 +0000 (14:45 -0400)]
LP#
1642344: XUL report cloning
This patch allows report templates of version 4 and earlier
(which would have been created by the XUL staff client) to
be upgraded to template version 5 (used by the web staff
client) when the user clones a report. This closes a limitation
introduced in the reporter module for the web staff client.
Note that during the conversion, inner joins are used by
default when IDL classes have a 'has_a' relation rather than
defaulting to left outer joins, improving correctness of the
generated SQL query.
To test
-------
[0] Apply the patch.
[1] In a test database that has reporter templates created
by (or for) the XUL staff client, create clones of
those templates.
[2] Verify that the output of reports created using the new
templates matches output of reports from the original
templates.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Bill Erickson [Tue, 7 Aug 2018 19:00:12 +0000 (15:00 -0400)]
LP#
1747512 Non-cat checkout fix display/print
Fixes an issue which caused an exception to be thrown during non-cat
item checkout in the browser client, preventing the checkout from being
properly displayed in the checkout page, the Items Out list, and on the
receipt.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Bill Erickson [Tue, 7 Aug 2018 20:26:27 +0000 (16:26 -0400)]
LP#
1785887 edi_order_pusher.pl sets message account
Apply the edi_message.account value when sending EDI order messages via
edi_order_pusher.pl. This solves a problem where EDI ORDERS message
were not visible in the interface, because there was no way to complete
the permission check.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Mike Rylander [Mon, 16 Apr 2018 14:29:05 +0000 (10:29 -0400)]
LP#
1745233: Don't test for LURIs during copy location searches
When a user is searching with a copy location or location group filter,
Located URIs should not be used to include records in the result set because
they are not "within" a copy location.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Kathy Lussier [Wed, 17 Jan 2018 18:17:02 +0000 (13:17 -0500)]
LP#
1743639: Stamping upgrade script for copy location group visibility
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Tue, 16 Jan 2018 21:26:31 +0000 (16:26 -0500)]
LP#
1743639: Test location as proxy for location group
Location groups are a table remove from copies, and can cause very large
updates to the copy vis cache. So, we will expand location groups to
locations, in situ, to avoid this problem and the need to supply a trigger
to update th copy vis cache for groups. This will allow us to reclaim
the location group bit in the visibility cache namespace if necessary, at
a later date.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Tue, 16 Jan 2018 19:39:08 +0000 (14:39 -0500)]
LP#
1743639: opac_visible on acplg is not what it seems
The asset.copy_location_group table has a column called opac_visible.
However, unlike other tables with a column of that name, it controls the
visibility of the location group itself, not the visibility of the copies
within the group. This is regretable because the 3.0+ search code thinks
that it should hide copies.
This commit adjusts the default location group filter applied to patron
searches so that they act as expected.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Mon, 8 Jan 2018 21:43:26 +0000 (16:43 -0500)]
LP#
1736419: Bib visibility tests get OR'd
Either the source or the existance of a Located URI will trigger record
visibility, so we will OR them together.
NOTE: This branch is dependant on the branch supplied on LP#
1730758. Without
that fix, the bib-level visibility attributes are not updated properly when
Located URIs are added or changed.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Fri, 5 Jan 2018 22:04:53 +0000 (17:04 -0500)]
LP#
1736419: Located URIs vs QueryParser, round 2, part deux
Now we will be less strict about the 'act_as_copy' flag, and only check for
enabledness, rather than the truth of its value column.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Thu, 4 Jan 2018 23:12:17 +0000 (18:12 -0500)]
LP#
1736419: Located URIs vs QueryParser, round 2
The site() filter and #staff modifier are used to decide when and how to
include certain query filters, such as circ_lib or luri_org. Unfortunately,
site() is sometimes excluded (whole-tree search) and the test for staff-
iness was not specific enough, leading to incorrect queries in those cases
where information was lacking. Now, we treat site() specially, forcing a
default of "top-of-tree", and we check for the #staff modifier directly
where necessary.
Note: this commit also addresses LP#
1736992 which is about staff searches
using the limit-to-available modifier. As a side effect of the special
site() treatment, that issue is resolved.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Tue, 16 Jan 2018 23:54:47 +0000 (18:54 -0500)]
LP#
1743650: Bib vis testing needs different handling
For bib-level visibility testing, we can only use the source helper for
positive inclusion, and have to deal with LURIs on a case-by-case basis.
This is because, unlike the copy visibility cache, the LURI cache is pre-
composed in a single value for all LURIs on a record, not separate ones
for each. This is fine, as we just need to find the effectively visible
org units and test for that subset of the relevant orgs. This commit provides
a sub to test for that, and handles LURI test composition at the perl
level rather than in the database.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Chris Sharp [Fri, 27 Jul 2018 15:57:19 +0000 (11:57 -0400)]
fixing typo in PINES documentation link
Chris Sharp [Tue, 24 Jul 2018 17:19:07 +0000 (13:19 -0400)]
LP#
1739286: Revert "lp1739286 default search box in Z39.50"
This commit caused unexpected side effects, reported in bug
1782401
( https://bugs.launchpad.net/evergreen/+bug/
1782401 ). Reverting before
it ends up in a release.
This reverts commit
6996a3630dea3d6fd967c127417a800aba561603.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Mike Rylander [Fri, 6 Jul 2018 19:33:05 +0000 (15:33 -0400)]
LP#
1773417: Use CN owning lib when adding copies
This defaults the owner of new copies added to existing call numbers to the
owning lib of the call number, rather than the workstation library.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Wells [Tue, 12 Jun 2018 18:20:03 +0000 (14:20 -0400)]
LP#
1773417 Revamp item and call number tranfers
This commit attempts to achieve the goals of both simplification and
feature completeness/flexibility. In brief, limit the number of
marking and transfer options, then have the code decide the right
action to take given the circumstances.
There are now just two "marking" actions, one at the record level,
one at the holdings level. The holdings level mark will automatically
mark the destination as specifically as possible from the selected row,
which means either to the library or call number (vol) level.
We are also now down to two transfer options: transfer the selected
item, or transfer the selected call number. Either option will use
as much given context as possible, then fill in any blanks with
reasonable defaults and actions.
As part of the change, a number of functions and variables are also
renamed. This is all done for clarification, and in most cases is
due to the variable or function now being used more generally (i.e.
it is used in both the item and vol context, so it is confusing to
be named 'volume_transfer_target', etc.).
Finally, clear up a fair bit of now redundant and unused code.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Dan Wells [Wed, 30 May 2018 16:43:08 +0000 (12:43 -0400)]
LP#
1773417 Improve empty volume handling
The crux of this patch is to rethink how we handle the volume-only
editing interface. Previously, we were attempting to distinguish
between when the volume was the only thing *showing* and when it
was actually the only thing *existing*.
We have now removed that distinction, so the volume-only interface
only cares about the volume regardless of the possible presence of
a copy. This simplifies the interface logic, and reduces or
eliminates the chance of the hidden copy editor interfering with
the volume adding/editing functions.
Other smaller changes here include:
- Teach the edit function to pick up copy-less "empty" call numbers
- Reduce and clarify the arguments to spawnHoldingsAdd
We had three arguments, but two were simply inversions of one another
in every case. Reduce to two arguments and give them more meaningful
labels
- Fix typo ("emtpy") preventing proper button disabling for blank call
numbers
- Move call number emptiness check from updateLabel() function to value
watch instead. This ensure that any updates to that value (even those
not using the update function) will flip the flag appropriately. This
fixes a timing bug which prevented call numbers from being saved
without further edits in some cases.
Ultimately, as J. Boyer suggests, we would be better off not generating
the copy editor at all (rather than just hiding it), but we're a few
steps off from that yet.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Dan Wells [Sat, 26 May 2018 02:20:49 +0000 (22:20 -0400)]
LP#
1773417 Relabel "Add Volumes" button
Now that we have an interface for adding empty volumes, we need to be
more explicit that this button is for adding complete copies, not just
volumes.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Dan Wells [Wed, 23 May 2018 18:39:49 +0000 (14:39 -0400)]
LP#
1715697 Refactor empty volume adding
The new ability to add empty volumes was causing the existing
ability to add new volume/copy combos to not work as expected.
More specifically, added volume/copy combos would not generate
in the selected org_unit, but always in the ws_ou.
To correct this, this change refactors/reverts significant portions of
920f585052ef809ea6ca1e447d416ada871b467c. Reasons include:
- Existing code distinguishs 'adds' from 'edits' via two wrappers,
spawnHoldingsAdd and spawnHoldingsEdit. With this commit, empty volume
adding now extends the 'add' function rather than the 'edit' one, as
this seems more intuitive.
- The previous change had extended both the catalog app and another
similar directive which is only used in a merging context. Since the
merge context had no ability to add anything, and the new code was not
wired up to the interface, this has simply been removed (for now).
- The volcopy app is set up around the concept of passed in
'prototype' vol/copy objects of varying degrees of completeness. It
then loops over these to generate the interface. The previous code
extended this setup with a loop over a potential 'owners' array to
generate empty volumes, but this unrelated loop within a loop seemed
counterintuitive (and was the source of the original bug). This change
has been removed, and empty volume creation now hews more closely to
the original model.
While this commit appears large, when viewed in the context of the
pre-
920f58505 code, it is quite limited in scope.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Mike Rylander [Sun, 29 Apr 2018 22:56:38 +0000 (18:56 -0400)]
LP#
1737812: Simplify holdings tranfser options
Instead of providing direct actions for transfer of library, or record, or
both, have just one volume transfer option that Does the Right Thing (tm).
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Mike Rylander [Wed, 25 Apr 2018 16:32:15 +0000 (12:32 -0400)]
LP#
1715697: Ability to add empty volumes
Staff can add volumes to any library that is allowed to have holdings.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Mike Rylander [Tue, 24 Apr 2018 19:21:37 +0000 (15:21 -0400)]
LP#
1715697 &
1738242 &
1753005: Holdings Filtering Checkboxes
When the appropriate checkbox is selected, display subordinate libraries of
the context library that do not have any holdings or empty volumes.
Additionally, the holdings view checkboxes for limiting detail display can
cause console alerts, and should be made visually interdependent. This commit
addresses both of those issues.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Mike Rylander [Thu, 12 Jul 2018 15:03:44 +0000 (11:03 -0400)]
LP#
1710401: Z39.50 should notice overlay target change
Currently, we record the overlay target at UI startup and use that going
forward until the interface is reloaded. This commit inspects the local
storage version of the target for changes and offers the user the chance to
proceed with the new target or cancel the action. If the target has been
unset, the user is given the option of proceeding with the load-time target.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Jason Stephenson [Thu, 24 May 2018 13:34:17 +0000 (09:34 -0400)]
LP
1772993: Ability to blank Age Hold Protection in Vol/Copy Editor.
Add the <NONE> option to the age-based hold protection field in the
web staff client Vol/Copy Editor.
To test:
1. Add a value for age-based hold protection to a copy.
2. Attempt to remove the value in the copy editor. Note that the
dropdown does not allow you to do so.
3. Apply this commit.
4. Repeat step 2. Now there is a <NONE> option that removes the value
from the copy.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Kyle Huckins [Tue, 1 May 2018 18:28:36 +0000 (18:28 +0000)]
lp1759327 Populate Copy Templates Floating Dropdown
- Add update watcher and call itemSvc.get_floating_groups within
egVolTemplate directive to properly populate dropdown when accessing
volcopy editor from local administration.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Jeanette Lundgren <jlundgren@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Jeff Davis [Tue, 24 Apr 2018 21:00:07 +0000 (14:00 -0700)]
LP#
1749996: add option to remove floating in web client copy editor
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Jason Etheridge [Tue, 10 Jul 2018 23:46:04 +0000 (19:46 -0400)]
lp1739286 default search box in Z39.50
This change tweaks the layout of search fields in the web client Z39.50
interface and adds radio buttons for the default search field to auto-focus.
The behavior is "sticky" without the need for an explicit Save action. If the
current default field is not present due to a given combination of selected
services, then no field will be focused by default.
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Jason Boyer [Mon, 9 Jul 2018 16:47:10 +0000 (12:47 -0400)]
LP1736243: SMS Carrier Editing in Patron Editor
The XUL Client treats many user setting entries as
quoted strings. Angular needs some help to recognize
that it needs to convert these incoming "strings"
to ints for use as the data model when editing. The
str-to-int directive gives it this hint.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Terran McCanna [Mon, 9 Jul 2018 18:04:46 +0000 (14:04 -0400)]
PINES Syndetics Customization
This attempt leaves the Syndetics perl code in place to retrieve images,
but ignores it in favor of hardcoding in the Added Content button and
modal code on the item details page.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Tue, 10 Jul 2018 10:40:23 +0000 (06:40 -0400)]
Revert "PINES Customization for Syndetics"
This reverts commit
329d5d9dbd51d8bf2c7ab3b2e447e047ddd7e3a0.
Bill Erickson [Tue, 19 Jun 2018 18:23:42 +0000 (14:23 -0400)]
LP#
1751368 Items-out checkin of deleted copies
Allow deleted copies to be checked in from the patron items out list.
Checkin is based on copy ID instead of barcode. Note that both values
are sent to the server, to reduce the number of changes in the UI code,
but the API inspects the ID first.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Mike Rylander [Wed, 6 Dec 2017 23:18:29 +0000 (18:18 -0500)]
LP#
1730758: Track record visibility on all Located URI DML
This commit simplifies the handling of Located URI call numbers by separating
them from normal call numbers. This will allow proper updating of bib-level
visibility attributes for all actions that may happen to a Located URI.
We also insure that we don't return a NULL INT[] as an attribute set for
either copies or bibs. This was always impossible for copies, but was
possible for bibs. Now both are future-proof.
The upgrade script contains a post-transaction command to forcibly update the
visibility attributes of all bibs that make use of Located URIs. It may take
a while to run on large datasets. If it it running too long, it can be
canceled and the following psql commands will create and run a script that
will perform the same action serially over time without blocking writes to
bibs:
\t
\o /tmp/luri_visibility_update.sql
SELECT 'UPDATE biblio.record_entry SET ' ||
'vis_attr_vector = biblio.calculate_bib_visibility_attribute_set(id) ' ||
'WHERE id = ' || id || '; SELECT ' || id || ';'
FROM biblio.record_entry
WHERE id IN (
SELECT DISTINCT cn.record
FROM asset.call_number cn
WHERE NOT cn.deleted
AND cn.label = '##URI##'
AND EXISTS (
SELECT 1
FROM asset.uri_call_number_map m
WHERE m.call_number = cn.id
)
);
\o
\t
\i /tmp/luri_visibility_update.sql
It will output the id of each updated bib so that the script can be killed
and then edited to remove completed bibs. The remainder can be run at a
later time.
NOTE: When the internal flag 'ingest.reingest.force_on_same_marc' is enabled,
we do NOT update the bib's visibility attributes, as doing so causes a loop
and an eventual trigger stack violation. This flag should ONLY be used when
forcing reingest of record attributes (NOT visibility attributes), search,
facet, and display fields, so if using this flag under normal operation,
proceed at your own risk and know that Located URI and bib source changes
will not be reflected in the visibility attributes of the record.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Dan Pearl [Thu, 7 Jun 2018 18:20:49 +0000 (14:20 -0400)]
LP1739271 - Fix Item Edit when Part Present
Cannot edit item or call number after mono part
assigned. This was indeed a timing error where parts were referenced before
they were completely assigned to the structure in which they were to reside.
I have restructured the code to ensure the parts are available.
Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Bill Erickson [Mon, 8 Jan 2018 15:37:17 +0000 (10:37 -0500)]
LP#
1741072 Volcopy editor deposit amount format repairs
Use the new str-to-float formatter for deposit amount, consistent with
the other currency fields.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Garry Collum [Mon, 4 Jun 2018 21:37:58 +0000 (17:37 -0400)]
LP#
1721139 User Buckets - View Batch Changes date/time display not wrapping.
This fixes a wrapping issue in Firefox for the date/time display in the 'View Batch Changes' modal in user buckets. The css change was made to style.css.tt2 because the class can be used for other tables with text wrapping issues.
To test.
1. Using user buckets, make some batch changes on some patrons and roll back some of those changes.
2. Using Firefox, click on the 'View Batch Edits' button.
3. Apply patch.
4. Delete browser cache, and then log back in and 'View Batch Edits' again.
Signed-off-by: Garry Collum <gcollum@gmail.com>
McCanna [Tue, 5 Jun 2018 18:01:36 +0000 (14:01 -0400)]
PINES Customization for Syndetics
(This is attempt 3 - ignore previous attempts.)
- Eliminates unnecessary calls in the perlmod for all types of content.
- Creates new modal popup instead of creating tabbed links.
- Copies syndetics url & id to eg_vhost.conf for easier access by tt2.
- Updates extras.tt2 to always expand added content section if content.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Mon, 4 Jun 2018 17:44:20 +0000 (13:44 -0400)]
Revert "LP#
1764542 - Update older sites to MODS 3.3"
This reverts commit
1f4123fbcfc1285f2914ea7ec8bafa34accc572a.
Chris Sharp [Mon, 4 Jun 2018 17:10:31 +0000 (13:10 -0400)]
LP#
1764542 - Update older sites to MODS 3.3
MODS 3.3 support was introduced in March 2009, but this
change was never included in an upgrade script. Older
sites will need to apply this update to avoid scary
segmentation faults, and it shouls be harmless for newer
sites.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Bill Erickson [Thu, 31 May 2018 14:58:38 +0000 (10:58 -0400)]
LP#
1774427 Parse DoB dates as whole dates
Fixes DoB parsing in the browser client patron edit interface by
creating date objects from a whole YMD date string instead of compiling
the date as collection of pieces. Compiling dates from pieces (calling
setFullYear(), setMonth(), etc.) can have unexpected consequences,
because a change of month can result in a change of days as well, if the
number of days in the date object exceeds the capacity of the selected
month.
For example:
---
> d = new Date()
2018-05-31T14:59:26.186Z
> d.setMonth(1)
1520092766186
> d
2018-03-03T15:59:26.186Z
--
Parsing as Date(YYYY,MM,DD) instead avoids this kind of shuffling.
To test
[1] Log in to the staff client on the 31st day of the month :)
[2] Change a patron's DoB to a month that does not contain 31 days.
[3] Save patron and note on reload, the DoB shows the wrong value.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Galen Charlton [Mon, 30 Apr 2018 21:03:26 +0000 (17:03 -0400)]
LP#
14973322: (follow-up) allow profile-only patron searches
This patch removes the implicit requirement introduced by the previous
patch that a field other than profile be used in the patron search.
For performance reasons, it might be good to mark permission.grp_descendants()
as stable.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Jason Boyer [Fri, 20 Apr 2018 18:49:25 +0000 (14:49 -0400)]
LP14973322: Search for Users by Profile
Stop treating profile like a text value, instead
include users in the selected profiles and descendants.
To test
-------
[0] Search for users by last name (and / or first) and do not
select a profile, take note of results
[1] Select the top of your permission group tree (Users, likely) and
search again, results should be the same.
[2] Select a group further down the tree (Circulators, Administrators,
Patrons, etc.) and repeat the search, there should only be results
from that group and its descendants.
[3] Finally, select a group with no child groups. Results will only be
that specific group.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Galen Charlton [Mon, 30 Apr 2018 20:14:52 +0000 (16:14 -0400)]
LP#
1497322: add Perl live_t regression and unit tests for patron searching
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Garry Collum [Fri, 25 May 2018 20:31:21 +0000 (16:31 -0400)]
LP#
1730003 Courier code doesn't display in transit slip receipt preview
Adds seed data for the transit and hold-transit slip preview in the print template editor.
To test add {{dest_courier_code}} as a variable in either the transit slip or hold transit slip template.
Signed-off-by: Garry Collum <gcollum@gmail.com>
Cesar Velez [Fri, 30 Mar 2018 15:32:45 +0000 (11:32 -0400)]
LP#
1759352-webstaff fix checkout specific due date UX
The Date Options dropdown UI added as a result of bug
1717025
hides the state of the "checkboxes" for custom due date and
the datepicker wasn't disabled when custom due date was disabled.
This addresses these UX issues, to that the user has visual feedback
as to the state of that option.
Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Garry Collum [Thu, 24 May 2018 02:17:38 +0000 (22:17 -0400)]
LP#
1745232 - Bill History Receipt doesn't have Finish Date
Adds xact.finish and xact.summary.last_payment to the example data. Also adds xact.summary.last_payment_ts to the template body to indicate when the last payment was made. Also adds a list of variables that can be used in the template in the template's description.
To test -
1. apply the patch
2. find a patron with billings, or add some billings to a patron record.
3. make payments on some of the billings using various methods.
4. go to billing history and print the history list.
Signed-off-by: Garry Collum <gcollum@gmail.com>
Bill Erickson [Tue, 19 Dec 2017 22:50:38 +0000 (17:50 -0500)]
LP#
1739465 EDI consistent use of buyer org unit san
Use the org unit (buyer) SAN instead of the the seller SAN when the
BUYER_ID_INCLUDE_VENDCODE EDI attribute is enabled.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
McCanna [Wed, 23 May 2018 20:53:26 +0000 (16:53 -0400)]
PINES Local Customization: Modify Labels for Stored Preferences
Add wording to Workstation > Stored Preferences page tabs to indicate
which tab is related to Hatch settings and which tab is related to
browser settings.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
McCanna [Wed, 23 May 2018 21:00:57 +0000 (17:00 -0400)]
PINES Local Customization: Hide Set Default View Button
This hides the Set Default View button that is in the web staff client
on the catalog item pages. Clicking the button has caused white screen
problems that have not been resolved. (There is also a button on the Admin >
Workstation page, but that was hidden in a different local customization
patch.)
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Tue, 22 May 2018 19:16:59 +0000 (15:16 -0400)]
PINES does not use patron credit, so remove it from view
Chris Sharp [Mon, 14 May 2018 17:52:10 +0000 (13:52 -0400)]
Revert "temp fix for broken library locator"
This reverts commit
a1ab46766e8fcb313bc039ccf46313fcc8054334.
Chris Sharp [Mon, 14 May 2018 17:46:38 +0000 (13:46 -0400)]
temp fix for broken library locator
Bill Erickson [Mon, 30 Apr 2018 18:27:41 +0000 (14:27 -0400)]
LP#
1740537 Transit dialog showing wrong branch
Always retrieve the latest copy transit from the server when displaying
the copy transit dialog. This resolves an issue where a just-closed
transit is used instead.
Add a filter to avoid canceled transits.
Make the transit lookup call authoritative, since the transit may have
just been created.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Chris Sharp [Mon, 7 May 2018 12:31:56 +0000 (08:31 -0400)]
LP#
1743854 - Correct initial cursor focus in in-house use UI
Previously, the "Record In-House Use" UI opened with the cursor
focused in the "# of Uses" field, which required staff to manually
select the "Barcode" field. It is far more intuitive to have the
"Barcode" field have initial focus.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
McCanna [Wed, 25 Apr 2018 16:24:06 +0000 (12:24 -0400)]
PINES: Further customizations to new books feed
Hid availability because it didn't differentiate between in process
and checked out. Added copydepth to url because it wasn't working on
production without it.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Tue, 10 Apr 2018 15:40:35 +0000 (11:40 -0400)]
LP#
1746300: Fix circulation counts in Item Status Details
Currently, the "Total Circs -Current Year" and "Total Circs -
Prev Year" numbers are seemingly randomly incorrect. This is
caused by pulling the numbers from the "circbyyr" fieldmapper
object, which results in an array of 2 rows (one for renewals
and one for new circs). The current JS only displays the count
for the first item in the array, ignoring the other.
This branch totals the two, resulting in the right result for each
year's circulations.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Jason Boyer [Mon, 29 Jan 2018 22:02:01 +0000 (17:02 -0500)]
LP1737540: Add Patron Information to Receipts
Adds the following fields to a patron object on print_data:
first_given_name
second_given_name
family_name
suffix
barcode
money_summary.balance_owed
money_summary.total_paid
money_summary.total_owed
expire_date
alias
has_email
has_phone
On the following receipts: Checkout, Items Out, and Bill Payment.
(money_summary left out on bill payment because it will always be out of date.)
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Jason Stephenson [Fri, 13 Apr 2018 17:56:00 +0000 (13:56 -0400)]
LP
1735539: Now with streaming action.
Modify item service selectedHoldingsCopyDelete method one more time to
use streaming response instead of getting all results in a single,
atomic call. This should better handle large numbers of selected
items.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Jason Stephenson [Fri, 13 Apr 2018 13:38:39 +0000 (09:38 -0400)]
LP
1735539: Simplify item service selectedHoldingsCopyDelete.
Remove the var copy_objects and the unnecessary push of the results
into var copy_objects.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Jason Stephenson [Thu, 12 Apr 2018 14:47:40 +0000 (10:47 -0400)]
Lp
1735539: Fix Item Status ability to delete multiple copies.
Set atomic to true for the PCRUD search in the item service's
selectedHoldingsCopyDelete method, and do an angular.forEach over the
results to properly fill the copy_objects array so that all copies end
up in it. As it was only 1 copy was getting into the array.
To reproduce the bug:
1. Open Item Status in the web staff client.
2. Load multiple items, perhaps by uploading a file of barcodes.
3. Select more than 1 item from the list.
4. Choose "Delete Items" from the Actions menu.
5. Note that the dialog indicates that you will delete 1 copy.
6. Click the Cancel button in the dialog.
To test, after applying the fix branch:
1. Open Item Status in the web staff client.
2. Load multiple items, perhaps by uploading a file of barcodes.
3. Select more than 1 item from the list.
4. Choose "Delete Items" from the Actions menu.
5. Note that that the dialog indicates you will delete X copies,
where X is the number of items selected.
6. Click OK and confirm that all copies were deleted.
7. You can confirm 6 by reloading the interface and uploading the
file of barcodes again.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Jason Stephenson [Mon, 2 Apr 2018 20:14:43 +0000 (16:14 -0400)]
LP1760662: Item Status Holdable Field Display Follow-up
Remove the boolText filter because it was always return false.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Jason Boyer [Mon, 2 Apr 2018 17:55:02 +0000 (13:55 -0400)]
LP1760662: Item Status Holdable Field Display
The Holdable field on the Summary tab of the Detail View
of Item Status was displaying the value for OPAC Visible.
Let's change that from opac_visible() to holdable().
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Jason Stephenson <jason@sigio.com>
McCanna [Fri, 13 Apr 2018 20:37:11 +0000 (16:37 -0400)]
KPAC Art and Features for SRP 2018
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
McCanna [Fri, 13 Apr 2018 16:15:40 +0000 (12:15 -0400)]
Customization to default print template for Hold Shelf Slip
Fixed alignment of notification options.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
McCanna [Fri, 13 Apr 2018 16:25:47 +0000 (12:25 -0400)]
PINES Customization to Self-check Wording
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Bill Erickson [Thu, 29 Mar 2018 21:06:16 +0000 (17:06 -0400)]
LP#
1729934 Webstaff display org-scoped penalties
Consistent with the XUL client, only display patron standing penalties
(AKA Messages) that are linked to an org unit which is an ancestor,
matching, or descendant org unit of the workstation (e.g. the full
path).
To test:
[1] Create a patron Message which applies to a branch using a branch or
null-depth penalty (e.g. at BR1).
[2] Create a second message that links to the root org unit (e.g. CONS)
via depth=0 penalty.
[2] Log out and back in to the browser client at a workstation under a
different section of the org unit tree (e.g. BR3) and confirm the
Messages created at BR1 do not display, but the messages created at CONS
do.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Bill Erickson [Fri, 5 Jan 2018 19:55:56 +0000 (14:55 -0500)]
LP#
1729934 Webstaff penalty create org/depth repair
Apply correct org unit to patron penalties created in the web staff
client. Specifically, be sure the standing penalty depth value is
honored when set.
Commit replaces manual pcrud creation with the XUL-tested API, which
calculates the correct org unit by depth for us.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Chris Sharp [Tue, 10 Apr 2018 15:40:35 +0000 (11:40 -0400)]
LP#
1746300: Fix circulation counts in Item Status Details
Currently, the "Total Circs -Current Year" and "Total Circs -
Prev Year" numbers are seemingly randomly incorrect. This is
caused by pulling the numbers from the "circbyyr" fieldmapper
object, which results in an array of 2 rows (one for renewals
and one for new circs). The current JS only displays the count
for the first item in the array, ignoring the other.
This branch totals the two, resulting in the right result for each
year's circulations.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Galen Charlton [Fri, 23 Mar 2018 18:48:02 +0000 (14:48 -0400)]
LP#
1758360: handle DOB display logic in egPatronSummary correctly
This patch ensures that the patron DOB will be displayed or
obscured correctly by the standalone egPatronSummary directive
in the same way that the patron app does.
To test
-------
[1] In the web staff client, do a patron search, select two patrons,
then click the Merge Patrons button.
[2] Note that the patron DOB is not displayed in the modal.
[3] Apply the patch and repeat step #1.
[4] This time, the patron DOB will be displayed (if the
circ.obscure_dob library setting is not enabled) or the
the field label will be clickable (and clicking it will
cause the DOB to be displayed).
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
McCanna [Tue, 23 Jan 2018 20:16:58 +0000 (15:16 -0500)]
PINES Temp Fix: Hide Adv Search Default Pane
Hide section that sets advanced search default pane
in web client because it causes problems in Chrome.
Can un-hide when bug
1731272 is fixed.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Bill Erickson [Mon, 19 Mar 2018 19:22:44 +0000 (15:22 -0400)]
LP#
1361258 Patron reg repair user settings saving/loading
Avoid caching user setting values at the service (app) level in the user
editor. In other words, always fetch a fresh copy of the current user's
setting with each instance of the editor page.
This solves a number problems where stale versions of the cached data
were referenced and acted on, both when displaying an updating user
settings.
Additionally, ensure that clone user and stage user data is refreshed
on all page instances as the URL params that affect these values can
change per instance.
Other data that is common to all instances (e.g. the set of profile
groups) is still cached as before.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Jane Sandberg [Sat, 17 Mar 2018 18:01:08 +0000 (11:01 -0700)]
LP1721143: making permission group dropdown scrollable in patron create/edit interface
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
McCanna [Tue, 13 Mar 2018 15:48:44 +0000 (11:48 -0400)]
PINES Customization for Default Patron Data Print Template
Added formatting and signature block.
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Tue, 6 Mar 2018 15:12:44 +0000 (10:12 -0500)]
Re-add GALILEO features.
Kyle Huckins [Thu, 15 Feb 2018 23:03:20 +0000 (23:03 +0000)]
lp1693036 Patron Editor Print Data
- Add Print button to Patron Editor.
- Add Patron Data print template.
- Add additional print template dummy data needed for Patron
Data template.
- Implement print functionality for Patron registration/edit
data.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Changes to be committed:
modified: Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2
modified: Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2
new file: Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2
modified: Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
modified: Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
Dan Wells [Tue, 20 Feb 2018 16:05:49 +0000 (11:05 -0500)]
LP#
1749992 Disable payment button during payment
Since the display is not refreshed until the payment finishes, it
is possible to fire off a second payment by double-clicking.
This commit is a simple way to disable the button while a payment is
in process, then enable it again after the display refreshes.
Since the 'sendPayment()' function is wrapped, we may need to move
this logic up, but this being a single promise is simpler, and it
solved the problem in testing.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
McCanna [Thu, 15 Feb 2018 22:37:30 +0000 (17:37 -0500)]
Modify custom default hold transit slip to include note
that item is needed for a hold. (This was at the request
of several libraries who prioritize their sorting based
on whether items are needed for holds or not.)
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
McCanna [Thu, 15 Feb 2018 22:40:30 +0000 (17:40 -0500)]
Updated PINES Map Graphic including LOPL
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Mon, 5 Feb 2018 23:58:43 +0000 (18:58 -0500)]
LP#
1747542 - Repair item/user circulation test
The action.item_user_circ_test function was previously
ignoring lost or longoverdue and paid-for circulations.
Adding a check for whether the circulation is closed
fixes this.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Bill Erickson [Mon, 5 Feb 2018 21:24:38 +0000 (16:24 -0500)]
LP#
1743262 CC external payment requires app. code
1. Indicate in the CC form that the approval_code field is required,
styled consistently with the patron edit app.
2. Prevent the form dialog from closing via Submit when no approval code
is set.
3. Handle payment failures better by preventing the post-API code from
running (i.e. receipt printing) when the API fails.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Mike Rylander [Wed, 10 Jan 2018 16:55:08 +0000 (11:55 -0500)]
LP#
1739460: Be more careful when gathering shelving locations
Specifically, make sure we're getting the IDs, and comparing them as numbers.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Terran McCanna [Wed, 24 Jan 2018 20:41:28 +0000 (15:41 -0500)]
KPAC Fix to broken image links
Removes cache info from image links in KPAC because
it was causing links on Dewey page to break.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Chris Sharp [Wed, 24 Jan 2018 17:34:46 +0000 (12:34 -0500)]
fix IP redirection by pulling the X-Real-IP header
Bill Erickson [Tue, 23 Jan 2018 22:56:51 +0000 (17:56 -0500)]
LP#
1743608 Replace barcode discards NULL/accidental entries
When replacing a patron's barcode in the patron editor, discard any
previous replacement attempts done in the current edit session. This
prevents cases where secondary, etc. replacement cards are accidentally
created or NULL cards that result in ugly error messages.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Mike Rylander [Wed, 17 Jan 2018 17:25:49 +0000 (12:25 -0500)]
LP#
1743819: Use combcirc rather than circ to get circ data
This addresses a merge regression.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Chris Sharp [Tue, 28 Nov 2017 18:42:26 +0000 (13:42 -0500)]
LP#
1734963: Teach copy template converter about older templates.
The XUL-to-web-client copy template converter created to fix
bug
1691269 needs a little help when the value stored is a
number rather than a string.
Thanks to Jeff Godin for troubleshooting help and Mike
Rylander for the suggested solution.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jeff Godin <jgodin@tadl.org>
Mike Rylander [Mon, 27 Nov 2017 18:53:40 +0000 (13:53 -0500)]
Stamping upgrade script for xul-to-web copy template translation
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Galen Charlton [Mon, 27 Nov 2017 18:24:39 +0000 (13:24 -0500)]
LP#
1691269: (follow-up) fix whitespace to match local style
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Galen Charlton [Mon, 27 Nov 2017 17:46:33 +0000 (12:46 -0500)]
LP#
1691269: include volume fields in converted copy templates
This patch insures that call number prefix, suffix, and classification
scheme from copy templates created in the XUL unified copy editor are
brought over to web staff copy templates.
Note that in order to successfully test the call number portion of
converted copy templates in the web staff client, the volume/copy editor
default "Allow Call Number attributes in Copy Templates" should be
turned on.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Galen Charlton [Mon, 27 Nov 2017 16:08:23 +0000 (11:08 -0500)]
LP#
1691269: (follow-up) include new cust in seed data
Also s/Copier/Copy/.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Jason Boyer [Sun, 22 Oct 2017 19:42:02 +0000 (15:42 -0400)]
LP1691269: Webstaff Copy Editor Templates
This branch will translate and transfer your XUL client templates
the first time you load the web client copy editor. From that point
on the two diverge with no further connection to each other.
This branch also allows your copy templates to travel with you
between browsers, machines, and so on, while still allowing users
that share a browser but not usernames to have their own templates.
Signed-off-by: Jason Boyer <JBoyer@library.in.gov>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Kyle Huckins [Thu, 11 Jan 2018 18:10:51 +0000 (18:10 +0000)]
lp1742194 - Print Current Bills only printing circ bills
- Check xact for Circulation before assigning circulation data to
xact for printing.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Changes to be committed:
modified: Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
Chris Sharp [Thu, 11 Jan 2018 19:09:27 +0000 (14:09 -0500)]
Revert "PINES Cust: Add shortname to alerts"
This reverts commit
b814b414a79e98d5be790d1ba52d5d1056928426.
Terran McCanna [Wed, 10 Jan 2018 21:56:38 +0000 (16:56 -0500)]
PINES Customization: Hide Claims Never Checked Out Action
On the patron account's Items Out screen, hide the
Mark Claims Never Checked Out action since we do not use
it in PINES and there is no associated permission to prevent
it from working.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Jason Boyer [Thu, 4 Jan 2018 18:38:00 +0000 (13:38 -0500)]
LP1712646: Require a Billing Type to Bill User
Previously billing a user without choosing a billing type
would either fail silently or default to misc. This patch
requires staff to choose a billing type before the new
bill window can be dismissed.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Jason Boyer [Thu, 4 Jan 2018 17:55:16 +0000 (12:55 -0500)]
LP1741072: Global String<->Num Directives for ngModel
To increase flexibility the stringToNumber directive
has been separated into int and float versions and
aditional directives are added to convert in the other
direction. The existing use of stringToNumber in the
volume/copy editor are also converted to strToFloat.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Cesar Velez [Tue, 24 Oct 2017 18:16:33 +0000 (14:16 -0400)]
LP#
1691861 - make Item Status edit items in batch in volcopy
This makes the Item Status grid action of "Edit Items" work
like the Copy Buckets grid "Edit Selected Items", in that the
copies open in the volcopy editor in batch, with no record summary.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Terran McCanna [Wed, 27 Dec 2017 23:23:31 +0000 (18:23 -0500)]
Temp Fix for Patron Account Expiring Soon Message
Marked as temp fix for testing before packaging for submission
to launchpad bug
1726918.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Terran McCanna [Wed, 27 Dec 2017 23:25:24 +0000 (18:25 -0500)]
PINES Cust: Add shortname to alerts
Add the short name of the library who created an alert to
the alert line in the patron summary bar.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>