[Koha-patches] [PATCH] Adding max-width to patron image in sidebar, correcting some markup in picture uploads.

Owen Leonard oleonard at myacpl.org
Tue Apr 8 15:14:20 CEST 2008


---
 .../intranet-tmpl/prog/en/includes/circ-menu.inc   |    6 +++++-
 .../prog/en/modules/tools/picture-upload.tmpl      |    8 ++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

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 6a281ae..ede73d6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
@@ -1,9 +1,13 @@
 <!-- TMPL_IF NAME="borrowernumber" -->
 <div class="patroninfo"><h5><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h5>
+<!--[if IE 6]>
+<style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
+}</style>
+<![endif]-->
 <ul>
 <!-- TMPL_IF NAME="patronimages" -->
 <!-- TMPL_IF NAME="picture" -->
-<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=<!-- TMPL_VAR NAME="cardnumber" -->" id="patronimage" alt="<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
+<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=<!-- TMPL_VAR NAME="cardnumber" -->" id="patronimage" alt="<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
 <!-- TMPL_ELSE -->
 <li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
 <!-- /TMPL_IF -->
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
index 11f781b..beaaac5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
@@ -28,12 +28,10 @@
             <div class="yui-u first">
             <!-- TMPL_IF name="ERRORS" -->
                 <div class="dialog alert">
-                <h1>Patron Image(s) Uploaded With Some Errors</h1>
-                </div>
+                <h3>Patron Image(s) Uploaded With Some Errors</h3>
             <!-- TMPL_ELSE -->
                 <div class="dialog message">
-                <h1>Patron Image(s) Successfully Uploaded</h1>
-                </div>
+                <h3>Patron Image(s) Successfully Uploaded</h3>
             <!-- /TMPL_IF -->
 	        <ul class="data">
 	            <li>Unpacking completed</li>
@@ -60,6 +58,8 @@
                         <!-- /TMPL_LOOP -->
                         </ul>
                 <!-- /TMPL_LOOP -->
+
+				</div>
                 <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload More Images</a>
                 <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
             </div>
-- 
1.5.2.1




More information about the Koha-patches mailing list