[Koha-devel] cannot display branchname and patron category description in card layout

Katrin Fischer katrin.fischer.83 at web.de
Thu Sep 21 20:09:29 CEST 2023


Hi,

a good first step would be to file an enhancement request as a new bug
on bugzilla. I did some searching and couldn't find one about adding the
patron category description.

Katrin

On 21.09.23 18:38, Michael Hafen wrote:
> If you are looking at the code, look at C4/Patroncards/Lib.pm in the
> get_borrower_attributes() function.  That's where the branchcode to
> branchname conversion is handled, I figure that would be the place to
> do a categorycode to category description conversion.
>
> On Thu, Sep 21, 2023 at 12:17 AM Zahid Iqbal
> <zahidiqbal.isb at gmail.com> wrote:
>
>     thanks for the response.
>     i have checked the branchcode, it is displaying correctly in
>     patron card as you told. 👍
>     but i cannot find any solution for categorycode. I will still look
>     into code. Maybe I will find a solution for that.
>
>     On Wed, Sep 20, 2023 at 9:08 PM Michael Hafen
>     <michael.hafen at washk12.org> wrote:
>
>         I have a layout using "<sort2>" in the text box for field 2. 
>         Looks like the code will change "<branchcode>" into the
>         library name.  No such luck in current code for patron
>         category though.
>
>         On Tue, Sep 19, 2023 at 11:17 PM Zahid Iqbal
>         <zahidiqbal.isb at gmail.com> wrote:
>
>             Hi, In koha 22.11 can someone guide to print branchname
>             and patron category description on pdf file for patron
>             card creator
>
>              1. print branchname not branchcode
>              2. print patron-category-description not categorycode
>
>
>             what are the values i haveto type in text box for field1
>             and field2 in patron card layout  for printing
>             branchnameand patron-category-description?
>
>             i am stuck with this problem and cannot find any other
>             solution
>             Can anyone suggest that i have to change the code or is
>             there any other way that it can be solved?
>             I am not an expert in coding, any help will be appreciated.
>
>             Best Regards
>             --
>             /Zahid Iqbal/
>             _______________________________________________
>             Koha-devel mailing list
>             Koha-devel at lists.koha-community.org
>             https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>             website : https://www.koha-community.org/
>             git : https://git.koha-community.org/
>             bugs : https://bugs.koha-community.org/
>
>
>
>         --
>         Michael Hafen
>         Washington County School District Technology Department
>         Systems Analyst
>
>
>
>     --
>     /Zahid/
>
>
>
> --
> Michael Hafen
> Washington County School District Technology Department
> Systems Analyst
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website :https://www.koha-community.org/
> git :https://git.koha-community.org/
> bugs :https://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230921/669462d7/attachment-0001.htm>


More information about the Koha-devel mailing list