working/Evergreen.git
2 years agoLP#1967770: Fix test for cover image upload
Galen Charlton [Tue, 5 Apr 2022 14:44:25 +0000 (10:44 -0400)]
LP#1967770: Fix test for cover image upload

The cover image upload test assumes that it will be run from exactly one
location, but that's not necessarily true.  This commit uses FindBin to
provide the right filesystem context for the test to find the files it
needs.

[Code by Galen, commit message by Mike]

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1967770: Make sure cover image dirs exist
Mike Rylander [Tue, 5 Apr 2022 14:38:55 +0000 (10:38 -0400)]
LP#1967770: Make sure cover image dirs exist

This commit teaches autogen.sh, which should be run after each upgrade,
how to check for and create the required locations for cover image
upload.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1930747: Add MARC_NAMESPACE to Const.pm
Jason Boyer [Thu, 23 Sep 2021 19:49:16 +0000 (15:49 -0400)]
LP1930747: Add MARC_NAMESPACE to Const.pm

Now that we have 3 separate $MARC_NAMESPACE definitions it's time
to just move it into Const.pm and call it done.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
2 years agoUpdate billing.adoc
gmontimantis [Wed, 30 Mar 2022 19:10:26 +0000 (15:10 -0400)]
Update billing.adoc

updating link

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoUpdating billing.adoc
gmontimantis [Wed, 23 Mar 2022 18:21:30 +0000 (14:21 -0400)]
Updating billing.adoc

for the 2022 DIG project

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1919500 - Tweak to Checkout Staff display
Michele Morgan [Tue, 29 Mar 2022 17:04:55 +0000 (13:04 -0400)]
LP#1919500 - Tweak to Checkout Staff display

Displays Checkout Staff's usrname instead of id and adds a link to the
record.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
2 years agoLP#1919500 - Add Checkout Workstation and Checkout Staff to Item Status -> Circ Histo...
Josh Stompro [Wed, 17 Mar 2021 19:24:34 +0000 (14:24 -0500)]
LP#1919500 - Add Checkout Workstation and Checkout Staff to Item Status -> Circ History List

Add two more data fields to the Circ History List in Item Status, so that
it is possible to see them after an item is renewed.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
2 years agoLP1865062 Add Credit Card Approval Code to Payment Receipt
Terran McCanna [Wed, 22 Sep 2021 18:34:59 +0000 (14:34 -0400)]
LP1865062 Add Credit Card Approval Code to Payment Receipt

Makes approval code available to Bill Payment print template (when relevant).

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Llewellyn Marshall <lbmarshallv.ncdcr@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoLP#1965432: follow-up also update package-lock.json
Jane Sandberg [Thu, 24 Mar 2022 02:09:28 +0000 (19:09 -0700)]
LP#1965432: follow-up also update package-lock.json

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1965432: Upgrade karma to latest version.
Chris Sharp [Thu, 17 Mar 2022 18:37:22 +0000 (14:37 -0400)]
LP#1965432: Upgrade karma to latest version.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP 1964963: Improve Customization of BOOPAC topnav logo
Jason Stephenson [Tue, 15 Mar 2022 13:39:54 +0000 (09:39 -0400)]
LP 1964963: Improve Customization of BOOPAC topnav logo

Move the anchor for the topnav logo from topnav_links.tts to
topnav_logo.tt2.  This minor change means that those who wish to move
or remove the topnav logo will have fewer files to change and those
changes will be less likely to conflict with future changes to BOOPAC.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoFix ng lint errors
Jane Sandberg [Mon, 28 Mar 2022 12:53:32 +0000 (05:53 -0700)]
Fix ng lint errors

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoStamping upgrade script for localized notifications
Jane Sandberg [Mon, 28 Mar 2022 12:43:25 +0000 (05:43 -0700)]
Stamping upgrade script for localized notifications

2 years agoThis feature supplies the ability to create alternate templates for Action Triggers
Rogan Hamby [Wed, 23 Feb 2022 18:55:01 +0000 (13:55 -0500)]
This feature supplies the ability to create alternate templates for Action Triggers
that will generate locale specific out for Action Triggers.  If you send notices in
multiple languages, we recommend putting some words to that effect in your notice
templates.  The template, message and message title can all be localized.  To use the
feature the following new UI elements have been added:

- When you double-click on an Event Definition under Notifications / Action Triggers
  to edit it there will be a tab option for Edit Alternate Template if the reactor is
  ProcessTemplate, SendEmail or SendSMS.
- In the Patron Registration and Patron Editor screens staff members may now select a
  locale for a patron and edit it in the Patron Preferred Language field.
- Patrons may set their own locale in the My Account interface off the OPAC by going to
  Preferences -> Personal Information and setting the Preferred Language field.

