Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt
Aleisha Amohia 4a3eaf02e2 Bug 17698: Make patron notes show up on staff dashboard
This patch adds a user permission for managing issue notes, and a 'noteseen'
column to the issues table.

To test:
1) Apply Bug 14224 first
2) Apply this patch, update database, rebuild schema.
3) Restart koha-common and memcached
4) Turn on AllowCheckoutNotes syspref if haven't already
5) Issue two items to two different users (one item each)
6) Log into the OPAC as one of the users and add an issue note to their
issue
7) Log out and log back into the OPAC as the other user
8) Disable Javascript
9) Refresh opac-user.pl
10) Leave a checkout note on their issue
11) Enable javascript and log into the Staff Client as a superlibrarian
user
12) Go to your user's account and edit their permissions to have
everything ticked EXCEPT circulate->manage checkout notes.
13) Go to main intranet page. There should be no message saying
'checkout notes pending'.
14) Go to circulation home page. There should be no link to Checkout notes.
15) Go back to user's permissions and tick circulate->manage checkout notes.
16) Go back to main intranet page. There should now be a message at the
bottom saying 'Checkout notes pending: 2'
17) Go to circulation home page. There should be a link to Checkout notes
with a 2 next to it. Click this link
18) Attempt to mark an checkout note as seen. This should update the status
of the checkout note to 'seen' and disable to 'mark as seen' button while
enabling the 'mark as not seen' button.
19) Test both buttons with both issues.
20) Test select all and clear all buttons
21) Confirm that buttons at the bottom are only enabled if a checkbox is
checked
22) Try selecting both issues and using the buttons at the bottom to
mark multiple issue notes at once.
23) Confirm the barcode link to the item works as expected.
24) Confirm the cardnumber link to the user works as expected.
25) Confirm all table details show correctly.

Sponsored-by: Catalyst IT

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Followed test plan, works as expected
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: Remove self-checkout permissions

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-07-23 15:23:40 +00:00

142 lines
6.8 KiB
Text

[% USE Koha %]
[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Circulation</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="circ_circulation-home" class="circ">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Circulation</div>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-5 col-md-4">
<h3>Circulation</h3>
<ul class="buttons-list">
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/circulation.pl"><i class="fa fa-upload"></i> Check out</a>
</li>
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/returns.pl"><i class="fa fa-download"></i> Check in</a>
</li>
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/renew.pl"><i class="fa fa-retweet"></i> Renew</a>
</li>
[% UNLESS IndependentBranches %]
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/selectbranchprinter.pl"><i class="fa fa-home"></i> Set library</a>
</li>
[% END %]
[% IF ( fast_cataloging ) %]
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
<li>
<a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"><i class="fa fa-plus"></i> Fast cataloging</a>
</li>
[% END %]
[% END %]
[% IF ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes ) %]
<li>
<a href="/cgi-bin/koha/circ/checkout-notes.pl">Checkout notes</a> [% IF ( pending_checkout_notes ) %]<span class="number_box"><a href="/cgi-bin/koha/circ/checkout-notes.pl">[% pending_checkout_notes %]</a></span>[% END %]
</li>
[% END %]
</ul>
</div>
<div class="col-sm-5 col-md-4">
<h3>Holds</h3>
<ul class="buttons-list">
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/view_holdsqueue.pl"><i class="fa fa-tasks"></i> Holds queue</a>
</li>
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/pendingreserves.pl"><i class="fa fa-hand-grab-o"></i> Holds to pull</a>
</li>
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/waitingreserves.pl"><i class="fa fa-calendar"></i> Holds awaiting pickup</a>
</li>
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/reserveratios.pl"><i class="fa fa-line-chart"></i> Hold ratios</a>
</li>
</ul>
</div>
<!-- Add the extra clearfix for only the required viewport -->
<div class="clearfix visible-sm-block"></div>
<div class="col-sm-5 col-md-4">
[% IF Koha.Preference('ArticleRequests') %]
<h3>Patron request</h3>
<ul class="buttons-list">
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/article-requests.pl" title="Article requests"><i class="fa fa-newspaper-o"></i> Article requests</a>
</li>
</ul>
[% END %]
<h3>Transfers</h3>
<ul class="buttons-list">
[% IF Branches.InIndependentBranchesMode %]
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/branchtransfers.pl"><i class="fa fa-exchange"></i> Transfer</a>
</li>
[% END %]
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/transferstoreceive.pl"><i class="fa fa-sign-in"></i> Transfers to receive</a>
</li>
</ul>
<h3>Overdues</h3>
<ul class="buttons-list">
[% IF ( CAN_user_circulate_overdues_report ) %]
<li>
<a class="circ-button"
href="/cgi-bin/koha/circ/overdue.pl"
title="Warning: This report is very resource intensive on systems with large numbers of overdue items."
><i class="fa fa-clock-o"></i> Overdues</a>
</li>
[% END %]
<li>
<a class="circ-button"
href="/cgi-bin/koha/circ/branchoverdues.pl"
title="Limited to your library. See report help for other details."
><i class="fa fa-clock-o"></i> Overdues with fines</a>
</li>
[% IF Koha.Preference('OnSiteCheckouts') %]
<li>
<a class="circ-button" href="/cgi-bin/koha/circ/on-site_checkouts.pl">Pending on-site checkouts</a>
</li>
[% END %]
</ul>
</div>
</div>
<div class="row" id="intranet-circulation-home-html">
<div class="col-md-12">
[% Koha.Preference('IntranetCirculationHomeHTML') %]
</div>
</div>
<div class="row" id="offline-circulation">
<div class="col-md-12">
<h4>Offline circulation</h4>
<div class="col-sm-5 col-md-3">
[% IF (AllowOfflineCirculation) %]
<a href="/cgi-bin/koha/circ/offline.pl">Built-in offline circulation interface</a>
[% END %]
<p><a href="/cgi-bin/koha/offline_circ/process_koc.pl">Upload offline circulation file (.koc)</a></p>
<p><a href="/cgi-bin/koha/offline_circ/list.pl">Pending offline circulation actions</a></p>
</div>
<div class="col-sm-5 col-md-3">
<p><a href="https://github.com/bywatersolutions/koha-offline-circulation/releases"><i class="fa fa-window-maximize"></i> Get desktop application</a></p>
<p><a href="https://addons.mozilla.org/[% lang %]/firefox/addon/koct/"><i class="fa fa-firefox"></i> Get Firefox add-on</a></p>
</div>
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]