[open-ils-commits] r7768 - in trunk/Open-ILS/web/opac: locale/en-US
skin/default/xml/common skin/default/xml/myopac
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 12 12:56:16 EDT 2007
Author: erickson
Date: 2007-09-12 12:48:25 -0400 (Wed, 12 Sep 2007)
New Revision: 7768
Modified:
trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
trunk/Open-ILS/web/opac/skin/default/xml/common/holds.xml
trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml
Log:
initial hold freezing UI components. no logic yet. added DTD entities opac.holds.freeze opac.holds.freeze.help opac.holds.freeze.thaw_date opac.holds.freeze.thaw_date.format myopac.holds.frozen myopac.holds.frozen.until
Modified: trunk/Open-ILS/web/opac/locale/en-US/opac.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/opac.dtd 2007-09-12 16:12:19 UTC (rev 7767)
+++ trunk/Open-ILS/web/opac/locale/en-US/opac.dtd 2007-09-12 16:48:25 UTC (rev 7768)
@@ -203,6 +203,10 @@
<!ENTITY myopac.holds.edit "Edit">
<!ENTITY myopac.holds.cancel "Cancel">
<!ENTITY myopac.holds.verify "If you wish to cancel the selected hold, click OK, otherwise click Cancel.">
+<!ENTITY opac.holds.freeze "Freeze this hold">
+<!ENTITY opac.holds.freeze.help "A 'frozen' will retain its place in the queue, but will not be fulfilled until it has been unfrozen.">
+<!ENTITY opac.holds.freeze.thaw_date "Automatically un-freeze hold on:">
+<!ENTITY opac.holds.freeze.thaw_date.format "YYYY-MM-DD">
<!-- =================================================================
MyOPAC Preferences Page
@@ -225,6 +229,8 @@
<!ENTITY myopac.prefs.help "This setting defines how you will be notified of holds that are ready to be picked up from the library.
By default, holds will use the notification style you choose here.
However, you will still have the option to change individual holds regardless of this setting.">
+<!ENTITY myopac.holds.frozen "Frozen">
+<!ENTITY myopac.holds.frozen.until "Frozen Until">
<!-- =================================================================
MyOPAC Summary page
Modified: trunk/Open-ILS/web/opac/skin/default/xml/common/holds.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/common/holds.xml 2007-09-12 16:12:19 UTC (rev 7767)
+++ trunk/Open-ILS/web/opac/skin/default/xml/common/holds.xml 2007-09-12 16:48:25 UTC (rev 7768)
@@ -1,3 +1,8 @@
+<link rel="stylesheet" type="text/css"
+ href='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar-brown.css' title="win2k-cold-1" />
+<script src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar.js'></script>
+<script src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/lang/calendar-en.js'></script>
+<script src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar-setup.js'></script>
<div>
<div id='xulholds_box' class='hide_me canvas' style='margin-top: 6px;'>
@@ -122,6 +127,52 @@
</td>
</tr>
+ <tr>
+ <td class='holds_cell'>
+ &opac.holds.freeze;
+ (<a class='classic_link' href='javascript:alert("&opac.holds.freeze.help;");'>Help</a>)
+ </td>
+ <td class='holds_cell'>
+ <input type='checkbox' id='holds_frozen_chkbox'
+ onchange='
+ if($("holds_frozen_chkbox").checked)
+ unHideMe($("hold_frozen_thaw_row"));
+ else
+ hideMe($("hold_frozen_thaw_row"));
+ '>
+ </input>
+ </td>
+ </tr>
+
+ <tr id='hold_frozen_thaw_row' class='hide_me'>
+ <script> if($('holds_frozen_chkbox').checked) unHideMe($("hold_frozen_thaw_row"));</script>
+ <td class='holds_cell'>
+ &opac.holds.freeze.thaw_date;
+ </td>
+ <td class='holds_cell'>
+ <input size='10' maxlength='10' id='holds_frozen_thaw_input'> </input>
+ <button style='padding: 0px;' id='holds_frozen_thaw_date_button'>
+ <img src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/img.gif'
+ style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;"
+ title="Date selector"
+ onmouseover="this.style.background='red';"
+ onmouseout="this.style.background=''" />
+ </button>
+ (&opac.holds.freeze.thaw_date.format;)
+
+ <script type="text/javascript">
+ Calendar.setup({
+ inputField : "holds_frozen_thaw_input",
+ ifFormat : "%Y-%m-%d",
+ button : "holds_frozen_thaw_date_button",
+ align : "Tl",
+ singleClick : true
+ });
+ </script>
+
+ </td>
+ </tr>
+
<tr id='holds_alt_formats_row_extras' class='hide_me'>
<td colspan='2' align='center'>
<div style='padding: 8px;'>
Modified: trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml 2007-09-12 16:12:19 UTC (rev 7767)
+++ trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml 2007-09-12 16:48:25 UTC (rev 7768)
@@ -12,6 +12,8 @@
<td>&myopac.holds.formats;</td>
<td>&myopac.holds.location;</td>
<td>&common.status;</td>
+ <td>&myopac.holds.frozen;</td>
+ <td>&myopac.holds.frozen.until;</td>
<td>&myopac.holds.edit.cancel;</td>
</tr>
</thead>
@@ -46,6 +48,13 @@
<span class='hide_me' name='hold_status_available'><b style='color:red'></b></span>
</td>
+ <td>
+ <span name='myopac_hold_frozen_false'>✗</span>
+ <span name='myopac_hold_frozen_true' class='hide_me'>✓</span>
+ </td>
+
+ <td name='myopac_holds_frozen_until'></td>
+
<td name='myopac_holds_cancel' style='border-left: 3px solid #E0E0E0; border-right: 3px solid #E0E0E0;'>
<a href='javascript:void(0);'
name='myopac_holds_edit_link' class='classic_link'>&myopac.holds.edit;</a>
More information about the open-ils-commits
mailing list