Summary: | for ACCOUNT_CREDIT and ACCOUNT_CREDIT notices the debit and credit fields are not selectable in fields list | ||
---|---|---|---|
Product: | Koha | Reporter: | Mathieu Saby <mathsabypro> |
Component: | Notices | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | ||
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Mathieu Saby
2025-01-21 09:32:13 UTC
The list on the side only works for Non-TT, I feel this is a WONTFIX as we are moving towards deprecating "hungry alligators" and adding TT to the notices editor in some way. Oh I did not know it was only usable with hungry alligators. But then, how do you know the complete list of usable fields when you write a notice with TT ? (In reply to Mathieu Saby from comment #2) > Oh I did not know it was only usable with hungry alligators. > But then, how do you know the complete list of usable fields when you write > a notice with TT ? If you add fields form the list they will appear like << borrowers.surname >> in the notice. But for TT you'd need [% borrower.surname %] for example. Also, you can "pull in" a lot of information via the object methods and chaining, so the list would not be as fixed as it is now (which is super nice, but makes it much harder to document and implement a nice editor) Documentation is not quite where it should be. What we got: - bug 15278 - bug 15279 - bug 34472 (also have a look at the linked bugs) In the wiki these are helpful: https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit Especially the table at the bottom. But if you see borrower in the list, it doesn't mean you can't get other information through that borrower object - so there is much more available than is visible on first glance. You could for example get the information about the patron's homebranch, their checkouts, their current fees etc. When all the standard notice templates are "translated" into TT syntax, will the "alligator" syntax be deprecated from Koha? (In reply to Mathieu Saby from comment #5) > Oh it is Bug 15279 ;-) Not officially yet, but we are moving that direction. |