Bugzilla – Attachment 167546 Details for
Bug 35635
Expand patron attribute type mandatory field to allow different settings for OPAC and staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35635: Add opac_mandatory to patron attribute table
Bug-35635-Add-opacmandatory-to-patron-attribute-ta.patch (text/plain), 2.03 KB, created by
Lucas Gass (lukeg)
on 2024-06-06 13:27:18 UTC
(
hide
)
Description:
Bug 35635: Add opac_mandatory to patron attribute table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-06-06 13:27:18 UTC
Size:
2.03 KB
patch
obsolete
>From dcc39c6d16f3d2b9e380422ce103d65bdce7f49c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 6 Jun 2024 13:26:54 +0000 >Subject: [PATCH] Bug 35635: Add opac_mandatory to patron attribute table > >--- > .../prog/en/modules/admin/patron-attr-types.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index d53210cea3..ced1b30f1d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -333,6 +333,7 @@ > <th>Library limitation</th> > <th>Authorized value category</th> > <th>Mandatory</th> >+ <th>Mandatory - OPAC</th> > <th>Searching</th> > <th class="NoSort noExport">Actions</th> > </tr> >@@ -373,6 +374,13 @@ > <span>No</span> > [% END %] > </td> >+ <td> >+ [% IF ( item.opac_mandatory ) -%] >+ <span>Yes</span> >+ [% ELSE -%] >+ <span>No</span> >+ [% END %] >+ </td> > <td> > [% IF ( item.staff_searchable ) %] > [% IF( item.searched_by_default ) %] >@@ -441,8 +449,10 @@ > $("#opac_display").change( function() { > if ( this.checked ) { > $("#opac_editable").removeAttr('disabled').parent().removeAttr('aria-disabled'); >+ $("#opac_mandatory").removeAttr('disabled').parent().removeAttr('aria-disabled'); > } else { > $("#opac_editable").attr('disabled', true).parent().attr('aria-disabled', 'true'); >+ $("#opac_mandatory").attr('disabled', true).parent().attr('aria-disabled', 'true'); > } > } ).change(); > >-- >2.39.2
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 35635
:
167500
|
167501
|
167502
|
167546
|
167548
|
167643
|
167644
|
167645
|
167646
|
174962
|
175059
|
175635
|
175858
|
176595
|
176596
|
176597
|
176598
|
176599
|
176600
|
176601
|
176602
|
176603
|
176604
|
177803
|
177804
|
177805
|
177806
|
177807
|
177808
|
177809
|
177810
|
177811
|
177812
|
177814
|
177815
|
177816
|
177817
|
177818
|
177819
|
177820
|
177821
|
177822
|
177823
|
179165