erickson [Mon, 23 Nov 2009 20:50:40 +0000 (20:50 +0000)]
DB update patch/script from Joe Atzberger.
===
Attachment one is a database update script based on work Bill sent to the list. The previous mechanism was to call psql -f once per file, but that also required the psql password to be entered once per file and didn't check to see if the call failed to try again or at least bail out on subsequent files (that might require the earlier ones to succeed. Given that typing (or even pasting) 20+ consecutive blind password entires is error-prone, I replaced that with a pipe to single psql call.
Pending acceptance, the foreseeable goal will be to integrate this script with the update.sh script and have a single call to apply both code and data changes from an updated repo.
===
erickson [Mon, 23 Nov 2009 20:38:40 +0000 (20:38 +0000)]
Update script patch from Joe Atzberger.
===
The purpose of this script is to consolidate a lot of the annoying and error-prone tasks associated with an upgrade for a developer, including make, make install, the xulrunner client built and autogen.
Considerations:
* Run as user "opensrf"
* opensrf needs sudo (again, targeting developers, not production) for apache stop/start, chown and make install
* Assumes opensrf has two SVN (or git-svn) repos: OpenILS and OpenSRF
* Both repos should be already configured (as in ./configure)
Detailed usage notes available via -h option. Both repo directories and the install directory can be specified on the command line. Try it with -t (test mode) to see feedback without making any changes.
===
TODO. Add option to use brick_ctl.sh instead of osrf_ctl.sh for service start/stop
scottmk [Mon, 23 Nov 2009 20:37:08 +0000 (20:37 +0000)]
Changing some datatypes to link, to reflect the presence
of corresponding linkages in the <links> aggregate, for
classes "rud", "rcirct", "rhrr", "rxbt", "rxpt", and "ergbhu".
erickson [Mon, 23 Nov 2009 17:13:14 +0000 (17:13 +0000)]
now updating circ and hold summary numbers. during checkout, update the total and session checkout number. if a hold is captured during checkout, update the hold numbers to reflect the change
erickson [Mon, 23 Nov 2009 16:41:27 +0000 (16:41 +0000)]
plugged in support for auto-renew-age checking. more event handling. self-check should now be functionally equivalent to the old self-check as far as checkout/renewal goes. still needs receipts, etc.
erickson [Sun, 22 Nov 2009 19:49:18 +0000 (19:49 +0000)]
added a util function to play an audio file via url using the HTML5 <audio> element. no attempt was made to support browsers that don't yet support <audio>
djfiander [Sun, 22 Nov 2009 00:37:42 +0000 (00:37 +0000)]
CHANGES
. Added support for compressed 863 holdings, including both structure and function
. Added function to turn 863 chronologies into ISO datestrings (YYYY-MM-DD)
. Employed the existing prediction logic to generate full prediction lists by way of an 863 increment method
. Added necessary accessor and setter methods to reduce direct object attribute access
. Renamed a few methods to better fit the expanded object interfaces
. Cleaned up a few commented-out print-type debug statements
. Other minor changes
TODO
. Switch to full POD-style inline documentation
. Address various XXX and TODO comments here and there as needed
. Further flesh out object interfaces as needed
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14997 dcc99617-32d9-48b4-a31d-7c20da2025e4
miker [Fri, 20 Nov 2009 19:15:10 +0000 (19:15 +0000)]
Patch from Joe Atzberger to break up the auditor table creation function into multiple bits.
This is the start of a process that will make the auditor functionality more stable and predictable across upgrades, where columns are dropped and created on audited tables.
phasefx [Thu, 19 Nov 2009 18:44:14 +0000 (18:44 +0000)]
This gives the offline interfaces the ability to use font_helper (which honors the global font settings), but it also pulls in a lot of functions that won't work in offline mode is called, which why it wasn't there originally. Font helper had slipped into the offline interfaces causing non-fatal errors
phasefx [Thu, 19 Nov 2009 18:33:40 +0000 (18:33 +0000)]
Fix util.date regression in offline mode. We don't have dojo in that environment, and likely won't bundle it. So back to original parsing for db_date2Date if no dojo, and don't offer the %{localized} and %{iso8601} format options if no dojo. At least for now.
erickson [Thu, 19 Nov 2009 16:25:20 +0000 (16:25 +0000)]
created general purpose 'a copy for a theoretical hold is available at shelving location X for org Y'. can be used by the OPAC to nudge (or force) users toward just grabbing the copy instead of placing a hold
dbs [Thu, 19 Nov 2009 16:14:42 +0000 (16:14 +0000)]
Apply patch from Galen Charlton to escape email addresses in overdue notices:
"Trivial patch to turn on XML-escaping of e-mail addresses. '&' is a
rarely used but valid character in email addresses, and failing to
escape makes the overdue notice data file non-well-formed."
phasefx [Thu, 19 Nov 2009 07:14:01 +0000 (07:14 +0000)]
localize dates in various list columns using dojo (hey, no more .substring(0,10)!) and remove newly redundant columns (so for example, instead of having both a
'Checkout Date' and a 'Checkout Timestamp', we just have 'Checkout Date', using a dojo localized time). list.fm_columns does this automatically, but we're not
ready to replace all lists with that yet. Also tweaked some ambiguous labels.
phasefx [Thu, 19 Nov 2009 05:43:47 +0000 (05:43 +0000)]
Use Dojo for parsing date strings from the database into javascript date objects, and for turning dates into ISO8601 date strings. Stop using DP_DateExtensions.js. Add a {localized} format for util.date.formatted_date, using Dojo.
phasefx [Wed, 18 Nov 2009 16:35:49 +0000 (16:35 +0000)]
With fm_columns, hide by default any virtual field and any field with a datatype of link. For rendering values for link fields, if the data encountered is an object, flatten it by using the field's .key value as a method against the object.
erickson [Wed, 18 Nov 2009 13:33:31 +0000 (13:33 +0000)]
Patch from Lebbeous Fogle-Weekley to change the behavior of the "Show Item Details" context
menu entry for patron items out, checkin, transit list, copy status, renewal, hold shelf.
Action now opens a new Item Status tab with the alternate (details) view focused by default.
Works with single or multiple copies.
TODO: no need to fetch copy details twice for the same copy
phasefx [Wed, 18 Nov 2009 07:25:39 +0000 (07:25 +0000)]
Change labels such that they refer to Pending patrons instead of Staged patrons, and change Cancel to Delete.
Wire up the Delete action.
Add a sticky number box for how many patrons to retrieve in lieu of paged navigation, and a Refresh button.
Pig-trickery to make the Home Library selector sticky.
Deleting or loading a patron removes the patron from the list.
dbs [Wed, 18 Nov 2009 05:52:24 +0000 (05:52 +0000)]
Reorganize i18n files under the template1/template1.pot, template1/lang.po style
According to https://help.launchpad.net/Translations/ImportPolicy, this matches
the standard GNU gettext layout and will enable Launchpad to import our files
from the repository to enable translations via Launchpad.
Which means, of course, that we will once again have to add the en-US POT
files to the repository. Fun fun.
Also note that the Makefile has been simplified somewhat; unused targets
have been removed, and the simplified directory structure enabled me to
reduce some variables.
erickson [Wed, 18 Nov 2009 04:44:48 +0000 (04:44 +0000)]
make circ info fetching synchronous to prevent race condition with scanning, added dummy data for testing, plugged in more stub functions, some css and layout fixes
phasefx [Wed, 18 Nov 2009 01:39:16 +0000 (01:39 +0000)]
When I renamed the 'status' column from circ.util.columns to 'acp_status' it broke Holdings Maintenance. This fixes that and also adds the mint condition column to that interface.
phasefx [Tue, 17 Nov 2009 07:33:37 +0000 (07:33 +0000)]
fix some entity names. With just two actions, use buttons instead of menus. Avoid accesskey conflict with List Actions, and remove access key from Cancel
erickson [Mon, 16 Nov 2009 23:09:12 +0000 (23:09 +0000)]
Started porting the self-check web interface over to the new hotness that is dojo/template-toolkit.
New features on the horizon (circ/fine/holds summary data, holds list, credit card payments, etc.).
About half of the old functionality has been ported. Many TODO items in the code.
stay tuned
phasefx [Mon, 16 Nov 2009 22:41:54 +0000 (22:41 +0000)]
First cut at an interface to list "staged" users by org unit.
APROPOS:
"Ability to have online card applications entered directly into system, with approval and checking done by staff before account is activated"
TODO:
* Wire up Load patron to spawn the existing patron editor interface
* See if there is a Cancel staged patron method we want to call from here
* Add an org unit selector instead of using the workstation ou
* Support paging or a Fetch More button or something similar (the list retrieval method has offset/limit parameters)
phasefx [Mon, 16 Nov 2009 21:33:59 +0000 (21:33 +0000)]
forgot to commit this wrapper for the closure compiler, the sole purpose of which is to return an error code 0 so that make doesn't abort. I don't mean to pull in a whole new dependency (like java), I'm just playing around. Will be happy to look at dojo squeeze, etc.
scottmk [Mon, 16 Nov 2009 17:59:10 +0000 (17:59 +0000)]
Create booking schema and the tables therein.
A Open-ILS/src/sql/Pg/095.schema.booking.sql
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0086.schema.booking-tables.sql
M Open-ILS/examples/fm_IDL.xml
phasefx [Sat, 14 Nov 2009 09:11:53 +0000 (09:11 +0000)]
Have List Actions -> Print List CSV & Print List Expanded Format use the displayed column order instead of the original column order, for better WYSIWYP(rint) :)
phasefx [Sat, 14 Nov 2009 08:36:57 +0000 (08:36 +0000)]
List Actions -> Print List Expanded Format
Similar to Print List CSV in that in prints visible columns without using a template, but it pivots the data vertically, similar to the \x option in psql.
dbs [Fri, 13 Nov 2009 05:24:42 +0000 (05:24 +0000)]
Apply patch from Warren Layton to make the existing default group permission map entries explicit
Now, I have no idea what the base permission setup should look like
for the average library. However, figuring out what permissions are
currently being applied is difficult with lines such as:
INSERT INTO permission.grp_perm_map VALUES (57, 2, 15, 0, false);
...when it could be rewritten as:
-- Add basic patron permissions to the Patrons group
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
VALUES (2, (SELECT id FROM permission.perm_list WHERE code =
'RENEW_CIRC'), 0, false);
To me, this patch makes it very clear which permissions are assigned
to which groups (the permissions for the Acquisition groups are
currently set in this way, too). This added clarity may help when
someone more knowledgeable than me tries to figure out what the "base
permission setup" should be for each group.
================================================
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: Warren A. Layton <warren.layton@googlemail.com>
================================================
phasefx [Fri, 13 Nov 2009 04:01:27 +0000 (04:01 +0000)]
more columns for the triggered events UI. Some label collisions/ambiguity; could override/hand-craft the labels, but maybe something like adding the class label for the column-come-lately's