]> git.evergreen-ils.org Git - working/Evergreen.git/log
working/Evergreen.git
3 years agoDocs: fixed antora docs for heading syntax collab/blake/LP1848524_antora_ize_docs
blake [Thu, 4 Jun 2020 22:10:30 +0000 (17:10 -0500)]
Docs: fixed antora docs for heading syntax

Found some leftover files missing their heading upgrades.

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Corrected page headings
blake [Sat, 23 May 2020 16:30:02 +0000 (11:30 -0500)]
Docs: Corrected page headings

Included script that helped find them

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Updating the Antora README to include generate_docs.pl
blake [Wed, 13 May 2020 19:32:39 +0000 (14:32 -0500)]
Docs: Updating the Antora README to include generate_docs.pl

Documenting new steps to create the Antora site.

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Introducing the site generator generate_docs.pl
blake [Tue, 12 May 2020 22:32:35 +0000 (17:32 -0500)]
Docs: Introducing the site generator generate_docs.pl

3 years agoDocs: lunr - delete header-content.hbs
blake [Tue, 12 May 2020 22:22:09 +0000 (17:22 -0500)]
Docs: lunr - delete header-content.hbs

3 years agoDocs: refreshed antora lunr search component from upstream
blake [Tue, 12 May 2020 21:50:08 +0000 (16:50 -0500)]
Docs: refreshed antora lunr search component from upstream

3 years agoUpgraded headers in admin module
blake [Tue, 12 May 2020 20:10:08 +0000 (15:10 -0500)]
Upgraded headers in admin module

Found these are unreferenced:
allowed_payments.adoc
audio_alerts.adoc
circing_uncataloged_materials.adoc
closed_dates.adoc
ebook_api.adoc
hours.adoc
patron_registration.adoc
purge_holds.adoc
purge_user_activity.adoc
qstore_service.adoc
search_settings_web_client.adoc
security.adoc
sitemap_admin.adoc
staff_from_command_line.adoc

3 years agoFixed a word wrap issue with many of our nav.adocs
blake [Thu, 19 Mar 2020 20:40:29 +0000 (15:40 -0500)]
Fixed a word wrap issue with many of our nav.adocs

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoCorrected a couple of things in cataloging
blake [Thu, 19 Mar 2020 16:56:52 +0000 (11:56 -0500)]
Corrected a couple of things in cataloging

Moved the physical character wizard into MARC_Editor and updated nav

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Attempt an Acq topic manual
Remington Steed [Tue, 25 Feb 2020 15:45:20 +0000 (10:45 -0500)]
Docs: Attempt an Acq topic manual

This is a first draft at structuring a topic manual in Antora (mostly
reusing files from the main "docs" component).

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix section for Antora: "Circulation"
Remington Steed [Thu, 20 Feb 2020 21:13:20 +0000 (16:13 -0500)]
Docs: Fix section for Antora: "Circulation"

This commit does the known tasks to prepare each main docs section
for Antora:

  - Add chapter labels to nav file items
  - To match existing docs "chapter" level headings, combine adoc files as
    needed so that each "chapter" from the old docs structure has a single
    file linked from the nav
      - Added advanced_holds.adoc to the end of basic_holds.adoc
  - Upgrade all heading levels in each adoc file so that the top-most
    heading is a "Level 1" heading (example: "= Chapter Name =")
  - Add ":toc:" below top heading of each file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix section for Antora: "Serials"
Remington Steed [Wed, 12 Feb 2020 14:31:36 +0000 (09:31 -0500)]
Docs: Fix section for Antora: "Serials"

This commit does the known tasks to prepare each main docs section for
Antora:

  - Add chapter labels to nav file items
  - (Not needed for this section.) Combine adoc files so that each
    "chapter" from the old docs structure has a single file linked from
    the nav
  - Upgrade all heading levels in each adoc file so that the top-most
    heading is a "Level 1" heading (example: "= Chapter Name =")
  - Add ":toc:" below top heading of each file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix sections for Antora: "reports" - Intro page
blake [Thu, 6 Feb 2020 20:08:34 +0000 (14:08 -0600)]
Docs: Fix sections for Antora: "reports" - Intro page

Forgot one :)

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Fix sections for Antora: "reports"
blake [Thu, 6 Feb 2020 20:03:57 +0000 (14:03 -0600)]
Docs: Fix sections for Antora: "reports"

