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
phasefx [Thu, 12 Nov 2009 22:41:20 +0000 (22:41 +0000)]
Filters for the triggered events interface, and support for items instead of patrons as an entry point (just need to wire that up). Lists and streaming rows can be brittle if the lists are cleared while data is still streaming in. I've tried to fix that by disabling the buttons until an oncomplete is encountered, but it's still brittle.
erickson [Thu, 12 Nov 2009 22:11:29 +0000 (22:11 +0000)]
added flag to mark claims returned which tells the code to use the circ due date as the claims returned date. good for batch processing of claims return items
erickson [Thu, 12 Nov 2009 17:03:58 +0000 (17:03 +0000)]
Added ability to retrieve/edit a staged user and subsequently save as a "real" user.
importing Stage module into Actor.pm
Added retrieve by username API to Stage.pm
phasefx [Thu, 12 Nov 2009 06:03:26 +0000 (06:03 +0000)]
Turn off bubbling for the oils_persist event (makes things less noisy with iframes, etc.). Support @oils_persist_peers for persisting related elements (mainly to support radio group style widgets)
phasefx [Thu, 12 Nov 2009 00:07:13 +0000 (00:07 +0000)]
Some refactoring. Works with <toolbarbutton type="checked"> now, and monitors all the attributes listed in @oils_persist whenever the virtual oils_persist event is triggered. Provides a way to fire said event manually, and
offers @oils_persist_events for providing a specific list of events with which to trigger the oils_persist virtual event.
phasefx [Wed, 11 Nov 2009 21:47:19 +0000 (21:47 +0000)]
persist_helper: Some abstraction with an oils_persist virtual event. Better handling of non-true values. More debugging statements. A failed attempt to have oils_persist="checked" work with <toolbarbutton type="checkbox"/> (such buttons will get stuck into the unchecked state after being checked and unchecked)