From 401dce8971b6094088116414b828ef7509501429 Mon Sep 17 00:00:00 2001
From: Owen Leonard
Date: Thu, 27 Sep 2007 14:58:31 -0500
Subject: [PATCH] Various random noodlings: - Visual changes to circ, detail,
request, and member pages. Fixed checkouts/reserves tabs on circulation.tmpl.
Moved new form-layout CSS into staff-global.css and generalized it for wider
use. Refined patron details sidebar for use on circulation.tmpl
Signed-off-by: Chris Cormack
---
C4/Members.pm | 6 +-
.../prog/en/css/staff-global.css | 266 ++++++++++++++----
.../prog/en/includes/cat-menu.inc | 7 +
.../prog/en/includes/circ-menu.inc | 4 +-
.../jquery/plugins/jquery.checkboxes.pack.js | 13 +
.../modules/authorities/authorities-home.tmpl | 2 +-
.../prog/en/modules/catalogue/detail.tmpl | 4 +-
.../prog/en/modules/circ/circulation.tmpl | 63 ++---
.../en/modules/members/member-password.tmpl | 27 +-
.../en/modules/members/memberentrygen.tmpl | 94 +------
.../prog/en/modules/members/moremember.tmpl | 8 +-
.../prog/en/modules/reserve/request.tmpl | 120 ++++----
.../en/modules/virtualshelves/shelves.tmpl | 62 ++--
reserve/request.pl | 2 +
14 files changed, 408 insertions(+), 270 deletions(-)
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.checkboxes.pack.js
diff --git a/C4/Members.pm b/C4/Members.pm
index e7a39be7c5..c27d73fd2c 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -597,11 +597,11 @@ sub ModMember {
$sth->execute;
}
else {
-
+ ( $data{'password'} = md5_base64( $data{'password'} ) )
+ if ( $data{'password'} ne '' );
foreach (keys %data)
{push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_} and $data{$_})} ;
- ( $data{'password'} = md5_base64( $data{'password'} ) )
- if ( $data{'password'} ne '' );
+
$query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}";
# warn "$query";
$sth = $dbh->prepare($query);
diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
index 67514be032..c1474ea86c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -210,12 +210,12 @@ span.problem {
fieldset {
border : 2px solid #EEEEEE;
- margin : 1em;
+ margin : 1em 1em 1em 0;
padding : 1em;
}
legend {
- font-size : 138.5%;
+ font-size : 123.1%;
font-weight : bold;
margin : 0 0 0 -1em;
padding : 0;
@@ -264,47 +264,9 @@ div#circ_search,div#catalog_search,div#patron_search,div#subscription_search,div
padding : 0 0 .2em 0;
}
-/* Panel-Switch Tabs */
-ul.link-tabs {
- list-style-type: none;
- margin: 1px 0 9px 5px;
- padding: 0;
-}
-
-ul.link-tabs li {
- display: inline;
- padding: 0px;
-}
-
-ul.link-tabs li a {
- border-bottom: 1px solid #333333;
- border-left : 1px solid #DDDDDD;
- border-right : 1px solid #666666;
- padding: .2em 1.2em .2em 1.2em;
- text-decoration: none;
-}
-
-ul.link-tabs li.off a {
- background-color: #FFFFFF;
- border : 0;
- margin-right : 1px;
- text-decoration: underline;
-}
-
-ul.link-tabs li.off a:hover {
- background-color: #FFFFEC;
- border : 0;
- margin-right : 0;
- padding: .2em 1.2em .2em 1.2em;
-}
-
-ul.link-tabs li.on a {
- background-color: #FFFFCC;
- border-top: 1px solid #FFFFCC;
- border-right: 1px solid #FF9900;
- border-bottom: 1px solid #FF9900;
- border-left: 1px solid #FFCC66;
- font-weight : bold;
+div#reserves,div#checkouts {
+ border : 1px solid #E8E8E8;
+ padding : 1em;
}
div#header_search .tip {
@@ -481,29 +443,43 @@ div.message {
}
div.patroninfo {
- margin-bottom : .5em;
margin-top : -.5em;
}
div.patroninfo h5 {
- background-color : #F5F0CC;
- border-top : 1px solid #CCCC99;
- border-left : 1px solid #CCCC99;
+ background-color : #FCFAF3;
+ /*border-top : 1px solid #CCCC99;
+ border-left : 1px solid #CCCC99;*/
border-right : 1px solid #CCCC99;
margin-bottom : 0;
+ padding-left : .5em;
+ padding-top : .3em;
padding-bottom : .5em;
}
div.patroninfo ul {
- border : 1px solid #CCCC99;
+ /*border : 1px solid #CCCC99;*/
+ border-right : 1px solid #CCCC99;
+ border-bottom : 0;
border-top : 0;
- background-color : #F5F0CC;
+ background-color : #FCFAF3;
+ padding-bottom : .5em;
}
-div.patroninfo ul li {
+div.patroninfo ul li, div.patronviews ul li {
list-style-type : none;
}
+div.patronviews {
+ background-color : #FDFCF7;
+ /*border-left : 1px solid #CCCC99;
+ border-bottom : 1px solid #CCCC99;*/
+ border-right : 1px solid #CCCC99;
+ border-top : 1px solid #CCCC99;
+ margin-bottom : .5em;
+ padding : .5em 0 .5em 0;
+}
+
a.member-edit {
float : right;
background-color : #DBECC8;
@@ -511,4 +487,192 @@ a.member-edit {
padding : .3em;
text-align : right;
text-decoration : none;
-}
\ No newline at end of file
+}
+
+fieldset.brief {
+ border : 1px solid #E8E8E8;
+}
+
+fieldset.brief label {
+ display : block;
+ font-weight : bold;
+ padding : .3em 0;
+}
+
+fieldset.brief div.hint {
+ color : #999999;
+ font-size : 80%;
+ margin-bottom : .4em;
+}
+
+fieldset.rows {
+border-width : 1px;
+border-bottom : 1px solid black;
+float : left;
+font-size : 90%;
+clear : left;
+margin: .9em 0 0 0;
+padding: 0;
+width: 100%;
+}
+
+fieldset.rows legend {
+ margin-left: 1em;
+ font-weight: bold;
+ font-size : 110%;
+}
+
+fieldset.rows label, fieldset.rows span.label {
+ float: left;
+ font-weight : bold;
+ width: 12em;
+ margin-right: 1em;
+ text-align: right;
+}
+
+fieldset.rows.left label, fieldset.rows.left span.label {
+ width : 8em;
+ text-align : left;
+}
+
+fieldset.rows ol {
+padding: 1em 1em 0 1em;
+list-style-type: none;
+}
+
+fieldset.rows li {
+float : left;
+clear : left;
+padding-bottom: 1em;
+list-style-type: none;
+width: 100%;
+}
+
+fieldset.rows.left li {
+ padding-bottom : .4em;
+}
+
+fieldset.rows ol.radio label {
+ width : auto;
+ float : none;
+ margin-right : 0;
+}
+
+fieldset.rows ol.radio label.radio {
+ float : left;
+ width : 12em;
+ margin-right : 1em;
+}
+
+fieldset.rows table {
+ clear : both;
+ margin-left : 1em;
+}
+
+fieldset.rows td label {
+ float : none;
+ font-weight : normal;
+ width : auto;
+}
+
+fieldset.action {
+ clear : both;
+ float : none;
+ border : none;
+ margin : 0;
+ padding : 1em 0 .3em 0;
+ width : auto;
+}
+
+fieldset.rows fieldset.action {
+ padding : 0 0 1em 1em;
+}
+
+.tabs-nav li {
+ list-style : none;
+}
+
+.tabs-nav a, .tabs-nav a span {
+ background : none;
+ padding: .2em .5em .25em .5em;
+}
+
+.tabs-nav a {
+ z-index : auto;
+}
+
+.tabs-nav .tabs-selected a {
+ background-color : #FFFFCC;
+ border-top: 1px solid #FFFFCC;
+ border-right: 1px solid #FF9900;
+ border-bottom: 1px solid #FF9900;
+ border-left: 1px solid #FFCC66;
+ font-weight : bold;
+ text-align : center;
+ text-decoration : none;
+ top : -1px;
+}
+
+.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active {
+ background-position : inherit;
+ outline: 0; /* prevent dotted border in Firefox */
+}
+.tabs-nav a, .tabs-nav .tabs-disabled a:hover, .tabs-nav .tabs-disabled a:focus, .tabs-nav .tabs-disabled a:active {
+ background-position: inherit;
+}
+
+.tabs-nav .tabs-selected a:hover {
+ color : #0000CC;
+}
+
+.tabs-nav li.tabs-selected {
+ background-color : #FFFFCC;
+}
+
+.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active {
+ background : none;
+ outline: 0; /* prevent dotted border in Firefox */
+}
+
+.tabs-container {
+ border-top: 0;
+ padding : inherit;
+ background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
+}
+.tabs-loading em {
+ padding: inherit;
+ background: none;
+}
+
+#patronlists .tabs-nav a {
+ top: 0;
+ }
+
+#patronlists .tabs-nav li {
+ margin-right : .5em;
+}
+
+#patronlists .tabs-nav li a {
+ background-color : #F3F3F3;
+ border-top : 1px solid #E8E8E8;
+ border-left : 1px solid #E8E8E8;
+ border-right : 1px solid #E8E8E8;
+ border-bottom : 0;
+ text-align : center;
+ text-decoration : none;
+}
+
+#patronlists .tabs-nav li.tabs-selected {
+ background-color : #FFF;
+}
+
+#patronlists .tabs-nav li.tabs-selected a {
+ background-color : #FFF;
+ border-top : 1px solid #E8E8E8;
+ border-left : 1px solid #E8E8E8;
+ border-right : 1px solid #E8E8E8;
+ border-bottom : 1px solid #FFF;
+ margin-bottom : -5px;
+ text-align : center;
+}
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-menu.inc
index 73bb1c18ba..9419ea2e45 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-menu.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-menu.inc
@@ -1,3 +1,10 @@
+
+
+
+
+
+
+
- Advanced Search
- Virtual Shelves
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
index fa4d368afd..e33e8a800c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
@@ -24,11 +24,13 @@
- Category:
+
- Check In
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.checkboxes.pack.js b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.checkboxes.pack.js
new file mode 100644
index 0000000000..3801b44b2b
--- /dev/null
+++ b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.checkboxes.pack.js
@@ -0,0 +1,13 @@
+/*
+ *
+ * Copyright (c) 2006/2007 Sam Collett (http://www.texotela.co.uk)
+ * Licensed under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * Version 2.0.1
+ * Demo: http://www.texotela.co.uk/code/jquery/checkboxes/
+ *
+ * $LastChangedDate$
+ * $Rev$
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.g.q=1(b,c){b=b||"*";c=c||7;4 d=2([]);0.5(1(){4 a=2("9[@8=f]",0).6(b).5(1(){0.3=!0.3}).6(":3");d=a});e(!c){d=0}i d};2.g.p=1(b,c){b=b||"*";c=c||7;4 d=2([]);0.5(1(){4 a=2("9[@8=f]",0).6(b).5(1(){0.3=o}).6(":3");d=a});e(!c){d=0}i d};2.g.n=1(b,c){b=b||"*";c=c||7;4 d=2([]);0.5(1(){4 a=2("9[@8=f]",0).6(b).5(1(){0.3=7}).6(":j(:3)");d=a});e(!c){d=0}i d};2.m=1(a,b){b=b||"*";4 c="9[@8=f]";e(a){c+="[@l="+a+"]"}4 h=2(c).6(b);h.k(1(){h.j(0).5(1(){0.3=7}).r()})};',28,28,'this|function|jQuery|checked|var|each|filter|false|type|input|||||if|checkbox|fn|x|return|not|click|name|radioCheckboxGroup|unCheckCheckboxes|true|checkCheckboxes|toggleCheckboxes|end'.split('|'),0,{}))
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
index dc4662aad8..3c87987c2d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
@@ -62,7 +62,7 @@
" />
-suivi.paulpoulain.com):koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
+