Bugzilla – Attachment 183011 Details for
Bug 39860
Add a way to allow for additional/custom MARC fields in the record display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39860: Add options for opac/staff lists
Bug-39860-Add-options-for-opacstaff-lists.patch (text/plain), 2.14 KB, created by
Lucas Gass (lukeg)
on 2025-06-05 20:55:52 UTC
(
hide
)
Description:
Bug 39860: Add options for opac/staff lists
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-06-05 20:55:52 UTC
Size:
2.14 KB
patch
obsolete
>From 3b05318724dc37d47efe1cc7c21b4fa50e8b9f1a Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 5 Jun 2025 20:55:03 +0000 >Subject: [PATCH] Bug 39860: Add options for opac/staff lists > >--- > C4/XSLT.pm | 4 ++++ > .../prog/en/modules/tools/additional-contents.tt | 4 ++-- > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 9fc8d3c9d88..0479ee91002 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -255,6 +255,10 @@ sub XSLTParse4Display { > $location = 'OPACDetailPage'; > } elsif ( $xslsyspref eq "OPACXSLTResultsDisplay" ) { > $location = 'OPACResultsPage'; >+ } elsif ( $xslsyspref eq "XSLTListsDisplay" ) { >+ $location = 'StaffListPage'; >+ } elsif ( $xslsyspref eq "OPACXSLTListsDisplay" ) { >+ $location = 'OPACListPage'; > } > > my @record_display_customizations = Koha::AdditionalContents->search_for_display( >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index 08b27178b93..bee6d4c9b79 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -543,7 +543,7 @@ > [% END %] > [% END %] > [% ELSIF category == 'record_display' %] >- [% SET staff_available_options = ['StaffResultsPage' , 'StaffDetailPage'] %] >+ [% SET staff_available_options = ['StaffResultsPage' , 'StaffDetailPage', 'StaffListPage' ] %] > <optgroup label="Staff interface"> > [% FOREACH l IN staff_available_options.sort %] > [% IF l == location %] >@@ -553,7 +553,7 @@ > [% END %] > [% END %] > </optgroup> >- [% SET opac_available_options = ['OPACResultsPage' , 'OPACDetailPage'] %] >+ [% SET opac_available_options = ['OPACResultsPage' , 'OPACDetailPage', 'OPACListPage' ] %] > <optgroup label="OPAC"> > [% FOREACH l IN opac_available_options.sort %] > [% IF l == location %] >-- >2.39.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 39860
:
182054
|
182055
|
182056
|
182057
|
182058
|
182059
|
182230
|
182231
|
182232
|
182233
|
183007
|
183008
|
183009
|
183010
| 183011 |
183035
|
183077
|
183095
|
183774