The templates used on the Edit Definition tab are the defaults that are used if there are
no alternate templates available that match the preferred language.  If alternate templates
are available the system will use a locale that is an exact match and then if failing that
use one where the language code matches and then fall back to the default one.

For example, if a patron has a locale of fr-CA and there are templates for both fr-CA and
fr-FR it will use the fr-CA.  If the fr-CA template was deleted it would fall back on using
the fr-FR for the patron since it at least shares the same base language.

Valid locales are the codes defined in the i18n_locale table in the config schema.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoStamping upgrade script for OAI-PMH
Jane Sandberg [Mon, 28 Mar 2022 03:09:54 +0000 (20:09 -0700)]
Stamping upgrade script for OAI-PMH

2 years agoLP#1729620: Rebase and remove array_accum uses
Mike Rylander [Wed, 23 Mar 2022 22:11:15 +0000 (18:11 -0400)]
LP#1729620: Rebase and remove array_accum uses

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: Polish up sets and visibility tests
Mike Rylander [Wed, 26 Jan 2022 21:36:27 +0000 (16:36 -0500)]
LP#1729620: Polish up sets and visibility tests

This commit improves the logic needed to control record inclusion in
OAI Sets.  Sets for bib records are currently based on copy visibility,
Located URI visibility, or bib source.  Generally useful combinations
are generated for item, Located URI, and transcendant [sic] bib sources.

Sets for authority records are based on the browse axis of the heading
for the record.

All generated Sets for bib records currently test for effective search
visibilty on the three described components.

In order to retrieve item data from a specific branch of the org tree,
a harvester must use a Set that contains COPIES:. The hierarchial
shortnames of the org units follow the colon, so in a freshly installed
system a Set with the setSpec of COPIES:CONS:SYS2:BR3 will retrieve all
bib records that have visible copies at BR3, and include only the item
data for that org unit.

To retrieve records with Located URIs, which behave in the heirarchical
reverse of copies by limiting display to those org units "inside" the
branch of the tree where the licensing "lives", a harvester should
supply a setSpec with an org unit shortname that would display the
Located URI. For example: LURIS:CONS:SYS2:BR3

Note: the LURI: org unit is also used to restrict any item data that may
be available for LURI-filtered records.

To retrive records are in a transcendant [sic] bib source, a harvester
can used a setSpec starting with SOURCES: followed by the source name.

To harvest all records, including deleted records, simply omit the
setSpec from the request.  All item data will be included.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP1729620: Enable org unit OAI sets
Jane Sandberg [Wed, 24 Nov 2021 18:26:27 +0000 (10:26 -0800)]
LP1729620: Enable org unit OAI sets

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1729620: Fix opensrf.xml syntax
Jane Sandberg [Thu, 18 Nov 2021 03:24:50 +0000 (19:24 -0800)]
LP1729620: Fix opensrf.xml syntax

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620: (follow-up) do not suggest timestamp manipulation
Galen Charlton [Fri, 24 Sep 2021 20:14:44 +0000 (16:14 -0400)]
LP#1729620: (follow-up) do not suggest timestamp manipulation

The suggestion in the upgrade script and the release notes
to consider adding triggers to update biblio.record_entry.timestamp
upon updates of linked call numbers or items is not a good one:

[1] implementing it means that any workflows that require knowing
    when a bib itself has changed become untrustworthy
[2] it would cause tremendous bloating of auditor.biblio_record_entry_history,
    as every single change to an item -- including ones caused by
    circulation activity -- would result in a new entry.
[3] item changes due to circulation activity aren't necessarily
    going to want to trigger record updates by the harvester

Wanting the update timestamp for OAI harvest to reflect changes
to items is a perfectly valid use case, but this is not the way.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: update release notes with an upgrade note
Galen Charlton [Fri, 24 Sep 2021 19:59:01 +0000 (15:59 -0400)]
LP#1729620: update release notes with an upgrade note

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: add HTTP::OAI to Debian Bullseye deps
Galen Charlton [Fri, 24 Sep 2021 19:50:39 +0000 (15:50 -0400)]
LP#1729620: add HTTP::OAI to Debian Bullseye deps

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: fix a tab consistency issue
Galen Charlton [Fri, 24 Sep 2021 16:47:58 +0000 (12:47 -0400)]
LP#1729620: fix a tab consistency issue

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: (follow-up) remove extra child_init that is no longer needed
Galen Charlton [Fri, 24 Sep 2021 19:54:53 +0000 (15:54 -0400)]
LP#1729620: (follow-up) remove extra child_init that is no longer needed

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: (follow-up) move OpenILS::WWW::OAI
Galen Charlton [Fri, 24 Sep 2021 16:45:10 +0000 (12:45 -0400)]
LP#1729620: (follow-up) move OpenILS::WWW::OAI

