3b47ed3f90
TEST PLAN --------- In the staff client on a kohadevbox: 1) Enable the HouseboundModule system preference. 2) Enable the EnableBorrowerFiles system preference. 3) Go to a patron detail page. -- note the Home library is shown. 4) Go to Fines tab (left pane) -- Home library is still shown. 5) Click each of the four horizontal tabs (Account, Pay fines, Create manual invoice, Create manual credit) -- Home library not visible for both create tabs and the account tab 6) Click the 'Create manual invoice' tab, and create some kind of entry. 7) On the 'Account' tab, the table has a 'Details' button. Click that. -- Home library not visible. 8) Click the 'Details' tab in the left pane. 9) Click 'More' button and choose 'Delete' -- Home library not visible when asked for delete confirmation. 10) Cancel that, and if you know how to actually set up the Norwegian system preferences you can figure out how to test the nl-search change. After seeing all these not visible, apply this patch. Repeat all the steps, but this time the Home library should be visible. Works OK. Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
69 lines
2.7 KiB
Text
69 lines
2.7 KiB
Text
[% USE Asset %]
|
|
[% USE Price %]
|
|
[% USE Branches %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Delete patron [% patron.firstname %] [% patron.surname %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="pat_deletemem" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Delete patron [% patron.firstname %] [% patron.surname %]</div>
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% INCLUDE 'members-toolbar.inc' %]
|
|
[% IF ( ItemsOnIssues || charges || guarantees ) %]
|
|
<div class="dialog alert">
|
|
<h3>Cannot delete patron</h3>
|
|
<ul>
|
|
[% IF ( ItemsOnIssues ) %]
|
|
<li>Patron has [% ItemsOnIssues %] item(s) checked out.</li>
|
|
[% END %]
|
|
[% IF ( charges ) %]
|
|
<li>Patron has [% charges | $Price %] in fines.</li>
|
|
[% END %]
|
|
[% IF ( guarantees ) %]
|
|
<li>Patron's record has guaranteed accounts attached.</li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% ELSIF op == 'delete_confirm' and patron %]
|
|
[%# TODO add "patron does not exist" unless patron %]
|
|
<div class="dialog alert">
|
|
<h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3>
|
|
<form action="/cgi-bin/koha/members/deletemem.pl">
|
|
<input type="hidden" name="csrf_token" value="[% csrf_token %]" />
|
|
<input type="hidden" name="member" value="[% patron.borrowernumber %]"/>
|
|
<input type="hidden" name="op" value="delete_confirmed" />
|
|
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
|
|
</form>
|
|
<form action="/cgi-bin/koha/members/moremember.pl">
|
|
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
|
|
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
[% IF ( keeplocal ) %]
|
|
<div class="dialog message">
|
|
<h3>Remote record deleted, local record kept</h3>
|
|
<p>Patron was marked for deletion from Norwegian national patron database, but the local record was kept.</p>
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/members-menu.js") %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|