Bug 9083 - <<items.content>> in checkin/checkout notices does nothing
Summary: <<items.content>> in checkin/checkout notices does nothing
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact:
Depends on:
Reported: 2012-11-14 20:08 UTC by Katrin Fischer
Modified: 2017-03-27 01:57 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Bot Control: ---
When did the bot last check this:
Who signed the patch off:
Text to go in the release notes:


Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2012-11-14 20:08:38 UTC
As I understand it, the checkout and checkin notices use 'repetition markers' to generate a list of item/title information to display in the notice.

The list of fields in the notice editor includes <<items.content>> as an option. If this is not supported it should be removed. 

For testing I used following paragraph in my notice templates:

title <<biblio.title>>
frameworkcode <<biblio.frameworkcode>>
author <<biblio.author>>
biblionumber <<biblioitems.biblionumber>>
itemtype <<biblioitems.itemtype>>
isbn <<biblioitems.isbn>>
issn <<biblioitems.issn>>
publishercode <<biblioitems.publishercode>>
editionstatement <<biblioitems.editionstatement>>
editionresponsibility <<biblioitems.editionresponsibility>>
pages <<biblioitems.pages>>
notes <<biblioitems.notes>>
url <<biblioitems.url>>
date due <<old_issues.date_due>>
branchcode <<old_issues.branchcode>>
returndate <<old_issues.returndate>>
issuedate <<old_issues.issuedate>>

No information was output between ITEMSCONTENT and ITEMS.
Comment 1 Jonathan Druart 2015-04-01 11:01:04 UTC
items.content only works with overdue and advanced notices.
Comment 2 Katrin Fischer 2015-04-01 12:09:39 UTC
I think it is not functional, it should ideally not appear in the list on the left side for markers to use in the notice - but not sure this can be done, as the notices are all in "circulation".
Comment 3 Barton Chittenden 2015-09-10 13:47:36 UTC
(In reply to Jonathan Druart from comment #1)
> items.content only works with overdue and advanced notices.

This is exactly right, and furthermore, items.content relies on the 'itemscontent' option of those scripts if any modifications are to be made to what <<items.content>> displays, so it doesn't make sense to use it anywhere else.

At this point, http://wiki.koha-community.org/wiki/Customising_Notices_and_Slips is the best documentation that we have for the expansion of variables.