Bugzilla – Attachment 115716 Details for
Bug 20238
Show description of ITEMTYPECAT instead of code in itemtypes summary table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20238: Display description of ITEMTYPECAT in search category
Bug-20238-Display-description-of-ITEMTYPECAT-in-se.patch (text/plain), 2.13 KB, created by
David Nind
on 2021-01-24 00:19:06 UTC
(
hide
)
Description:
Bug 20238: Display description of ITEMTYPECAT in search category
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-01-24 00:19:06 UTC
Size:
2.13 KB
patch
obsolete
>From 3f5bab23efb3e3f0b9249edc0fc3d18406246b11 Mon Sep 17 00:00:00 2001 >From: Amy King <amyking386@gmail.com> >Date: Thu, 21 Jan 2021 22:41:09 +0000 >Subject: [PATCH] Bug 20238: Display description of ITEMTYPECAT in search > category > >When adding or editing item types (Koha administration > Basic >parameters > Item types) the drop down list currently displays >the ITEMTYPECAT authorized value description. However, on the >item types page the authorized value is displayed in the search >category column. > >This enhancement changes the item types page so that the search >category column displays the authorized value's description >instead of the authorized value code. > >Test plan: >1. Go to Staff interface home page > Koha administration > Basic > parameters > Authorized values. >2. Find ITEMTYPECAT and add a new authorized value - make sure it > has a description. >3. Go to the Basic parameters > Item types page. >4. Edit an item type. >5. For the search category, select the new authorized value you > created. The desciption should be shown in the dropdown list. >6. Save the changes. >7. In the search category column for the item type you edited, it > should now display the description instead of the code. >8. Sign off! > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 186193dd0f..8ef4d32abe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -459,7 +459,7 @@ Item types administration > <td> > [% itemtype.parent_type | html %] > </td> >- <td>[% itemtype.searchcategory | html %]</td> >+ <td>[% AuthorisedValues.GetByCode( 'ITEMTYPECAT', itemtype.searchcategory ) | html %]</td> > <td>[% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %]</td> > <td>[% IF ( itemtype.hideinopac ) %]Yes[% ELSE %] [% END %]</td> > <td> >-- >2.11.0
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 20238
:
84112
|
84158
|
84226
|
115497
|
115633
|
115634
|
115716
|
115913