Bug 9083

Summary: Remove <<items.content>> form list of placeholders for CHECKIN/CHECKOUT notices
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P5 - low CC: barton, jonathan.druart, mtj, tmisilo, veron
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17969
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 30259    
Bug Blocks:    

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:

----
BIBLIO/BIBLIOITEMS
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>>
ITEMSCONTENT
<<items.content>>
ITEMS
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.
Comment 4 Katrin Fischer 2023-01-08 01:57:33 UTC
I have adjusted my bug description - I think the real issue is the list in the editor.