Mostly my account changes (and youth sliders)
authorWilliam Rockwood <wrockwood@tadl.org>
Tue, 19 Mar 2013 16:05:23 +0000 (12:05 -0400)
committerWilliam Rockwood <wrockwood@tadl.org>
Tue, 19 Mar 2013 16:05:23 +0000 (12:05 -0400)
- Redid circs and circ history
- Changed sliders on youth homepage
- More minor spacing/padding adjustments

Signed-off-by: William Rockwood <wrockwood@tadl.org>
templates_tadlskin/opac/myopac/circ_history.tt2
templates_tadlskin/opac/myopac/circs.tt2
templates_tadlskin/opac/parts/homesearch_ys.tt2
templates_tadlskin/opac/parts/place_hold.tt2

index af1c2d6..2addbb1 100644 (file)
         <table style='border-collapse:collapse;'>
             <thead id="acct_checked_main_header">
                 <tr>
-                    <td width="32%" style="padding-left:5px;">
+                    <td width="55%" style="padding-left:5px;">
                         <span title="Click to sort" class='pointer'>[% l('Title') %]</span> /
                         <span title="Click to sort" class='pointer'>[% l('Author') %]</span>
                     </td>
-                    <td width="10%" style="padding-left:5px;">
+                    <td width="15%" style="padding-left:5px;">
                         <span title="Click to sort" class='pointer'>[% l('Checkout Date') %]</span>
                     </td>
-                    <td width="10%" style="padding-left:5px;">
+                    <td width="15%" style="padding-left:5px;">
                         <span title="Click to sort" class='pointer'>[% l('Due Date') %]</span>
                     </td>
-                    <td width="10%" style="padding-left:5px;">
+                    <td width="15%" style="padding-left:5px;">
                         <span title="Click to sort" class='pointer'>[% l('Date Returned') %]</span>
                     </td>
-                    <td width="16%">
+<!--                    <td width="16%">
                         <span title="Click to sort" class='pointer'>[% l('Barcode') %]</span>
                     </td>
                     <td width="22%">
                         <span title="Click to sort" class='pointer'>[% l('Call Number') %]</span>
-                    </td>
+                    </td> -->
                 </tr>
             </thead>
             <tbody>
                 [% FOR circ IN ctx.circs;
                     attrs = {marc_xml => circ.marc_xml};
                     PROCESS get_marc_attrs args=attrs; %]
-                    <tr>
-                        <td style="padding-left:5px;padding-bottom:10px;">
+                    <tr style="font-size:1.2em;">
+                        <td style="padding-left:5px;padding-bottom:10px;vertical-align:top;">
                             <a href="[% mkurl(ctx.opac_root _ '/record/' _ circ.circ.target_copy.call_number.record.id) %]" 
-                                name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
+                                name="[% l('Catalog record') %]"><img src="/opac/extras/ac/jacket/small/r/[% circ.circ.target_copy.call_number.record.id %]" style="float:left;padding-right:5px;"/>[% attrs.title | html %]</a>
                             [% IF attrs.author %] /
                             <a href="[% mkurl(ctx.opac_root _ '/results',
                                 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
                             )%]">[% attrs.author | html %]</a>
                             [% END %]
                         </td>
-                        <td style="padding-left:5px;">
+                        <td style="padding-left:5px;vertical-align:top;">
                             [% date.format(ctx.parse_datetime(circ.circ.xact_start),DATE_FORMAT); %]
                         </td>
-                        <td style="padding-left:5px;">
+                        <td style="padding-left:5px;vertical-align:top;">
                             [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT); %]
                         </td>
-                        <td style="padding-left:5px;">
+                        <td style="padding-left:5px;vertical-align:top;">
                             [% 
                                 IF circ.circ.checkin_time; 
                                     date.format(ctx.parse_datetime(circ.circ.checkin_time),DATE_FORMAT); 
@@ -97,8 +97,8 @@
                                 <span style='color:blue;'>*</span><!-- meh -->
                             [% END; %]
                         </td>
-                        <td>[% circ.circ.target_copy.barcode | html %]</td>
-                        <td>[% circ.circ.target_copy.call_number.label | html %]</td>
+<!--                        <td>[% circ.circ.target_copy.barcode | html %]</td>
+                        <td>[% circ.circ.target_copy.call_number.label | html %]</td> -->
                     </tr>
                 [% END %]
             </tbody>
index 05edc8d..54159b2 100644 (file)
@@ -65,7 +65,8 @@
                         onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'circ' && !inputs[i].disabled) inputs[i].checked = this.checked;}"
                     />
                 </td>
-                <td width="40%" style="padding-left:5px;">
+                <!-- <td width="40%" style="padding-left:5px;"> -->
+                <td width="76%" style="padding-left:5px;">
                     <span title="Click to sort" class='pointer'>
                         Title
                     </span> /
                     <span title="Click to sort" class='pointer'>Renews<br />Left
                     </span>
                 </td>
