Bugzilla – Attachment 12010 Details for
Bug 4173
Statuses not appearing in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4173: Followup: Document KohaAuthorisedValues plugin
Bug-4173-Followup-Document-KohaAuthorisedValues-pl.patch (text/plain), 1.43 KB, created by
Kyle M Hall (khall)
on 2012-09-06 13:39:49 UTC
(
hide
)
Description:
Bug 4173: Followup: Document KohaAuthorisedValues plugin
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-09-06 13:39:49 UTC
Size:
1.43 KB
patch
obsolete
>From f1a3f932c86797aa7cdcbf37bf6f0dd35be803da Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 6 Sep 2012 09:23:08 -0400 >Subject: [PATCH] Bug 4173: Followup: Document KohaAuthorisedValues plugin >Content-Type: text/plain; charset="utf-8" > >--- > Koha/Template/Plugin/KohaAuthorisedValues.pm | 18 ++++++++++++++++++ > 1 files changed, 18 insertions(+), 0 deletions(-) > >diff --git a/Koha/Template/Plugin/KohaAuthorisedValues.pm b/Koha/Template/Plugin/KohaAuthorisedValues.pm >index 58297c0..68b1347 100644 >--- a/Koha/Template/Plugin/KohaAuthorisedValues.pm >+++ b/Koha/Template/Plugin/KohaAuthorisedValues.pm >@@ -24,6 +24,24 @@ use base qw( Template::Plugin ); > > use C4::Koha; > >+=pod >+ >+This plugin allows one to get the description for an authorised value >+from within a template. >+ >+First, include the line '[% USE KohaAuthorisedValues %]' at the top >+of the template to enable the plugin. >+ >+To use, call KohaAuthorisedValues.GetByCode with the category >+of the authorised value, the code to look up, and optionally, >+the OPAC flag ( if set, it will return the OPAC description rather >+than the Intranet description ). >+ >+For example: [% KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >+will print the OPAC description for the LOST value stored in item.itemlost. >+ >+=cut >+ > sub GetByCode { > my ( $self, $category, $code, $opac ) = @_; > return GetAuthorisedValueByCode( $category, $code, $opac ); >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4173
:
1884
|
1885
|
1886
|
1887
|
2810
|
2863
|
2864
|
10798
|
11132
|
11133
|
11135
|
12009
|
12010
|
18158
|
18161
|
18162