Summary: | Field issues.date_due does not display in ISSUESLIP or ISSUEQSLIP | ||
---|---|---|---|
Product: | Koha | Reporter: | Barton Chittenden <barton> |
Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | cbrannon, chris, gmcharlt, jdemuth, kyle.m.hall, mtj, viktor.sarge |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | SAMPLE ISSUESLIP (may be used for testing). |
Note that items.onloan *will* print correctly; this is an acceptable work-around. Barton, Does this affect only those two slips, or does it affect any notices as well? Christopher a bit more info about the bug here, too :) http://bywatersolutions.com/2015/05/18/koha-slips/ (In reply to Barton Chittenden from comment #1) > Note that items.onloan *will* print correctly; this is an acceptable > work-around. This is acceptable if you are not using hourly loans. items.onloan does not display the time. I can't reproduce this issue on current master. The due date prints fine for me including the due time. Can you please specify the exact version this occurs and if you still see it happen? These are my templates: ISSUESLIP <h3><<branches.branchname>></h3> Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br /> (<<borrowers.cardnumber>>) <br /> <<today>><br /> <h4>Checked Out</h4> <checkedout> <p> <<biblio.title>> <br /> Barcode: <<items.barcode>><br /> Date due: <<issues.date_due>><br /> </p> </checkedout> <h4>Overdues</h4> <overdue> <p> <<biblio.title>> <br /> Barcode: <<items.barcode>><br /> Date due: <<issues.date_due>><br /> </p> </overdue> <hr> <h4 style="text-align: center; font-style:italic;">News</h4> <news> <div class="newsitem"> <h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5> <p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.new>></p> <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Posted on <<opac_news.timestamp>></p> <hr /> </div> </news> ISSUEQSLIP <h3><<branches.branchname>></h3> Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br /> (<<borrowers.cardnumber>>) <br /> <<today>><br /> <h4>Checked Out Today</h4> <checkedout> <p> <<biblio.title>> <br /> Barcode: <<items.barcode>><br /> Date due: <<issues.date_due>><br /> </p> </checkedout> I did some more tests - this problem appears in 3.18.6, but is fixed on the current 3.18.x branch, that will be 3.18.7. (In reply to Katrin Fischer from comment #6) > I did some more tests - this problem appears in 3.18.6, but is fixed on the > current 3.18.x branch, that will be 3.18.7. Katrin, Please confirm with master. I am in 3.22, and I see that issues.date_due is producing a date, but I do not see a time stamp. Shouldn't this value produce a timestamp for hourly loans, or do hourly loans have to be turned on in order for it to produce a time stamp? Christopher On further inspection, it appears that in 3.22.8, issues.date_due shows the date but not the time. In master, I see that issues.date_due includes the time as well. Can't find the bug that changed this. Maybe something to check: check if the time shows if you do an hourly loan with the time not bing 23:59 - we might just not show the time in this case. |
Created attachment 38871 [details] SAMPLE ISSUESLIP (may be used for testing). The field <<issues.date_due>> will not display in the ISSUESLIP or ISSUEQSLIP notices, when printed inside <checkedout> or <overdue> tags. Steps to replicate: 1) Go to tools->notices and slips, edit ISSUESLIP for all branches. 2) Put the following text in the EMAIL template: <checkedout> Checked out: Date Due: <<issues.date_due>> </checkedout> <overdue> Overdue: Date Due: <<issues.date_due>> </overdue> 3) Set the following fields in ISSUESLIP (I don't know that any of these matter) Name: Issue Slip HTML Message: [checked] Message Subject: Issue Slip 4) Check out an item 5) Click Print Issue Slip You will see that the issue slip does not print issues.date_due the same problem affects ISSUEQSLIP.