Move the module to Open::WWW::SuperCat::OAI, matching other
record export and feed modules.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP#1729620: (follow-up) move OAI methods to open-ils.supercat
Galen Charlton [Fri, 24 Sep 2021 16:40:20 +0000 (12:40 -0400)]
LP#1729620: (follow-up) move OAI methods to open-ils.supercat

A new service isn't really necessary for the handful
of methods that OAI support needs. Since SuperCat is
where other record harvesting and export methods live, what
was open-ils.oai is moved to SuperCat via this patch.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620 enable the OAI service by default
Jane Sandberg [Sat, 11 Sep 2021 23:46:09 +0000 (16:46 -0700)]
LP#1729620 enable the OAI service by default

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620 Follow-up bugfixes
Jane Sandberg [Wed, 25 Aug 2021 21:29:53 +0000 (14:29 -0700)]
LP#1729620 Follow-up bugfixes

* Perl no longer allows the `keys` function to take scalar expressions
* Typo in service name in opensrf_core example config file
* Added oai schema script to the manifest file so that it is run as part of installation
* Unnecessary sigil

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620 Updating modern dependencies to include OAI library
Jane Sandberg [Wed, 25 Aug 2021 19:35:08 +0000 (12:35 -0700)]
LP#1729620 Updating modern dependencies to include OAI library

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620 Cleanup, fix bugs
Remington Steed [Thu, 2 Nov 2017 14:14:51 +0000 (15:14 +0100)]
LP#1729620 Cleanup, fix bugs

  - Rename DB schema file to follow convention
    - Remove optional DB commands, and leave them in Release Notes (and
      possibly add to Official Docs)
  - Create DB upgrade script
    - Print optional DB commands using \qecho
  - Change variable "tcn" to "rec_id" everywhere
  - Move perl API registration to be immediately after related function
  - Remove unused parameter from sub oai_list_retrieve() in
    Application/OAI.pm, and from API calls in WWW/OAI.pm
  - Fix mislabeled parameter in API doc
  - Add missing end-comment tags in opensrf.xml.example
  - Add dependency to Ubuntu/Debian makefiles
  - Add missing init handler in apache/eg.conf.in
  - Fix reference to sysconfdir in apache/eg_startup.in
  - Undo extraneous change to .gitignore
  - Trim/rename release notes, since most of the install process is
    handled via Evergreen install instructions.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1729620 New optional feature: an OAI2 provider service.
Lucien van Wouw [Thu, 2 Nov 2017 14:14:51 +0000 (15:14 +0100)]
LP#1729620 New optional feature: an OAI2 provider service.

This module is an opensrf service that exposes bibliographic and authority records through the OAI2 protocol.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Signed-off-by: Lucien van Wouw, IISG, Amsterdam.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1900005: Don't require a specific 'opensrf' user
Jason Boyer [Thu, 15 Oct 2020 17:50:18 +0000 (13:50 -0400)]
LP1900005: Don't require a specific 'opensrf' user

There's no technical reason to require a specific user beyond our
instructions stating that it's the default. One thing that we should
do is not allow our network services to be run as root.
Additionally, autogen.sh is excluded from running as root because while
that would work, it may then have to *always* be run by root or
require you to change the file owner between runs.

NOTE: We check for the user by id rather than name, as there's no rule
saying user 0 must be called "root" on Linux.

NOTE: This also cleans up and unifies the the coding style and removes
some dead code in autogen.sh.

To test:
Pre-patch:
Use oils_ctl.sh to start SIP or z3950 as opensrf, Success.
Use oils_ctl.sh to start SIP or z3950 as yourself, Failure.
Use oils_ctl.sh to start SIP or z3950 as root, Failure.
Run autogen.sh as opensrf, Success.
Run autogen.sh as yourself, Failure.
Run autogen.sh as root, Failure.

Post patch:
Use oils_ctl.sh to start SIP or z3950 as opensrf, Success.
Use oils_ctl.sh to start SIP or z3950 as your normal user, Success.
Use oils_ctl.sh to start SIP or z3950 as root, Failure.
Run autogen.sh as opensrf, Success.
Run autogen.sh as yourself, potential Success - IF you're able to write to the correct directory / files.
Run autogen.sh as root, Failure.

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
2 years agoLP1956970 Sort Patron Notes - Most Recent First
Terran McCanna [Mon, 31 Jan 2022 22:26:15 +0000 (17:26 -0500)]
LP1956970 Sort Patron Notes - Most Recent First

This changes the default sort order of patron notes from oldest
first to most recent first.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1930614 Bootstrap OPAC Summary Block
Terran McCanna [Wed, 2 Jun 2021 19:29:53 +0000 (15:29 -0400)]
LP1930614 Bootstrap OPAC Summary Block