Added :toc: for each page
Upgraded all headings in each page
Updated nav to display the English name for each page

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Fix sections for Antora: "Developer Resources" and "Getting Data from Evergreen"
Remington Steed [Wed, 15 Jan 2020 13:59:43 +0000 (08:59 -0500)]
Docs: Fix sections for Antora: "Developer Resources" and "Getting Data from Evergreen"

This commit does the known tasks to prepare each main docs section
for Antora:

  - Add chapter labels to nav file items
  - To match existing docs "chapter" level headings, combine adoc files as
    needed so that each "chapter" from the old docs structure has a single
    file linked from the nav
  - Upgrade all heading levels in each adoc file so that the top-most
    heading is a "Level 1" heading (example: "= Chapter Name =")
  - Add ":toc:" below top heading of each file

NOTE: Previous commit had a duplicate title, but should have said "for
section 'Using the Public Access Catalog'".

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix section for Antora: "System Configuration and Customization"
Remington Steed [Wed, 15 Jan 2020 13:47:40 +0000 (08:47 -0500)]
Docs: Fix section for Antora: "System Configuration and Customization"

This commit does the known tasks to prepare each main docs section for
Antora:

  - Add chapter labels to nav file items
  - To match existing docs "chapter" level headings, combine adoc files as
    needed so that each "chapter" from the old docs structure has a single
    file linked from the nav
      - In this case, the only change was in advanced_features.adoc,
        where two sections had the top heading level (seems like a mistake).
        I bumped the second one down ("Binary MARC21 Feeds") so it is a
        subsection of the file. Ironically, since this commit also bumps
        up all headings by one level, it means that heading is the only one
        not changed in this commit.
  - Upgrade all heading levels in each adoc file so that the top-most
    heading is a "Level 1" heading (example: "= Chapter Name =")
  - Add ":toc:" below top heading of each file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix section for Antora: "System Configuration and Customization"
Remington Steed [Fri, 10 Jan 2020 13:47:25 +0000 (08:47 -0500)]
Docs: Fix section for Antora: "System Configuration and Customization"

This commit does the known tasks to prepare each main docs section for
Antora:

  - Add chapter labels to nav file items
  - To match existing docs "chapter" level headings, combine adoc files as
    needed so that each "chapter" from the old docs structure has a single
    file linked from the nav
  - Upgrade all heading levels in each adoc file so that the top-most
    heading is a "Level 1" heading (example: "= Chapter Name =")
  - Add ":toc:" below top heading of each file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix incorrect module path in API nav
Remington Steed [Thu, 9 Jan 2020 20:00:19 +0000 (15:00 -0500)]
Docs: Fix incorrect module path in API nav

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Move misplaced adoc file
Remington Steed [Thu, 9 Jan 2020 19:51:09 +0000 (14:51 -0500)]
Docs: Move misplaced adoc file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Convert subnav files to included partials
Remington Steed [Fri, 3 Jan 2020 17:15:01 +0000 (12:15 -0500)]
Docs: Convert subnav files to included partials

This commit adds labels to the Cataloging nav, and combines files from
subnav items that happen to have their own adoc files (but don't really
belong in the nav). This also bumps heading levels so that each file
starts with a "Level 1" (book title) heading, which Antora wants. And we
add a Table of Contents to the top of each file.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Cataloging heading improvements for Antora
Remington Steed [Thu, 9 Jan 2020 17:29:59 +0000 (12:29 -0500)]
Docs: Cataloging heading improvements for Antora

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Use Antora syntax for including partials
Remington Steed [Fri, 3 Jan 2020 16:10:17 +0000 (11:10 -0500)]
Docs: Use Antora syntax for including partials

These included snippets have been converted to Antora "partials", so we
need to use the special syntax (like we already do when including them
in the "Web Client Best Practices" section).

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoChanged the home page to be the introduction page
blake [Thu, 9 Jan 2020 19:29:03 +0000 (13:29 -0600)]
Changed the home page to be the introduction page

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoFixed double level 0 headings end_matter.adoc
blake [Fri, 3 Jan 2020 20:52:24 +0000 (14:52 -0600)]
Fixed double level 0 headings end_matter.adoc

Also threw MOBIUS's name and DIG individuals to the _attributes.adoc

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoNavigation: Acq is done - headers were shifted up
blake [Fri, 3 Jan 2020 20:38:15 +0000 (14:38 -0600)]
Navigation: Acq is done - headers were shifted up

