https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26258

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #166147|0                           |1
        is obsolete|                            |

--- Comment #21 from David Nind <[email protected]> ---
Created attachment 166159
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166159&action=edit
Bug 26258: Circulation tabs inconsistent with counters

This patch makes changes to the markup, style, and behaviour of counters
which are displayed on the patron's account tabs: Checkouts, Holds, etc.
Tabs which contain a count which might change based on a user's actions
will keep up to date, e.g. changing claims status, enrolling in clubs,
etc.

To test, apply the patch and enable features if necessary: recalls,
article requests, claims, clubs, and patron lists. Test both from the
checkout page and the patron detail page:

Recalls:

- If necessary, check out some items to patrons so that there are titles
  which can be recalled.
- Log in to the OPAC and place one or more recalls.
- Return to the staff interface and view the "Recalls" tab on the
  patron's account.
- Click Actions -> Cancel for one of the recalls. The recall should be
  marked "Cancelled" and the count on the tab should update.

Return claims:

- If necessary, check out some items to a patron. Click the "Claim
  returned" button on a few of the patron's checkouts.
- As you add claims, the "Claims" tab should update the count of claims.

  *** NOTE: This changes the display of claims in the tab so that the
      count of unresolved claims appears first: "Unresolved / Resolved".
      I think it makes more sense for the first number to be the one
      which shows the number of "active" issues.

- Open the Claims tab. Click Actions->Resolve on one or more claims,
  confirming that the resolved claim is hidden and the tab numbers
  update.
- Test setting the ClaimReturnedWarningThreshold system preference to
  various values: e.g. empty, 1, 5.
  - If the pref is empty, OR if the pref is set to a number higher
    than the number of patron claims, the count of claims should be
    styled with the "info" blue background and the count of resolved
    claims is not shown.

    *** NOTE: Hiding the resolved claims seems logical if there is not a
        concern about the total number of claims.

  - If the number of all claims exceeds the value of the preference,
    the tab should show a count of "Unresolved claims / Resolved claims"
    with the yellow warning style.

Restrictions:

- Adding a restriction to the account should cause a counter with a
  red background to appear on the tab.

Clubs:

- If necessary, create at least one club template and then multiple
  clubs.
- From the "Clubs" tab on the patron's account, try enrolling and
  cancelling enrollments to confirm that the count on the tab updates
  correctly.

  *** NOTE: I have removed the count of available clubs because I think
      it's not relevant to this interface. We don't do it with patron
      lists, so this makes it a little more consistent..

Patron lists:

- If necessary, create two ore more patron lists.
- From the "Patron lists" tab, try adding and removing the patron from
  lists. The tab counter should update correctly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to