This breaks out the summary (from the 520 field) from the rest
of the MARC data so that it displays above/outside of the More
Details button on the record page.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
foo

2 years agoStamping upgrade script for JQuery YAOUS
Mike Rylander [Fri, 25 Mar 2022 21:03:06 +0000 (17:03 -0400)]
Stamping upgrade script for JQuery YAOUS

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoadding query to opac by library setting
Rogan Hamby [Mon, 21 Oct 2019 13:47:45 +0000 (09:47 -0400)]
adding query to opac by library setting

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1958581 Copy to clipboard always available
Bill Erickson [Thu, 20 Jan 2022 22:13:08 +0000 (17:13 -0500)]
LP1958581 Copy to clipboard always available

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1958581 Angular Grid Copy To Clipboard
Bill Erickson [Thu, 20 Jan 2022 21:16:10 +0000 (16:16 -0500)]
LP1958581 Angular Grid Copy To Clipboard

To test, right click on a row in an Angular grid.  A dialog should
appear which allows the user to click on a value to select the value
into the clipboard.  Once selected, the dialog should close.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoFixing merge conflict resolution from Simple Reporter merge
Mike Rylander [Thu, 24 Mar 2022 23:10:22 +0000 (19:10 -0400)]
Fixing merge conflict resolution from Simple Reporter merge

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1959405: hold status not looking for shelf delay status
Garry Collum [Thu, 3 Feb 2022 22:57:45 +0000 (17:57 -0500)]
LP#1959405: hold status not looking for shelf delay status

This patch fixes the blank status display in the opac by treating that
status as a 'Waiting for Copy' status.  This commit covers both the TPAC
and the Bootstrap OPAC.

To Test:
As stated by Erica in LP1959405
1. Administration->Local Administration->Library Settins Editor
set Hold Shelf Status Delay to 1 minute.
2. Place a hold for a patron
3. Capture the hold.
   The opac will change from "Waiting for Copy" to a blank column.
4. Allow the delay interval to expire
   The opac will change from a blank status to "Available"

5. Apply the patch
6. Repeat 2-3.
   The opac will continue to display "Waiting for Copy"
7. Allow the delay interval to expire
   The opac will change from "Waiting for Copy" to "Available"

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoStamping upgrade script for inventory changes
Mike Rylander [Thu, 24 Mar 2022 21:32:20 +0000 (17:32 -0400)]
Stamping upgrade script for inventory changes

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Add release notes
Jason Stephenson [Thu, 30 Dec 2021 15:17:58 +0000 (10:17 -0500)]
LP1883171 & LP1940663: Add release notes

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Add Perl live test
Jason Stephenson [Tue, 23 Nov 2021 03:09:26 +0000 (22:09 -0500)]
LP1883171 & LP1940663: Add Perl live test

Add live tests to test that invetory dates are added, or not, during
checkin and inventory update as appropriate.  These tests cover the
basics for the backend Perl methods.  The database tests are slightly
more thorough.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Basic staff client modifications
Jason Stephenson [Sun, 7 Nov 2021 21:00:34 +0000 (16:00 -0500)]
LP1883171 & LP1940663: Basic staff client modifications

Modify the Item Staus view to check the new return values of the
update copy inventory function.

Fix toast handling in the list view to properly report success and failure.

Add toast handling to the single copy Item Status view to report
success and failure.

NOTE: More work could be done on the toasts to report number of
successful updates, etc.  I tried using the compileContent and trusted
HTML, but this lead to new errors that I couldn't decipher.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Replace circ method to update latest inventory
Jason Stephenson [Sun, 31 Oct 2021 20:14:10 +0000 (16:14 -0400)]
LP1883171 & LP1940663: Replace circ method to update latest inventory

Replace the open-ils.circ.circulation.update_latest_inventory method
with open-ils.circ.circulation.update_copy_inventory.

Beyond renaming the method and changing the tables it operates on, the
following changes are also made:

1. Use savepoints to allow some updates to succeed when others fail.

2. Modify the return value to include success and failure counts so that
these could potentially be used in client feedback.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Modify do_checkin for asset.copy_inventory
Jason Stephenson [Sun, 31 Oct 2021 19:18:22 +0000 (15:18 -0400)]
LP1883171 & LP1940663: Modify do_checkin for asset.copy_inventory

Modify the do_chekin method of Circulate.pm to create a new
asset::copy_inventory object when the do inventory modifier is used.

This change necessitates moving the check for a floating copy up to
where the do inventory code is run and subsequent modifications to the
transit and noop checkin code.

Set checkin_changed to true when adding an asset.copy_inventory entry
during check-in so that even if there would otherwise be a NO_CHANGE
response, the row will still get created.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1883171 & LP1940663: Database & IDL updates for copy inventory table
Jason Stephenson [Sun, 24 Oct 2021 16:54:31 +0000 (12:54 -0400)]
LP1883171 & LP1940663: Database & IDL updates for copy inventory table

