Bugzilla – Attachment 100199 Details for
Bug 13547
Item field 'Materials specified' would be useful to see in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13547: Item field 3 (Materials specified) would be useful to see on OPAC
Bug-13547-Item-field-3-Materials-specified-would-b.patch (text/plain), 3.59 KB, created by
Devinim
on 2020-03-05 15:04:17 UTC
(
hide
)
Description:
Bug 13547: Item field 3 (Materials specified) would be useful to see on OPAC
Filename:
MIME Type:
Creator:
Devinim
Created:
2020-03-05 15:04:17 UTC
Size:
3.59 KB
patch
obsolete
>From 3377bc8456269717c6fb4229ea3b1f820d139865 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Nazl=C4=B1=20=C3=87etin?= <nazli@devinim.com.tr> >Date: Thu, 5 Mar 2020 15:02:37 +0000 >Subject: [PATCH] Bug 13547: Item field 3 (Materials specified) would be useful > to see on OPAC > >--- > admin/columns_settings.yml | 3 +++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 5 +++++ > opac/opac-detail.pl | 3 ++- > 3 files changed, 10 insertions(+), 1 deletion(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 2c45659d34..8773281584 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1094,6 +1094,9 @@ modules: > - > columnname: item_callnumber > - >+ columnname: item_materials >+ is_hidden: 1 >+ - > columnname: item_enumchron > - > columnname: item_url >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index d3b449351d..83fec8d5a3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1229,6 +1229,8 @@ > [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %] > <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %] > <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th> >+ [% IF ( itemdata_materials ) %] >+ <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>[% END %] > [% IF ( itemdata_enumchron ) %] > <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %] > [% IF ( itemdata_uri ) %] >@@ -1331,6 +1333,9 @@ > [% END %] > [% END %] > </td> >+ [% IF ( itemdata_materials) %] >+ <td class="materials">[% ITEM_RESULT.materials | html %]</td> >+ [% END %] > [% IF ( itemdata_enumchron ) %] > <td class="vol_info"> > [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %] >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index e58cf8b65d..c8badda441 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -698,7 +698,7 @@ if ( not $viewallitems and @items > $max_items_to_display ) { > $itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} ); > $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description}; > } >- foreach (qw(ccode enumchron copynumber itemnotes location_description uri)) { >+ foreach (qw(ccode materials enumchron copynumber itemnotes location_description uri)) { > $itemfields{$_} = 1 if ($itm->{$_}); > } > >@@ -780,6 +780,7 @@ if( C4::Context->preference('ArticleRequests') ) { > norequests => $norequests, > RequestOnOpac => C4::Context->preference("RequestOnOpac"), > itemdata_ccode => $itemfields{ccode}, >+ itemdata_materials => $itemfields{materials}, > itemdata_enumchron => $itemfields{enumchron}, > itemdata_uri => $itemfields{uri}, > itemdata_copynumber => $itemfields{copynumber}, >-- >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 13547
:
100199
|
100279
|
102014
|
102015
|
103172
|
103188
|
103189
|
104402
|
104403