Level 2 became level 1 and Table of contents added. Two files were merged
onto the "parent" as per the live docs layout. So it makes more sense when
viewed via Antora

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Adding recent docs changes to the antora version
Jane Sandberg [Tue, 31 Dec 2019 15:50:09 +0000 (07:50 -0800)]
Docs: Adding recent docs changes to the antora version

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
3 years agoDocs: Another Antora heading anchor fix
Remington Steed [Thu, 12 Dec 2019 17:21:25 +0000 (12:21 -0500)]
Docs: Another Antora heading anchor fix

Antora encourages us to use explicit heading anchors, and it prevents us
from breaking links when we change the heading text.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Convert more anchors to Antora syntax
Remington Steed [Thu, 12 Dec 2019 17:16:19 +0000 (12:16 -0500)]
Docs: Convert more anchors to Antora syntax

This commit fixes a few anchors that weren't caught in my previous
commits.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Convert more links to Antora syntax
Remington Steed [Thu, 12 Dec 2019 17:06:53 +0000 (12:06 -0500)]
Docs: Convert more links to Antora syntax

Antora requires that links to sections in a different file use the xref
syntax, not the double-angle-bracket shortcut syntax. As best as I can
tell, this commit changes all the links that go to other files (not the
file that the link is in).

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Convert existin anchors to Antora syntax
Remington Steed [Wed, 11 Dec 2019 20:10:47 +0000 (15:10 -0500)]
Docs: Convert existin anchors to Antora syntax

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Start converting internal links to antora format
Remington Steed [Wed, 11 Dec 2019 17:17:52 +0000 (12:17 -0500)]
Docs: Start converting internal links to antora format

Links to sections in the same file only need the section ID like this:

xref:#section_id

But links to sections in another file need the Antora page_id also:

xref:MODULE:PAGE.adoc#section_id

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Improve antora navs, add missing attrib files
Remington Steed [Thu, 5 Dec 2019 20:40:23 +0000 (15:40 -0500)]
Docs: Improve antora navs, add missing attrib files

- Remove numbering from install docs headers
- Link top-level nav items to each section's intro file
- Add a few missing _attributes.adoc files in pages/ subdirs

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fix syntax broken by "heading conversion" script
Remington Steed [Thu, 5 Dec 2019 20:08:23 +0000 (15:08 -0500)]
Docs: Fix syntax broken by "heading conversion" script

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoRemoved the Antora UI bits in favor of the dedicated repo
blake [Fri, 6 Dec 2019 15:24:24 +0000 (09:24 -0600)]
Removed the Antora UI bits in favor of the dedicated repo

Also edited the README to reflect the new build procedure.

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Add missing file from TechRef directory
Remington Steed [Thu, 5 Dec 2019 19:41:24 +0000 (14:41 -0500)]
Docs: Add missing file from TechRef directory

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Adjust headings where we used to use leveloffset
Remington Steed [Thu, 5 Dec 2019 19:16:48 +0000 (14:16 -0500)]
Docs: Adjust headings where we used to use leveloffset

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Add intro material to ROOT nav file
Remington Steed [Thu, 5 Dec 2019 18:54:44 +0000 (13:54 -0500)]
Docs: Add intro material to ROOT nav file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Add Index file and appendix attribs file
Remington Steed [Thu, 5 Dec 2019 16:06:27 +0000 (11:06 -0500)]
Docs: Add Index file and appendix attribs file

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Draft of all nav files
Remington Steed [Thu, 5 Dec 2019 16:06:27 +0000 (11:06 -0500)]
Docs: Draft of all nav files

Some files still contain 'leveloffset' commands which need to be
removed, and those previously offset files should probably have their
headings adjusted accordingly.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Adjust heading levels to avoid using leveloffset
Remington Steed [Thu, 5 Dec 2019 14:26:31 +0000 (09:26 -0500)]
Docs: Adjust heading levels to avoid using leveloffset

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Add draft nav for "Software Installation" section
Remington Steed [Thu, 5 Dec 2019 14:23:06 +0000 (09:23 -0500)]
Docs: Add draft nav for "Software Installation" section

Note: I don't think "leveloffset" is allowed like this here. We could
pass it to "include" as an attribute, but I'd rather us standardize our
headings in our files.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoAsciiDoc HEADING CONVERSION
Remington Steed [Thu, 5 Dec 2019 13:48:48 +0000 (08:48 -0500)]
AsciiDoc HEADING CONVERSION