Add new asset.copy_inventory table with constraints:
  * Foreign Key on copy -> asset.copy.id
  * Unique index on inventory_date and copy
  * Require that copy is at home or may float to inventory_workstation org.

Add IDL entry for asset.copy_inventory table (aci).

Change asset.latest_inventory table into a view.

Mark the asset.latest_inventory IDL entry (alci) read-only.

Provide database upgrade script to make the database changes and move
entries from the asset.latest_inventory table to the
asset.copy_inventory table.

Add pgtap schema tests to validate that the above tables, views, and
constraints exist.

Add pgtap live tests to validate that the table and view constraints
work as intended.

MERGE NOTE: IDL permissions on the new real table were updated to
match previously modified permissions on the old real table.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1907123 Angular Catalog View Holds missing columns
Michele Morgan [Tue, 2 Mar 2021 16:46:42 +0000 (11:46 -0500)]
LP1907123 Angular Catalog View Holds missing columns

Teaches the t_holds.tt2 TPAC file to save columns with the same names as
the Angular Catalog.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoStamping upgrade script for Simple Reporter (permission ID adjusted)
Mike Rylander [Thu, 24 Mar 2022 19:17:39 +0000 (15:17 -0400)]
Stamping upgrade script for Simple Reporter (permission ID adjusted)

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoMake the "ignore this boolean" option more clear
Jason Boyer [Fri, 18 Mar 2022 16:14:06 +0000 (12:14 -0400)]
Make the "ignore this boolean" option more clear

Change Bool Either to Both

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoUpdate Promise instantiation to deal with TypeScript changes
Jason Boyer [Fri, 11 Mar 2022 17:45:33 +0000 (12:45 -0500)]
Update Promise instantiation to deal with TypeScript changes

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoAdd release note
Jason Boyer [Tue, 21 Dec 2021 21:30:42 +0000 (16:30 -0500)]
Add release note

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoWire up Simple Reporter into the Staff Client Interface
Jason Boyer [Tue, 14 Dec 2021 19:15:13 +0000 (14:15 -0500)]
Wire up Simple Reporter into the Staff Client Interface

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoSimple Reporter Angular App
Jason Boyer [Tue, 14 Dec 2021 19:14:35 +0000 (14:14 -0500)]
Simple Reporter Angular App

Simply put, it reports.

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoadd component for general text multi-select
Mike Rylander [Thu, 28 Oct 2021 17:22:06 +0000 (13:22 -0400)]
add component for general text multi-select

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
2 years agoimprove existing components for use in SR
Mike Rylander [Thu, 28 Oct 2021 17:21:30 +0000 (13:21 -0400)]
improve existing components for use in SR

Add onChange emitter to eg-org-family-select, and augment the output so we can reconstruct it
Add @sr:org_filter_field capability to eg-multi-select and eg-combobox

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
2 years agoMake disused "= any" and "<> any" useful
Mike Rylander [Fri, 29 Oct 2021 14:26:41 +0000 (10:26 -0400)]
Make disused "= any" and "<> any" useful

Allow caller to supply a PG-encoded array string to test against a column value.

Also, repair relative week transform that has never worked.

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
2 years agoTeach Current Reporter to Ignore Simple Reporter Folders
Jason Boyer [Tue, 14 Dec 2021 17:51:16 +0000 (12:51 -0500)]
Teach Current Reporter to Ignore Simple Reporter Folders

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoValidate IDL Against XSD
Jason Boyer [Tue, 14 Dec 2021 17:48:32 +0000 (12:48 -0500)]
Validate IDL Against XSD

Largely field name typos.

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoAdd Simple Reporter IDL definitions
Jason Boyer [Tue, 14 Dec 2021 15:57:58 +0000 (10:57 -0500)]
Add Simple Reporter IDL definitions

Add SR IDL classes, update reporter.*, add xsl2js transforms,
and add sr namespace to fm_IDL.xsd. Overall IDL tidying to come.

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoAdd Simple Reporter Schema Changes
Jason Boyer [Tue, 14 Dec 2021 15:33:32 +0000 (10:33 -0500)]
Add Simple Reporter Schema Changes

New permission for Simple Reporter: RUN_SIMPLE_REPORTS

A simple_reporter field on reporter folder tables to maintain separation
between Simple Reporter and It's Complicated. Also adjust indexes to allow
duplicate names between reporters if for some reason you want to do that.

And a reporter.completed_reports view to compliment reporter.currently_running.

