Bugzilla – Attachment 86544 Details for
Bug 7890
Required fields in the MARC editor should be highlighted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7890: Highlight required field in MARC editor
Bug-7890-Highlight-required-field-in-MARC-editor.patch (text/plain), 2.85 KB, created by
Owen Leonard
on 2019-03-12 16:46:16 UTC
(
hide
)
Description:
Bug 7890: Highlight required field in MARC editor
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-03-12 16:46:16 UTC
Size:
2.85 KB
patch
obsolete
>From e73c62bfaa8c8e81eda453465a5b05d425dee777 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 5 Mar 2019 18:56:55 +0000 >Subject: [PATCH] Bug 7890: Highlight required field in MARC editor > >This patch modifies the basic MARC editor so that required fields have >the standard "Required" label on them instead of a small red asterisk. > >To test, apply the patch and create a new record in the basic MARC >editor. Tags which are marked mandatory in your selected MARC >bibliographic framework should be labeled "Required." >--- > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 4ce6d61..dd707b8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -299,7 +299,7 @@ function AreMandatoriesNotOk(){ > } > if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(mandatories[i]) != null && ! document.getElementById(mandatories[i]).value || document.getElementById(mandatories[i]) == null)){ > tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ; >- document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled'); >+ document.getElementById(mandatories[i]).setAttribute('class','input_marceditor noEnterSubmit subfield_not_filled'); > $('#' + mandatories[i]).focus(); > tabflag[tag+subfield+tagnumber][1]=label[i]; > tabflag[tag+subfield+tagnumber][2]=tab[i]; >@@ -725,7 +725,6 @@ function Changefwk() { > [% UNLESS advancedMARCEditor %] > [% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %] > [% subfield_loo.marc_lib | $raw %] >- [% IF ( subfield_loo.mandatory ) %]<span class="mandatory_marker" title="This field is mandatory">*</span>[% END %] > </span> > [% END %] > </div> <!-- /.col-sm-4 --> >@@ -765,7 +764,9 @@ function Changefwk() { > [% END %] > </select> > [% END %] >- >+ [% IF ( subfield_loo.mandatory ) %] >+ <span class="required">Required</span> >+ [% END %] > <span class="subfield_controls"> > [% IF ( subfield_loo.repeatable ) %] > <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;"> >-- >2.1.4
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 7890
:
86112
|
86544
|
89734
|
89918
|
90032