Bugzilla – Attachment 100925 Details for
Bug 23808
Creating Child Guarantee doesn't populate Guarantor Information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23808: (follow-up) Display card number in 'Guarantor information' in memberentry.pl
Bug-23808-follow-up-Display-card-number-in-Guarant.patch (text/plain), 6.11 KB, created by
Alex Buckley
on 2020-03-17 21:26:03 UTC
(
hide
)
Description:
Bug 23808: (follow-up) Display card number in 'Guarantor information' in memberentry.pl
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2020-03-17 21:26:03 UTC
Size:
6.11 KB
patch
obsolete
>From 006792ce9362be483808dda6e6f2102fa1b81e13 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Tue, 17 Mar 2020 20:43:59 +0000 >Subject: [PATCH] Bug 23808: (follow-up) Display card number in 'Guarantor > information' in memberentry.pl > >Instead of displaying 'Patron #' and displaying the guarantor's borrowernumber >in 'Guarantor information' we should display 'Patron card number:' with >the cardnumber displayed as that value is more meaningful to librarians. >The hyperlink containing the borrowernumber should stay the same so that >librarians can easily visit the patron record of existing guarantor >patrons. > >Test plan: > >1. Apply first patch and follow it's test plan > >2. On an Adult patrons record select 'Add guarantee' > >3. In 'Guarantor information' section of memberentry.pl observe in the >pre-filled guarantor information there is >a line 'Patron #:' with a link displaying a borrowernumber (not card number) and when you click on the link it takes you to the adult/guarantors patron account > >4. Select 'Search to add' and search and add another guarantor > >5. Observe in the added guarantor 'Patron #:' is displayed along with >the borrowernumber (not card number). The borrowernumber displayed in >not a link. > >6. Apply this patch > >7. On a adults patron select 'Add guarantee' > >8. Observe in 'Guarantor information' section the pre-filled guarantor >now has 'Patron card number:' displayed (instead of 'Patron #:', and it's link now displays the guarantors cardnumber. >Clicking on the link still takes you to the guarantors patron account > >9. Repeat step 4 > >10. Observe in the added guarantor they also have 'Patron card number:' >(instead of 'Patron #:'). A cardnumber rather than borrowernumber is >displayed. The cardnumber is not a link. > >11. Confirm tests still pass: >sudo koha-shell <instancename> >prove xt >prove t > >Sponsored-by: South Taranaki District Council, NZ >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 10 +++++----- > koha-tmpl/intranet-tmpl/prog/js/members.js | 2 +- > 2 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 283ead7699..5a0e61a5f9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -386,8 +386,8 @@ > </li> > [% ELSE %] > <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> >- <span class="label">Patron #:</span> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a> >+ <span class="label">Patron card number:</span> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor.cardnumber | html %]</a> > </li> > > [% IF r.guarantor.surname %] >@@ -421,8 +421,8 @@ > <fieldset class="rows"> > <ol> > <li class="guarantor-details" data-borrowernumber="0"> >- <span class="label">Patron #:</span> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.borrowernumber | html %]</a> >+ <span class="label">Patron card number:</span> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.cardnumber | html %]</a> > <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/> > </li> > >@@ -457,7 +457,7 @@ > <fieldset class="rows guarantor" id="guarantor_template"> > <ol> > <li class="guarantor-details" data-borrowernumber="0"> >- <span class="label">Patron #:</span> >+ <span class="label">Patron card number:</span> > <span class="new_guarantor_id_text"></span> > <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index da7d47e26d..1e102f1be7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -181,7 +181,7 @@ function select_user(borrowernumber, borrower, relationship) { > var guarantor_id = $('#guarantor_id').val(); > if ( guarantor_id ) { > fieldset.find('.new_guarantor_id').first().val( guarantor_id ); >- fieldset.find('.new_guarantor_id_text').first().text( guarantor_id ); >+ fieldset.find('.new_guarantor_id_text').first().text( borrower.cardnumber ); > } else { > fieldset.find('.guarantor_id').first().hide(); > } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23808
:
100839
|
100840
|
100841
|
100842
|
100844
|
100845
|
100889
|
100900
|
100925
|
100928
|
100929
|
100957
|
100958
|
101098
|
101099
|
101100
|
101101
|
105565