Sponsored-by: C/W MARS
Sponsored-by: Missouri Evergreen Consortium
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoStamping upgrade script
Mike Rylander [Thu, 24 Mar 2022 18:34:57 +0000 (14:34 -0400)]
Stamping upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1951162 Migrate copy templates setting
Bill Erickson [Fri, 3 Dec 2021 18:27:01 +0000 (13:27 -0500)]
LP1951162 Migrate copy templates setting

Rename the user setting "webstaff.cat.copy.templates" to
"cat.copy.templates" and migrate any existing values.  This operation is
not performed for any databases where a "cat.copy.templates" user or
workstation setting type already exists.

Teach the Angular copy editor to avoid looking up templates in local
storage, since only XUL templates are stored there, which are not
compatible.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1746800 Exclude empty records on filtered staff searches
Dan Briem [Wed, 16 Mar 2022 20:45:37 +0000 (16:45 -0400)]
LP#1746800 Exclude empty records on filtered staff searches

Excludes empty bibs on staff searches when filtering on location
or location group or when using the availability modifier.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Jennifer Weston <jennifer.weston@equinoxoli.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1909681 Open hold grid links in new tab
Terran McCanna [Fri, 31 Dec 2021 18:37:09 +0000 (13:37 -0500)]
LP1909681 Open hold grid links in new tab

This updates the holds grid used by Hopeless Holds, the Holds Pull
List, and the staff catalog record View Holds tab.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1928003 Protect real copies from auto-deletion by cancelling acq line items
Tiffany Little [Fri, 18 Jun 2021 18:33:50 +0000 (14:33 -0400)]
LP1928003 Protect real copies from auto-deletion by cancelling acq line items

Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoHide username and password in eg2 when screen is narrow
Jason Boyer [Wed, 2 Mar 2022 11:54:29 +0000 (06:54 -0500)]
Hide username and password in eg2 when screen is narrow

The Angular staff client navbar doesn't collapse when the screen is narrow
but currently the username and password can wrap, pushing the navbar over
the content. This patch doesn't add a collapsing navbar but hiding the user
information does at least stop the navbar from growing.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1724008: Hide User@workstation when screen is narrow
Jason Boyer [Tue, 1 Mar 2022 19:34:55 +0000 (14:34 -0500)]
LP1724008: Hide User@workstation when screen is narrow

As an intermediate step between the "full" navbar and the
collapsed navbar we hide the username and workstation of
the current user. This helps prevent the wrapping that can
cause the navbar to cover some of the page.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1951318: API call to retrieve (publicly-visible) carousel contents
Jeff Davis [Fri, 5 Nov 2021 23:41:55 +0000 (16:41 -0700)]
LP#1951318: API call to retrieve (publicly-visible) carousel contents

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1944755 Add ability to embed carousels on external pages
Terran McCanna [Thu, 23 Sep 2021 16:53:54 +0000 (12:53 -0400)]
LP1944755 Add ability to embed carousels on external pages

This displays carousels on an otherwise blank page, allowing
libraries to very easily embed them on their web sites using iframes.

Example iframe code:
<iframe src="(my opac domain)/eg/opac/carousel?carousel_loc=4" title="Carousel"
width="80%" height="500px;" frameborder="0"></iframe>

The base_simple code could also be used by other future features
that are driven by Evergreen but that shouldn't display the headers and
footers.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agolp1787968 Stamping upgrade script
Michele Morgan [Thu, 24 Mar 2022 15:01:13 +0000 (11:01 -0400)]
lp1787968 Stamping upgrade script

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 Release Notes Addendum
Michele Morgan [Thu, 24 Mar 2022 14:26:02 +0000 (10:26 -0400)]
lp1787968 Release Notes Addendum

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 jacket_upload: release notes
Jason Etheridge [Mon, 11 Oct 2021 22:24:16 +0000 (18:24 -0400)]
lp1787968 jacket_upload: release notes

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 jacket_upload: tests
Jason Etheridge [Mon, 11 Oct 2021 21:52:00 +0000 (17:52 -0400)]
lp1787968 jacket_upload: tests

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 jacket_upload: UI
Jason Etheridge [Fri, 3 Sep 2021 15:25:14 +0000 (11:25 -0400)]
lp1787968 jacket_upload: UI

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 jacket_upload: server-side
Jason Etheridge [Fri, 13 Aug 2021 16:23:49 +0000 (12:23 -0400)]
lp1787968 jacket_upload: server-side

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agolp1787968 jacket_upload: schema
Jason Etheridge [Tue, 7 Sep 2021 01:54:50 +0000 (21:54 -0400)]
lp1787968 jacket_upload: schema

Changed permission id due to conflict.

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoLP1953193 Add autofilter to funding sources
Tiffany Little [Fri, 3 Dec 2021 18:53:40 +0000 (13:53 -0500)]
LP1953193 Add autofilter to funding sources

