[Koha-bugs] [Bug 9426] Add itemtype description template plugin

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 16:37:03 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9426

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15188|0                           |1
        is obsolete|                            |

--- Comment #9 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 16165
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16165&action=edit
Bug 9426: Add itemtype description template plugin

Like branch name template plugin KohaBranchName, add a plugin that converts
itemtype code into its description.

This patch adds this template plugin and a method tho instanciate a
C4::ItemType object using its code.

Test plan :
- Choose an existing itemtype code (ie DVD)
- Edit any template (ie intranet-main.tt)
- Add as first line : [% USE KohaItemType %]
- Add in body : itemtype=[% 'DVD' | $KohaItemType %]
- Go to this page
=> Itemtype description is displayed next to 'itemtype='

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list