Bugzilla – Attachment 74272 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.92 KB, created by
Charles Farmer
on 2018-04-16 20:17:26 UTC
(
hide
)
Description:
Bug 8643: (QA follow-up) Use paler yellow and better column order
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2018-04-16 20:17:26 UTC
Size:
3.92 KB
patch
obsolete
>From be4179c84c5fe960f00defef16094f64df58813b 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 > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 4eda4ce..4f25189 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 eedafd6..3a3bde5 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1141,11 +1141,11 @@ 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, > `ind1_defaultvalue` varchar(1) NOT NULL default '', > `ind2_defaultvalue` varchar(1) NOT NULL default '', > `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 32a614b..dd265be 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 4e6d907..64d78a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -400,7 +400,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.7.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 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