Adds an autofilter on the active column.

Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
2 years agoStamping upgrade script
Mike Rylander [Thu, 24 Mar 2022 13:01:34 +0000 (09:01 -0400)]
Stamping upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1938835: release notes for the customizable staff portal
Galen Charlton [Wed, 22 Dec 2021 21:54:22 +0000 (16:54 -0500)]
LP#1938835: release notes for the customizable staff portal

To test
-------
[1] Apply the patch.
[2] Verify that the Angular staff portal is now the default
    and that it displays the stock portal entries.
[3] In the new Staff Portal Page local administration interface,
    make changes to add, subtract, or modify portal page entries.
[4] Verify that those changes appear on the staff portal page and
    that they are sensitive to the workstation that the staff
    user is logged in as.

Sponsored-by: Pioneer Library System
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Shula Link <slink@gchrl.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Guarracino <dguarracino@pls-net.org>
2 years agoLP#1938835: admin interface for customizing the staff portal
Galen Charlton [Tue, 3 Aug 2021 22:59:51 +0000 (18:59 -0400)]
LP#1938835: admin interface for customizing the staff portal

Sponsored-by: Pioneer Library System
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1938835: make the Angular staff portal/home page dynamic
Galen Charlton [Mon, 2 Aug 2021 23:06:44 +0000 (19:06 -0400)]
LP#1938835: make the Angular staff portal/home page dynamic

Details and test plan will be in the commit with the release
notes.

Sponsored-by: Pioneer Library System
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1938835: always display the Angular portal, not the AngularJS one
Galen Charlton [Mon, 2 Aug 2021 22:34:02 +0000 (18:34 -0400)]
LP#1938835: always display the Angular portal, not the AngularJS one

This patch ensures that when a user navigates to the staff home page,
they will always see the Angular version, not the AngularJS version.

Consequently, the AngularJS staff portal is now deprecated (and also
does not need to learn how to be dynamic.)

Sponsored-by: Pioneer Library System
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP#1938835: customizable staff portal - schema, IDL, and seed data
Galen Charlton [Mon, 2 Aug 2021 22:12:57 +0000 (18:12 -0400)]
LP#1938835: customizable staff portal - schema, IDL, and seed data

This patch adds two new database tables and corresponding IDL classes:

* config.ui_staff_portal_page_entry_type (types of portal widgets)
* config.ui_staff_portal_page_entry (entries/widgets for the portal)

It also adds a new permission, ADMIN_STAFF_PORTAL_PAGE, for managing
the new entries, seed data for the stock portal, and a grid setting
for the portal admin interface.

Sponsored-by: Pioneer Library System
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoStamping PG10+ upgrade script
Mike Rylander [Wed, 23 Mar 2022 22:49:17 +0000 (18:49 -0400)]
Stamping PG10+ upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix another invalid XPath expression error
Jason Stephenson [Tue, 22 Feb 2022 18:17:04 +0000 (13:17 -0500)]
LP1937294: Fix another invalid XPath expression error

