Bug 10204

Summary: Patron image no longer appears in the OPAC
Product: Koha Reporter: Owen Leonard <oleonard>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: chris, mirko
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 10204 - Patron image no longer appears in the OPAC
Bug 10204 - Patron image no longer appears in the OPAC
[PASSED QA] Bug 10204 - Patron image no longer appears in the OPAC

Description Owen Leonard 2013-05-06 15:57:20 UTC
With the replacement of opac-userupdate.pl with opac-memberentry.pl there is now no place where the patron will see their patron image. The patron image should be added to opac-memberentry.pl in order to maintain the functionality of the previous version.
Comment 1 Owen Leonard 2013-05-06 16:44:14 UTC Comment hidden (obsolete)
Comment 2 Mirko Tietgen 2013-05-07 13:23:07 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2013-05-08 05:52:57 UTC
Created attachment 18006 [details] [review]
[PASSED QA] Bug 10204 - Patron image no longer appears in the OPAC

With the addition of opac-memberentry.pl to the OPAC we lost a way to
display the image associated with a patron's account. This patch adds
display of the patron image to opac-memberentry.pl now that
opac-userdetails.pl and opac-userupdate.pl are deprecated.

To test:

1. Log into the OPAC as a patron who has an image associated with their
   account. View the "my personal details" tab and confirm that the
   patron image appears with and without OPACPatronDetails enabled.

2. Log into the OPAC as a patron who has no image associated with their
   account. View the "my personal details" tab and confirm that the
   layout looks correct.

3. Turn off OPACpatronimages and confirm that the "my personal details"
   page looks correct.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested with OpacPatronDetails and OpacPatronImags turned on/off
and it's working well.
Template only changes.
Comment 4 Katrin Fischer 2013-05-08 05:54:37 UTC
I ran the translate update process after applying this patch and 3 strings go fuzzy, but those don't contain translatable text. Example:

"%s [%% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') && hidden.defined('sex') %%] "

So I guess this should be safe for 3.12.
Comment 5 Jared Camins-Esakov 2013-05-08 13:49:31 UTC
This patch has been pushed to master and 3.12.x.
Comment 6 Chris Cormack 2013-05-12 03:12:33 UTC
Not needed for 3.10.x