[open-ils-commits] [GIT] Evergreen ILS branch master updated. 54114dc4a540f5e4eda5036e7e1e358a30aec6ce
Evergreen Git
git at git.evergreen-ils.org
Wed Mar 2 14:14:14 EST 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 54114dc4a540f5e4eda5036e7e1e358a30aec6ce (commit)
from 8a6f4ba380d2e64cfbb1f0e10a015c7787033af9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 54114dc4a540f5e4eda5036e7e1e358a30aec6ce
Author: Josh Stompro <stomproj at larl.org>
Date: Mon Feb 15 08:24:38 2016 -0600
LP#1545226 - Fix MARC Batch Editor status screen.
This patch does the following:
- The html table was broken, fixed the markup.
- Added some styling to the table.
- Added a row with total records info.
- Fixed the progress bar popup; it now displays
percentage completion and has a title so it is
wide enough to do so
- Added color to failed row (red), and to completion text (green).
To test:
[1] In the staff interface (both XUL and web), perform
a MARC Batch Edit on a bucket that contains at least
a few bib records.
[2] Verify that the progress dialog now displays the
percentage completion of the batch edit; verify
that there is now a row displaying the total number
of records.
Signed-off-by: Josh Stompro <stomproj at larl.org>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm
index 5f46799..6d75965 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm
@@ -247,8 +247,10 @@ sub show_processing_template {
var u = new openils.User({ authtoken: authtoken });
dojo.addOnLoad(function () {
- progress_dialog.show(true);
- progress_dialog.update({maximum:$rec_string});
+
+ progress_dialog.update({maximum: $rec_string});
+ progress_dialog.attr("title", "MARC Batch Editor Progress......");
+ progress_dialog.show();
var interval;
interval = setInterval( function() {
@@ -290,30 +292,75 @@ sub show_processing_template {
});
</script>
+<style>
+table {
+ #width:100%;
+}
+table, th, td {
+ border: 1px solid black;
+ border-collapse: collapse;
+}
+th, td {
+ padding: 5px;
+ text-align: left;
+}
+table tr:nth-child(even) {
+ background-color: #eee;
+}
+table tr:nth-child(odd) {
+ background-color:#fff;
+}
+table th {
+ background-color: black;
+ color: white;
+}
+tr#fail {
+ color: red;
+}
+tr#processed {
+ font-weight: bold;
+}
+div#complete_msg {
+ font-weight:bold;
+ color: green;
+ font-size: larger;
+ text-decoration: underline;
+}
+</style>
</head>
+
- <body style="margin:10px;" class='tundra'>
+ <body style="margin:10px;font-size: 130%" class='tundra'>
<div class="hide_me"><div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div></div>
- <table style="width:100%; margin-top:100px;">
- <th>
- <td>Status</td>
- <td>Record Count</td>
- </th>
+ <h1>MARC Batch Editor Status</h1>
+
+ <table>
+ <tr>
+ <th>Status</th>
+ <th>Record Count</th>
+ </tr>
<tr>
<td>Success</td>
<td id='success_count'></td>
</tr>
- <tr>
+ <tr id='fail'>
<td>Failure</td>
<td id='fail_count'></td>
</tr>
- <tr>
- <td></td>
+ <tr id='processed' >
+ <td>Total Processed</td>
<td id='total_count'></td>
</tr>
+ <tr>
+ <td></td>
+ </tr>
+ <tr>
+ <td>Total To Process</td>
+ <td>$rec_string</td>
+ </tr>
</table>
-
+ <br>
<div id='complete_msg'></div>
</body>
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/WWW/TemplateBatchBibUpdate.pm | 71 ++++++++++++++++---
1 files changed, 59 insertions(+), 12 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list