There was a typo further down in authority.generate_overlay_template
that was missed when the previous error was corrected.  This commit
replaces an erroneous ( with the correct *.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix XPath invalid XPath expression Error
Jason Stephenson [Tue, 22 Feb 2022 17:35:13 +0000 (12:35 -0500)]
LP1937294: Fix XPath invalid XPath expression Error

One of the XPath expressions in authority.generate_overly_template()
was missing an * (asterisk).  This commit restores the omitted *.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Update Installation Documentation
Jason Stephenson [Thu, 16 Dec 2021 19:04:58 +0000 (14:04 -0500)]
LP1937294: Update Installation Documentation

Update the server installation and upgrade documents to reflect the
status of the newer PostgreSQL version and removal of PostgreSQL
version 9.6.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Update Prerequisite Installation for PostgreSQL Server
Jason Stephenson [Thu, 16 Dec 2021 18:39:55 +0000 (13:39 -0500)]
LP1937294: Update Prerequisite Installation for PostgreSQL Server

Add targets to install PostgreSQL server version 11 through 14 via the
Makefile.install prerequisite installer.

Drop PostgreSQL version 9.6 as an installation target.

Use PostgreSQL 14 client as it should be backwards compatible and is
required if using the PostgreSQL 14 server.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix the unaccent and squash tests
Jason Stephenson [Fri, 19 Nov 2021 22:44:37 +0000 (17:44 -0500)]
LP1937294: Fix the unaccent and squash tests

Changes in Pg 12 and Pg 14 character handling necessitate changes to
two of the tests in t/lp1501781-unaccent_and_squash.pg.  These are
similar to changes made for PostgreSQL 9.6.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix metarecord master record choice predictability issue
Jason Stephenson [Fri, 19 Nov 2021 19:44:43 +0000 (14:44 -0500)]
LP1937294: Fix metarecord master record choice predictability issue

The metabib master record was being chosen using indeterminant code.
In the case of a quality tie, which record would be chosen depends on
the order that they were returned from the database.  This commit adds
an additional order by on the biblio.record_entry.id to ensure that
the best matching record with the lowest id is chosen.

The live_t/lp1145213_test_func_asset.merge_record_assets.pg tests are
also adjusted to take this into account and should now pass on all Pg
versions and regardless of the order that the data is inserted.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix Functions for XML/XPath changes
Jason Stephenson [Thu, 18 Nov 2021 21:06:37 +0000 (16:06 -0500)]
LP1937294: Fix Functions for XML/XPath changes

Use local-name() in XPath where necessitated by XML bug fixes in
PostgreSQL 11 and later.  Relative XPath no longer works as it used
to.

Fix authority.generate_overlay_template()

Fix authority.normalize_heading()

Fix vandelay.ingest_items()

Fix biblio.extract_quality()

Fix authority.simple_heading_set()

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Fix Sample Data Load Predictability Issue
Jason Stephenson [Mon, 15 Nov 2021 19:21:17 +0000 (14:21 -0500)]
LP1937294: Fix Sample Data Load Predictability Issue

Add "ORDER BY id" to the main queries in the functions used to create
call numbers and copies when loading the sample data.  This change
allows the call numbers and copies to be created in a predictable
manner.

The necessity of this change was revealed by the failure of the
20-hold-targeter.t Perl live test on PostgreSQL 11+.  After this
change, that test passes on newer PostgreSQL versions and continues to
pass on PostgreSQL 10.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1937294: Add FTS Config for PostgreSQL 11 - 14
Jason Stephenson [Wed, 10 Nov 2021 16:16:56 +0000 (11:16 -0500)]
LP1937294: Add FTS Config for PostgreSQL 11 - 14

Add links to 000.english.pg94.fts-config.sql for PostgreSQL version 11
through 14:

  * 000.english.pg11.fts-config.sql
  * 000.english.pg12.fts-config.sql
  * 000.english.pg13.fts-config.sql
  * 000.english.pg14.fts-config.sql

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
2 years agoLP1010494 - More Details button is not translatable.
Garry Collum [Mon, 24 Jan 2022 02:05:16 +0000 (21:05 -0500)]
LP1010494 - More Details button is not translatable.

Surrounds the text in the More Details and Less Details button in the
bootstrap opac bib record screen and changes 'Less Details' to
'Fewer Details'.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoAdded Author to Pending view in Item Buckets
Lynn Floyd [Thu, 30 Dec 2021 20:56:29 +0000 (15:56 -0500)]
Added Author to Pending view in Item Buckets

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoAdd Author field to Item buckets.
Lynn Floyd [Thu, 30 Dec 2021 17:22:17 +0000 (12:22 -0500)]
Add Author field to Item buckets.

Signed-off-by: Lynn Floyd <alynn2671@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
2 years agoLP1863196-Add series title to holds pull list.
Garry Collum [Sun, 26 Dec 2021 22:56:51 +0000 (17:56 -0500)]
LP1863196-Add series title to holds pull list.

This adds the series title as an column option in the holds pull list.

In the Hold Pull List template in the server print template adminstration
the variable 'hold.series_title' can be used.

One possible option would be to add series_title to the title cell.

Example:
<td style="width: 30%">[% hold.title %]<br>
[%IF hold.series_title %] Series: [% hold.series_title %][% END %]</td>

To Test the display:
1. Apply the patch.
2. Place a hold on a record with a series title.
3. Pull up the Holds Pull list and display the Series Title column.

To Test the Print Template:
1. Add the series_title variable to the hold pull list server template.
2. Display the Holds Pull list and click on the Print Full List button.
3. The print preview should display the series title information.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Shula Link <slink@gchrl.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
2 years agoLP1847827 - Evergreen Web Based Self Check - Use prefered first name in header.
Josh Stompro [Mon, 13 Dec 2021 19:58:02 +0000 (13:58 -0600)]
LP1847827 - Evergreen Web Based Self Check - Use prefered first name in header.

Thank you to Suzanne Paterno for showing me what to edit.

After this is installed, just set and unset a preferred first name for an account
and make sure it shows up correctly in the web based self check interface.
https://example.com/eg/circ/selfcheck/main

Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bclibraries.coop>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
2 years agoLP1846552 Shelving location Order handle new locations
Bill Erickson [Wed, 15 Sep 2021 14:21:25 +0000 (10:21 -0400)]
LP1846552 Shelving location Order handle new locations

Ensure that copy locations added since the last time location order
entries were saved are displayed.

Show when a location is "unsaved" in the UI.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>