Bugzilla – Attachment 73811 Details for
Bug 8643
Add ability to mark some MARC tags and subfields as important and alert on saving the record if they are found to be empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8643: (QA follow-up) Use paler yellow and better column order
Bug-8643-QA-follow-up-Use-paler-yellow-and-better-.patch (text/plain), 3.78 KB, created by
Katrin Fischer
on 2018-04-07 08:43:02 UTC
(
hide
)
Description:
Bug 8643: (QA follow-up) Use paler yellow and better column order
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-04-07 08:43:02 UTC
Size:
3.78 KB
patch
obsolete
>From c80c9db8b8291ac27fb613a85fbf6f6f9f57dd2a Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Tue, 3 Apr 2018 17:01:43 -0400 >Subject: [PATCH] Bug 8643: (QA follow-up) Use paler yellow and better column > order > >--- > .../data/mysql/atomicupdate/bug-8643-add_important_constraint.sql | 2 +- > installer/data/mysql/kohastructure.sql | 2 +- > koha-tmpl/intranet-tmpl/prog/css/staff-global.css | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 2 +- > 4 files changed, 7 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug-8643-add_important_constraint.sql b/installer/data/mysql/atomicupdate/bug-8643-add_important_constraint.sql >index 4eda4ce5aa..4f25189d19 100644 >--- a/installer/data/mysql/atomicupdate/bug-8643-add_important_constraint.sql >+++ b/installer/data/mysql/atomicupdate/bug-8643-add_important_constraint.sql >@@ -4,7 +4,7 @@ ALTER TABLE marc_tag_structure ADD COLUMN important TINYINT(4) NOT NULL DEFAULT > -- $DBversion = "3.23.00.XXX"; > -- if ( CheckVersion($DBversion) ) { > -- $dbh->do("ALTER TABLE marc_subfield_structure ADD COLUMN important TINYINT(4) NOT NULL DEFAULT 0 AFTER mandatory"); >--- $dbh->do("ALTER TABLE marc_tag_structure ADD COLUMN important TINYINT(4) NOT NULL DEFAULT 0 AFTER frameworkcode"); >+-- $dbh->do("ALTER TABLE marc_tag_structure ADD COLUMN important TINYINT(4) NOT NULL DEFAULT 0 AFTER mandatory"); > -- print "Upgrade to $DBversion done (Bug 8643 - Add important constraint to marc subfields)\n"; > -- SetVersion($DBversion); > -- } >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 72f7bcfd74..962357e259 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1140,9 +1140,9 @@ CREATE TABLE `marc_tag_structure` ( > `libopac` varchar(255) NOT NULL default '', > `repeatable` tinyint(4) NOT NULL default 0, > `mandatory` tinyint(4) NOT NULL default 0, >+ `important` tinyint(4) NOT NULL DEFAULT '0', > `authorised_value` varchar(10) default NULL, > `frameworkcode` varchar(4) NOT NULL default '', >- `important` tinyint(4) NOT NULL DEFAULT '0', > PRIMARY KEY (`frameworkcode`,`tagfield`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >index 32a614bd70..dd265be758 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >@@ -899,6 +899,10 @@ fieldset.rows .inputnote { > .subfield_not_filled { > background-color : #FFFF99; > } >+ >+.important_subfield_not_filled { >+ background-color : #FFFFCC; >+} > .content_hidden { > visibility:hidden; /* you propably don't need to change this one */ > display:none; >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 ef9412db7e..69a8a92b70 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -393,7 +393,7 @@ function AreImportantsNotOk(){ > tabflag[tag+subfield+tagnumber][0]=0; > if( ! document.getElementById(importants[i]).value){ > tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ; >- document.getElementById(importants[i]).setAttribute('class','subfield_not_filled'); >+ document.getElementById(importants[i]).setAttribute('class','important_subfield_not_filled'); > document.getElementById(importants[i]).focus(); > tabflag[tag+subfield+tagnumber][1]=label[i]; > tabflag[tag+subfield+tagnumber][2]=tab[i]; >-- >2.14.1
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 8643
:
11621
|
11622
|
30640
|
31032
|
40232
|
40237
|
41259
|
41261
|
41264
|
41265
|
45834
|
45835
|
45836
|
45837
|
60554
|
60555
|
65148
|
65149
|
65682
|
72154
|
72155
|
72156
|
72157
|
73591
|
73808
|
73809
|
73810
|
73811
|
73812
|
73813
|
73814
|
73815
|
73816
|
73817
|
73818
|
74267
|
74268
|
74269
|
74270
|
74271
|
74272
|
74273
|
81032
|
85982
|
91537
|
92081
|
92384
|
96625
|
96627
|
97325
|
97326
|
98607
|
98608
|
98702
|
98703
|
98712