-                <td width="13%" style="padding-left:5px;">
+                <td width="16%" style="padding-left:5px;">
                     <span title="Click to sort" class='pointer'>Due Date</span>
                 </td>
-                <td width="16%">
+                <!-- <td width="16%">
                     <span title="Click to sort" class='pointer'>barcode</span>
-                </td>
-                <td width="20%">
+                </td> -->
+                <!-- <td width="20%">
                     <span title="Click to sort" class='pointer'>call number</span>
-                </td>
+                </td> -->
             </tr>
         </table>
    
                     [% FOR circ IN ctx.circs;
                         attrs = {marc_xml => circ.marc_xml};
                         PROCESS get_marc_attrs args=attrs; %]
-                    <tr>
+                    <tr style="font-size:1.2em;">
                         <td width="1%" style="padding-left:10px;" valign="top">
                             <input type="checkbox" name="circ"
                                 [% IF circ.circ.renewal_remaining < 1 %] disabled="disabled" [% END %]
                                 value="[% circ.circ.id %]" />
                         </td>
-                        <td width="40%"
-                            style="padding-left:5px;padding-bottom:10px;"
+                        <!-- <td width="40%" -->
+                        <td width="76%"
+                            style="padding-left:5px;padding-bottom:10px;vertical-align:top;"
                             name="author">
                             <a href="[% mkurl(ctx.opac_root _ '/record/' _ 
                                 circ.circ.target_copy.call_number.record.id) %]"
-                                name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
+                                name="[% l('Catalog record') %]"><img src="/opac/extras/ac/jacket/small/r/[% circ.circ.target_copy.call_number.record.id %]" style="float:left;padding-right:5px;"/>[% attrs.title | html %]</a>
                             [% IF attrs.author %] /
                             <a href="[% mkurl(ctx.opac_root _ '/results',
                                 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
                             ) %]">[% attrs.author | html %]</a>
                             [% END %]
                         </td>
-                        <td width="8%" name="renewals" align="center">
+                        <td width="8%" name="renewals" align="center" style="vertical-align:top;">
                             [% circ.circ.renewal_remaining %]
                         </td>
                         [%
                             due_date = ctx.parse_datetime(circ.circ.due_date);
                             due_class = (date.now > date.format(due_date, '%s')) ? 'error' : '';
                         %]
-                        <td width="13%" style="padding-left:5px;" name="due_date" class='[% due_class %]'>
+                        <td width="16%" style="padding-left:5px;vertical-align:top;" name="due_date" class='[% due_class %]'>
                             [% date.format(due_date, DATE_FORMAT) %]
                         </td>
-                        <td width="16%" name="barcode">
+                        <!-- <td width="16%" name="barcode">
                             [% circ.circ.target_copy.barcode | html %]
-                        </td>
-                        <td width="20%" name="call_number">
+                        </td> -->
+                        <!-- <td width="20%" name="call_number">
                             [% circ.circ.target_copy.call_number.label | html %]
-                        </td>
+                        </td> -->
                     </tr>
                     [%  IF circ.renewal_response AND
                             circ.renewal_response.textcode != 'SUCCESS' %]
index 0240b70..049e3a3 100644 (file)
@@ -1,6 +1,6 @@
 <div id="homesearch_main_logo">
+<h1 class="home-header">[% l("Books on Display"); %]</h1>
+<iframe width="960" height="300" src="https://www.tadl.org/slider/youth/slider1.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="text-align:center"></iframe>
 <h1 class="home-header">[% l("New Books!"); %]</h1>
-<iframe width="960" height="350" src="https://www.tadl.org/slider/youth/index.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="text-align:center"></iframe>
-<!-- <h1 class="home-header">[% l("On Display"); %]</h1>
-<iframe width="960" height="200" src="https://www.tadl.org/slider/youthdisplay.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="text-align:center" allowtransparency="true"></iframe> -->
+<iframe width="960" height="150" src="https://www.tadl.org/slider/youth/slider2.php" frameborder="0" marginwidth="5" marginheight="5" scrolling="no" style="text-align:center"></iframe>
 </div>
index 0e4ef46..ab019ce 100644 (file)
             <tr>
                 <td>
                     <input type="hidden" name="hold_target" value="[% hdata.target.id | html %]" />
-                    <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
+                    <!-- <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div> -->
+                    <div class='hold-items-list-title'>
+                    <div style="background:#fff;padding:10px;border:1px solid #e6e6e6;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;">
+                      <img src="/opac/extras/ac/jacket/small/r/[% hdata.target.id | html %]" style="float:left;padding-right:10px;">
+                      <span style="font-size:1.5em;">[% attrs.title | html %]</span><br/>
+                      [% attrs.author | html %]<br/>
+                      [% attrs.phys_desc | html %]<br/>
+                    <div class="clear-both"></div>
+                    </div>
+                    </div>
                     [% IF hdata.parts %]
                         [% IF hdata.parts.size > 0 %]
                         <div style='padding-left: 10px'>