[open-ils-commits] r10450 -
branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 26 10:37:10 EDT 2008
Author: erickson
Date: 2008-08-26 10:37:08 -0400 (Tue, 26 Aug 2008)
New Revision: 10450
Modified:
branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
Log:
show newest checkouts first in the items out lists
Modified: branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2008-08-26 14:36:50 UTC (rev 10449)
+++ branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2008-08-26 14:37:08 UTC (rev 10450)
@@ -343,7 +343,8 @@
unHideMe($n(template, 'selfck.cotype_rn'));
}
- $('selfck-items-out-tbody').appendChild(template);
+ var tbody = $('selfck-items-out-tbody');
+ tbody.insertBefore(template, tbody.getElementsByTagName('tr')[0]);
$('selfck-item-barcode-input').value = '';
@@ -352,7 +353,7 @@
$n(ptemplate, 'title').appendChild(text(record.title()));
$n(ptemplate, 'barcode').appendChild(text(copy.barcode()));
$n(ptemplate, 'due_date').appendChild(text(circ.due_date().replace(/T.*/,'')));
- printWrapper.appendChild(ptemplate);
+ printWrapper.insertBefore(ptemplate, printWrapper.getElementsByTagName('li')[0]);
pendingXact = false;
}
Modified: branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2008-08-26 14:36:50 UTC (rev 10449)
+++ branches/rel_1_2/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2008-08-26 14:37:08 UTC (rev 10450)
@@ -140,6 +140,7 @@
<span name='selfck.cotype_rn' class='hide_me'>&selfck.cotype_rn;</span>
</td>
</tr>
+ <tr class='hide_me'> </tr>
</tbody>
</table>
<div id='selfck-items-out-done-div'>
@@ -166,21 +167,24 @@
<span id='selfck-print-lib-addr-post-code'/>
</div>
<br/>
- <div><span id='selfck-print-lname'/>, <span id='selfck-print-fname'/></div>
- &selfck.items_out;
- <ol id='selfck-print-items-list'>
- <li name='selfck-print-items-template'>
- <div name='title'/>
- &selfck.barcode;: <span name='barcode'/>
- &selfck.due_date;: <span name='due_date'/>
- </li>
- </ol>
+ <div id='selfck-print-patron-info'>
+ <div><span id='selfck-print-lname'/>, <span id='selfck-print-fname'/></div>
+ &selfck.items_out;
+ <ol id='selfck-print-items-list'>
+ <li name='selfck-print-items-template'>
+ <div name='title'/>
+ &selfck.barcode;: <span name='barcode'/>
+ &selfck.due_date;: <span name='due_date'/>
+ </li>
+ <li class='hide_me'> </li>
+ </ol>
+ </div>
<br/>
<div>&selfck.org_phone; <span id='selfck-print-lib-phone'/></div>
<br/>
<div>
<div>&selfck.org_hours;</div>
- <table>
+ <table id='selfck-print-hours'>
<tr><td>&selfck.day0;</td><td id='selfck-print-dow_0_open'/><td id='selfck-print-dow_0_close'/></tr>
<tr><td>&selfck.day1;</td><td id='selfck-print-dow_1_open'/><td id='selfck-print-dow_1_close'/></tr>
<tr><td>&selfck.day2;</td><td id='selfck-print-dow_2_open'/><td id='selfck-print-dow_2_close'/></tr>
More information about the open-ils-commits
mailing list