Summary: | Add tool for printing patron notices | ||
---|---|---|---|
Product: | Koha | Reporter: | Melia Meggs <melia> |
Component: | Notices | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | fraktik, katrin.fischer, kyle.m.hall, savitra.sirohi |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
Description
Melia Meggs
2012-03-01 22:49:21 UTC
Draft Design: A new tool called "Print Patron notices", that can perhaps be extended later to print other kinds of notices. A default template (ACCTLINES_PRINT) will be created as part of this patch. The template will contain a header with borrower and borrower attributes fields and a body containing accountlines fields such as accounttype, amount, date. A mechanism to specify which borrower attribute(s) are to included in the notice will be provided. E.g. <<borrower_attributes.attribute|GRADE>> will allow the attribute for code "GRADE" to be included. Only those acccountlines records that have outstanding amounts > 0 will be displayed in the report. The tool will generate a PDF file containing a report per patron, each report will contain text per the notice template. Following filters will be made available during report generation: Branch Patron category Transaction date range The pages in the PDF fike will be of size Letter (8.5*11) by default. This can be extended later to include other paper sizes. For this section: Following filters will be made available during report generation: Branch Patron category Transaction date range I would note with branch we're talking about - the patron's branch? Also, will the notice allow for customization of what fields show from the accountlines table? You mention the defaults that will be in the template, but I just want to be clear. Thanks a ton! Nicole As an alternative to PDF, it may be better to use html and css. I've done this before, it's possible to create page breaks using css, and it is much easier to work with HTML than it is to create PDF files. I know this from personal experience. This also means we could use the notices system to make this template-able. Customizing a PDF would be far more difficult. http://davidwalsh.name/css-page-breaks I highly recommend avoiding direct PDF generation; better to use HTML and CSS, then let the browser print to PDF. Lots of the open source PDF tools are... limited... as we've seen with the Labels tool bug 2246. I really like the ideas of a tool to print patron notices, but it would need some updates to fit into current practices. No action since 2012, resetting assignee. |