This commit changes all headings from two-line style to prefix/suffix
style. (For now, we're only doing this in the docs using Antora.) Example:

Heading 1
=========

becomes

= Heading 1 =

This conversion makes it much easier to adjust the heading levels of
several files which were previously included using the 'leveloffset'
command.

NOTE: Only the prefix is required, but we felt the suffix improves
readability of the source.

Below is the python script I used to do the conversion. It is slightly
modified from a script used by ___ here:

https://github.com/JanusGraph/janusgraph/pull/115/commits/dc67ce73c08e79fa65b30bc8280861056070c573

Here's my source:

import re
import sys

def main(argv):
    #http://asciidoctor.org/docs/asciidoc-recommended-practices/#section-titles
    patterns = [
        (re.compile('^=+$'), '='),
        (re.compile('^-+$'), '=='),
        (re.compile('^~+$'), '==='),
        (re.compile('^\^+$'), '===='),
        (re.compile('^\++$'), '====='),
    ]

    with open(argv[1], 'r') as input_file:
        prev_line = None
        curr_line = None
        for line in input_file.readlines():
            prev_line = curr_line
            curr_line = line

            if prev_line is None:
                continue

            for pattern, heading in patterns:
                if pattern.match(curr_line) and len(prev_line) == len(curr_line):
                    # remove newline so we can append suffix to heading
                    prev_line = prev_line.rstrip()
                    sys.stdout.write('%s %s %s\n' % (heading, prev_line, heading))
                    prev_line = None
                    curr_line = None
                    break

            if prev_line is not None:
                sys.stdout.write(prev_line)

        # end for
        if curr_line is not None:
            sys.stdout.write(curr_line)

    # end with

if __name__ == '__main__':
    main(sys.argv)

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Remove Unicode Byte-Order Mark (BOM)
Remington Steed [Thu, 5 Dec 2019 14:06:46 +0000 (09:06 -0500)]
Docs: Remove Unicode Byte-Order Mark (BOM)

A few asciidoc files start with the BOM, which occasionally causes us
trouble.  For example, it interfered with our python script converting
headings from two-line style to prefix/suffix style.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoRemove "Admonitions" section and images, not used by AsciiDoctor/Antora
Remington Steed [Tue, 3 Dec 2019 21:13:28 +0000 (16:13 -0500)]
Remove "Admonitions" section and images, not used by AsciiDoctor/Antora

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Convert normal includes to Antora "partials"
Remington Steed [Thu, 24 Oct 2019 13:48:53 +0000 (09:48 -0400)]
Docs: Convert normal includes to Antora "partials"

Antora treats all includes as either "partials" or "examples". This case
seems like "partials", since "examples" seems to be meant for code
snippets.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Treat code include as an Antora "example"
Remington Steed [Thu, 24 Oct 2019 13:45:37 +0000 (09:45 -0400)]
Docs: Treat code include as an Antora "example"

This seems like a case that matches Antora's idea of an "example",
rather than a "partial".

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoIntroducing Next/Previous links at the bottom of the pages
blake [Thu, 24 Oct 2019 19:58:14 +0000 (14:58 -0500)]
Introducing Next/Previous links at the bottom of the pages

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoFixed README.adoc for working repo
blake [Thu, 24 Oct 2019 18:05:41 +0000 (13:05 -0500)]
Fixed README.adoc for working repo

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoUI Tweaks
blake [Thu, 24 Oct 2019 15:47:54 +0000 (10:47 -0500)]
UI Tweaks

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoRenamed the supplimental_ui folder for ease of understanding
blake [Thu, 24 Oct 2019 14:48:59 +0000 (09:48 -0500)]
Renamed the supplimental_ui folder for ease of understanding

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoIntroducing the "Evergreen Theme"
blake [Thu, 24 Oct 2019 06:02:43 +0000 (01:02 -0500)]
Introducing the "Evergreen Theme"

Changed several values for css theming. Still need to figure out how to
padd the nav bar off of the right so the dropdown isn't cut off.

Also added links to stuff in the nav. Making it more useful.

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoIntroducing lunr search functionality to the docs build
blake [Wed, 23 Oct 2019 19:29:10 +0000 (14:29 -0500)]
Introducing lunr search functionality to the docs build

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Move subnavs into appropriate modules
Remington Steed [Wed, 23 Oct 2019 18:55:03 +0000 (14:55 -0400)]
Docs: Move subnavs into appropriate modules

Let's try the built-in modularized nav setup.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Fill in some chapter nav files, include them in main nav
Remington Steed [Wed, 23 Oct 2019 18:28:23 +0000 (14:28 -0400)]
Docs: Fill in some chapter nav files, include them in main nav

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoLP1848524_antora_ize_docs
blake [Wed, 23 Oct 2019 17:42:59 +0000 (12:42 -0500)]
LP1848524_antora_ize_docs

Finished testing the partial nav - IT WORKS.

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Draft Antora nav file with subnav
Remington Steed [Wed, 23 Oct 2019 17:14:32 +0000 (13:14 -0400)]
Docs: Draft Antora nav file with subnav
Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoLP1848524_antora_ize_docs
blake [Mon, 21 Oct 2019 15:23:20 +0000 (10:23 -0500)]
LP1848524_antora_ize_docs

This introduces the antora directory structure stub. Started a new folder
docs-antora. The sub folder "ui" contains a dump of the Antora-provided default
UI from https://gitlab.com/antora/antora-ui-default.git

TODO: Flesh out the modules/ROOT/nav.adoc

Signed-off-by: blake <blake@mobiusconsortium.org>
3 years agoDocs: Delete images used only in deleted AsciiDoc files
Remington Steed [Tue, 22 Oct 2019 21:32:47 +0000 (17:32 -0400)]
Docs: Delete images used only in deleted AsciiDoc files

NOTE: This commit should be carefully reviewed for images we are
omitting accidentally!

This commit removes image files which are no longer used, since the
previous commit deleted the only AsciiDoc files that referenced them.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Remove unused AsciiDoc files
Remington Steed [Tue, 22 Oct 2019 21:26:10 +0000 (17:26 -0400)]
Docs: Remove unused AsciiDoc files

NOTE: This commit should be carefully reviewed for any docs we might
be omitting accidentally!

This commit removes all AsciiDoc files that we don't currently include
in another AsciiDoc file (via "include::"), because that means they
never appear in the generated docs (HTML, PDF, or ePUB). Some files have
been left untouched, such as everything in the TechRef/ directory.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoDocs: Delete unused docs images
Remington Steed [Tue, 22 Oct 2019 21:20:39 +0000 (17:20 -0400)]
Docs: Delete unused docs images

This commit attempts to delete all images from the media/ directory that
aren't used within an AsciiDoc file (via "image:" or "image::"). This
commit also doesn't touch images that are known to be used in the HTML
template (such as the Evergreen logo, PDF/ePUB icons, NOTE icons, and
callout number icons).

This list of images was generated via multiple bash commands, grepping
and diffing. It would be great for us to have a standard command for
finding these periodically.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
3 years agoLP#1873048 - Stamp upgrade script
Chris Sharp [Mon, 4 May 2020 17:20:09 +0000 (13:20 -0400)]
LP#1873048 - Stamp upgrade script

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1873048: add scoped retrieve perms for booking resource types and resources
Jeff Davis [Thu, 30 Apr 2020 17:36:44 +0000 (10:36 -0700)]
LP#1873048: add scoped retrieve perms for booking resource types and resources

In the XUL client, when selecting a resource type, the list was limited
by owning library.  But in the web client, the list would show all
resource types across all libraries.  This commit addresses that
regression by adding a new VIEW_BOOKING_RESOURCE_TYPE permission with
context_field in the IDL.  That way, users only see resource types owned
by org units where they have the permission.

While we're at it, a new VIEW_BOOKING_RESOURCE perm is also added for
resources.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1865533: save changes on Edit Hold in My Account
Jeff Davis [Tue, 28 Apr 2020 20:52:52 +0000 (13:52 -0700)]
LP#1865533: save changes on Edit Hold in My Account

When editing a hold in the OPAC, changes are not saved if the SMS field
is blank.  The sms_notify value is being passed as an empty string, and
this non-null value violates the "sms_check" constraint on
action.hold_request.  Replacing the empty string with undef allows the
hold update to succeed.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1787636: Sort Libraries without Holdings In Holdings View
Daniel Pearl [Wed, 13 Mar 2019 14:07:17 +0000 (10:07 -0400)]
LP1787636: Sort Libraries without Holdings In Holdings View

Empty libraries in holdings view are listed at the end of the library
list instead of integrated within the list.  This patch sorts them
within the list.

Signed-off-by: Daniel Pearl <dpearl@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1787636: Remove right justification in grid view
Jason Stephenson [Thu, 19 Mar 2020 13:45:18 +0000 (09:45 -0400)]
LP1787636: Remove right justification in grid view

Align all owning libraries to the left as requested in the bug
description and comments.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1813088: Coerce Values to String in egGridValueFilter
Jason Stephenson [Thu, 26 Mar 2020 14:47:46 +0000 (10:47 -0400)]
LP1813088: Coerce Values to String in egGridValueFilter

Coerce values to string in the switch for Boolean columns in the main
egGridValueFilter function.  This came about after an IRC conversation
with Mike Rylander who suggested this as a possible fix.  It should
when field values are strings, integers, or Booleans.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1869906 Angular staff cat browse links
Bill Erickson [Tue, 31 Mar 2020 15:51:41 +0000 (11:51 -0400)]
LP1869906 Angular staff cat browse links

Use routerLinks instead of click-handlers for browse results links so
users have the option to control-click and open individual results in a
new tab.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1876163 - Fix Angular Test Failure
Jason Stephenson [Thu, 30 Apr 2020 18:09:40 +0000 (14:09 -0400)]
LP#1876163 - Fix Angular Test Failure

ERROR in app/core/format.spec.ts -  TS2554: Expected 4 arguments,
but got 3.

orgService = new OrgService(netService, authService, pcrudService);

Commit 9e8d662f418 added a new first argument to the OrgService
constructor and two files needed updates:

* app/core/format.spec.ts
* src/app/core/org.spec.ts

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1869794: Stamping upgrade script
Ben Shum [Thu, 30 Apr 2020 18:16:19 +0000 (14:16 -0400)]
LP#1869794: Stamping upgrade script

Signed-off-by: Ben Shum <ben@evergreener.net>
3 years agoLP#1869794 new best hold sort order
Jason Etheridge [Wed, 26 Feb 2020 14:40:04 +0000 (09:40 -0500)]
LP#1869794 new best hold sort order

owning lib to requestee home lib proximity

implementation, release notes and TechRef tweak

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Lindsay Stratton <lstratton@wlsmail.org>
Signed-off-by: Ben Shum <ben@evergreener.net>
3 years agoLP1858448 Aged money pgtap test repair
Bill Erickson [Wed, 29 Apr 2020 14:14:34 +0000 (10:14 -0400)]
LP1858448 Aged money pgtap test repair

Enable the "age money with circulations" setting in the original aged
money pgtap test so the aged money it seeks may be created and found.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP#1873286 - Add release notes entry
Chris Sharp [Wed, 29 Apr 2020 15:40:08 +0000 (11:40 -0400)]
LP#1873286 - Add release notes entry

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1873286: Fix Bad End Tags
Jason Stephenson [Fri, 24 Apr 2020 18:22:25 +0000 (14:22 -0400)]
LP1873286: Fix Bad End Tags

Fix self-closing tags used in non-void HTML and non-empty XHTML tags.
These tags now cause errors with jQuery version 3.5.0 and were
technically wrong from the start.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1375296 - Quiet deprecation warnings in autoreconf -i step.
Chris Sharp [Mon, 2 Mar 2020 22:51:08 +0000 (17:51 -0500)]
LP#1375296 - Quiet deprecation warnings in autoreconf -i step.

Thanks to Warren Layton for suggesting this fix to the community!

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1848550 / LP1835128 Redirect to AngJS splash page
Bill Erickson [Thu, 26 Dec 2019 17:17:55 +0000 (12:17 -0500)]
LP1848550 / LP1835128 Redirect to AngJS splash page

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1848550 Cache org settings in IndexedDB (Angular)
Bill Erickson [Mon, 2 Dec 2019 17:26:22 +0000 (12:26 -0500)]
LP1848550 Cache org settings in IndexedDB (Angular)

Teach the org settings lookup code to store cacheable settings (those
for "here") in IndexedDB to reduce the number of repetitive network
calls for org unit settings.

Settings cached in IndexedDB are cleared upon successful login to avoid
stale values.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1854850 Angular IndexedDB Shared Worker Communication
Bill Erickson [Mon, 2 Dec 2019 17:26:08 +0000 (12:26 -0500)]
LP1854850 Angular IndexedDB Shared Worker Communication

Implements the client side of the communication to the Evergreen
IndexedDB shared worker for Angular.

From this may be built caching mechanisms, offline transaction
handling, etc.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1848550: client-side caching of org settings for AngularJS
Jeff Davis [Wed, 27 Nov 2019 00:12:37 +0000 (16:12 -0800)]
LP#1848550: client-side caching of org settings for AngularJS

The web client almost always does live lookups any time it needs to
check an org setting.  But these settings rarely change, so it would
make sense to cache them.  They're already cached using Lovefield in
order to support offline; this commit checks the cache first, and only
does a live lookup if the setting is uncached.

The settings cache is cleared on login to ensure stale values don't
stick around forever.  To refresh the cache, simply logout and then
login; cached values will be deleted and the latest values will be
retrieved from the server when they are needed.

Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLp 1858448: Fix version number in upgrade script
Jason Stephenson [Tue, 28 Apr 2020 18:51:25 +0000 (14:51 -0400)]
Lp 1858448: Fix version number in upgrade script

Change "TODO" to "1202" in versioned upgrade script.  I'm not sure how
that didn't happen unless I forgot to save the file or doing an
--amend before pushing changed things.

Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP 1858448: Stamping Upgrade Script
Jason Stephenson [Tue, 28 Apr 2020 18:44:11 +0000 (14:44 -0400)]
LP 1858448: Stamping Upgrade Script

Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 Disable inititial aged money migration
Bill Erickson [Fri, 24 Apr 2020 14:42:42 +0000 (10:42 -0400)]
LP1858448 Disable inititial aged money migration

Modify the existing SQL upgrade scripts to prevent the automatic
migration of billings/payments to the new aged money tables.  This is
done to prevent data loss for sites which have not yet upgraded to the
affected versions.

The schema changes are kept so both pre- and post-upgrade sites can
follow the same schema update path.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 Upgrade instructions WIP
Bill Erickson [Tue, 14 Apr 2020 14:48:32 +0000 (10:48 -0400)]
LP1858448 Upgrade instructions WIP

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 Money aging srfsh script function repair
Bill Erickson [Tue, 14 Apr 2020 14:28:09 +0000 (10:28 -0400)]
LP1858448 Money aging srfsh script function repair

Fixes a copy pasto in the money aging script, teaching it call the
correct money aging function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 More IDL fixups
Jason Stephenson [Wed, 11 Mar 2020 16:47:55 +0000 (12:47 -0400)]
LP1858448 More IDL fixups

Make IDL fixes as recommended in the Launchpad bug discussion.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
3 years agoLP1858448 Aged money control flags
Bill Erickson [Thu, 13 Feb 2020 16:01:41 +0000 (11:01 -0500)]
LP1858448 Aged money control flags

Adds 2 global flags for controling if/when billings and payments are
aged.

history.money.age_with_circs
history.money.retention_age

Adds a srfsh script for manually aging money based on the
'history.money.retention_age' setting value.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 Aged payment fields release notes
Bill Erickson [Fri, 7 Feb 2020 20:52:19 +0000 (15:52 -0500)]
LP1858448 Aged payment fields release notes

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP1858448 Additional aged_payment fields
Bill Erickson [Fri, 7 Feb 2020 20:19:15 +0000 (15:19 -0500)]
LP1858448 Additional aged_payment fields

Adds accepting_usr, cash_drawer, and billing columns to the
money.aged_payment table.

Modifies the existing "xact" column for aged payments and billings in
the IDL to link to "mbt" instead of "acirc", since not all
payments/billings are linked to aged circs.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoLP#1772053 - Fix minor typos
Chris Sharp [Thu, 23 Apr 2020 19:36:41 +0000 (15:36 -0400)]
LP#1772053 - Fix minor typos

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
3 years agoLP 1772053: Cleanup Dan's code.
Jason Stephenson [Mon, 10 Sep 2018 20:09:26 +0000 (16:09 -0400)]
LP 1772053: Cleanup Dan's code.

Mostly whitespace cleanup, but I did restore a line or two that appear
to have been accidentally deleted.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP 1772053: Add Missing Fields to Print Templates
Dan Pearl [Fri, 7 Sep 2018 17:18:56 +0000 (13:18 -0400)]
LP 1772053: Add Missing Fields to Print Templates

Almost complete implementation for LP1772053.  To be done: items
relating to call numbers, prefixes and suffixes for Hold Pull Lists
and Transit Slips.

Signed-off-by: Daniel Pearl <dpearl@cwmars.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP1781274 Fix floating point issue preventing transactions from closing
Michele Morgan [Fri, 20 Dec 2019 21:00:08 +0000 (16:00 -0500)]
LP1781274 Fix floating point issue preventing transactions from closing

Paying multiple bills with a single payment can lead to some
transactions not closing because of floating point math inaccuracies.
This branch resolves the issue by limiting pending payment amounts to
2 decimal places.

The bug can be reproduced using grocery bills as follows.

Retrieve a patron that owes no money.

Add a billing of $.90
Add a billing of $.10
Select both billings
Enter $1 in payment received and Apply the payment

Click on History in the billings screen. Turn on the Total Billed and
Transaction Finish Time column and note that the $.10 bill has zero
balance owed, but does not have a transaction finish time.

To test:

Use the steps above to reproduce, noting the lack of Transaction
Finish Time.  Apply the patch.

Use the same steps above and note that the post patch payments
resulted in both transactions getting a Transaction Finish Time.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agoDocs: additions to 3.5 release notes
Jane Sandberg [Tue, 21 Apr 2020 16:41:10 +0000 (09:41 -0700)]
Docs: additions to 3.5 release notes

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
3 years agoLP1868354 Angular catalog item/call number transfer
Bill Erickson [Wed, 1 Apr 2020 14:47:08 +0000 (10:47 -0400)]
LP1868354 Angular catalog item/call number transfer

Add support for 3 varieties of items and call number transfer in the
Angular staff catalog.

1. Transfer selected items to selected call number.

2. Transfer selected call numbers and attached items to selected bib
record.

3. Transfer selelected items to selected bib record and org unit ID
(owning library) creating new call numbers as needed.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
3 years agoLP#1819540 - Change expire list to match what the hold expire function
Steven Callender [Tue, 19 Mar 2019 16:57:55 +0000 (12:57 -0400)]
LP#1819540 - Change expire list to match what the hold expire function

Updated to use 'today'::timestamptz as suggested by Mike Rylander.

Testing:

1. Update a few holds that show up on the hold shelf so their shelf time
is set to now.

2. Confirm that you see them on the holds shelf.

3. Show clearable holds, holds are on the list.

4. Check in one of the items, and see that it goes back on the hold shelf.

After Fix Applies.

1. Update a few holds that show up on the hold shelf so their shelf time
is set to now.

2. Confirm that you see them on the holds shelf.

3. Show clearable holds, holds are no longer on the list.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
3 years agolp1801137 Item Status Precat Information
Kyle Huckins [Wed, 11 Mar 2020 21:07:11 +0000 (21:07 +0000)]
lp1801137 Item Status Precat Information

- Display precat title, author, and isbn in place of
regular title, author, and isbn fields in Item Status
list view when working with precat items.
- Add Dummy Title and Dummy Author fields to Item Status
Detail view when looking at a precat item.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
4 years agoLP1774268: Tidy up hold notification testing
Jason Boyer [Wed, 1 Apr 2020 12:57:53 +0000 (08:57 -0400)]
LP1774268: Tidy up hold notification testing

Signed-off-by: Jason Boyer <JBoyer@eoli.info>
4 years agoLP#1774268: handle opac.hold_notify empty string in AngJS patron editor
Jeff Davis [Wed, 19 Feb 2020 20:36:30 +0000 (12:36 -0800)]
LP#1774268: handle opac.hold_notify empty string in AngJS patron editor

If a patron does not want either phone or email hold notifications,
their opac.hold_notify user setting will be an empty string.  Let's
ensure that the hold notify checkboxes remain unchecked in the patron
editor when that is the case.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
4 years agoLP 1774268: Default Hold Notification checkboxes
Suzanne Paterno [Tue, 6 Aug 2019 15:29:57 +0000 (11:29 -0400)]
LP 1774268: Default Hold Notification checkboxes

On patron edit screen set the email and phone notification
to true when patron doesn't have any prefernces. This mimics
the behavior in the xul client.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
4 years agoLP1849683: Stamp upgrade script
Jason Boyer [Tue, 31 Mar 2020 12:07:45 +0000 (08:07 -0400)]
LP1849683: Stamp upgrade script

Signed-off-by: Jason Boyer <JBoyer@eoli.info>
4 years agoLP1849683: i18n and space supplement
Jason Boyer [Thu, 5 Mar 2020 15:44:07 +0000 (10:44 -0500)]
LP1849683: i18n and space supplement

Minor changes to realign inserts and permission assignment
with those surrounding, and remove a bit of EOL whitespace
in the release note.

Signed-off-by: Jason Boyer <JBoyer@eoli.info>