miker [Wed, 14 Oct 2009 23:56:34 +0000 (23:56 +0000)]
More work towards in-db ingest. The functions provided here will extract
data from a bib record in the same way that the Ingest server does for use
in metabib.*_field_entry tables.
Also provided: wrappers to the xml2 (aka pgxml) contrib module for Postgres 8.2
and before that implement text-based versions of the XPATH function available
in Postgres 8.3 and beyond.
phasefx [Wed, 14 Oct 2009 07:35:53 +0000 (07:35 +0000)]
Fix Hold Note creation in staff client by replacing permacrud call with a cstore-using OpenSRF method. It looks like pcrud.create isn't always closing the transaction that it starts here.
phasefx [Tue, 13 Oct 2009 05:23:45 +0000 (05:23 +0000)]
Support editable trees, which is needed if we want a usable checkbox column in a tree.
And, support checkbox columns in trees.
An example:
<tree id="my_list" editable="true" />
JSAN.use('util.list');
var list = new util.list('my_list');
list.init( {
'columns' : [
{
'id' : 'select',
'type' : 'checkbox',
'editable' : true,
'label' : '',
'render' : function(my) { return true; } // Checked by default
}
]
} );
But once a tree is editable, all tree cells are editable unless explicitly made otherwise, so you need 'editable' : false in the column definitions for such trees if you don't want cells in those columns to be editable.
miker [Mon, 12 Oct 2009 20:24:46 +0000 (20:24 +0000)]
Patch from Laura Cassell to make the email regexp a bit more forgiving.
Specifically, this allows the name portion of the address to contain
period separated chunks.
miker [Mon, 12 Oct 2009 17:06:01 +0000 (17:06 +0000)]
This patch moves towards in-database indexed value normalization. The eventual
goal of this is to move to pure database ingest handled by triggers. This will
free us from the grip of the Ingest server, speed up ingest altogether, and
cause ingest to occur entirely within the same database transaction as the
INSERT or UPDATE to the MARC that is the cause of the ingest. This means
no more potential for race conditions on ingest, and simpler data import.
In this first step, we add some normalization routines for dealing with basic
string data. NACO normalization and the like. With these functions we can
do everything that the Ingest server can do with regard to munging indexed
strings.
You can register these normalizers with specific indexed fields, and define the
order in which they are to be applied.
Next up: work on the scaffolding to actually apply the functions, define the
IDL entries, and create MARC-handling functions to do the xpath dances.
This functionallity will require either:
* a custom (I have a patch) pgxml contrib module or
* Postgresql 8.3+ XML/XPath support
erickson [Mon, 12 Oct 2009 16:36:53 +0000 (16:36 +0000)]
sort checked out items by due date, oldest first. this brings the items that need the most attention to the top of the list. previously, there was no sorting
erickson [Fri, 9 Oct 2009 19:47:59 +0000 (19:47 +0000)]
initial support for applying distribution formulas to a set of lineitem_details. TODO: need to clean up the styling, support formula chains (appying multiples), storing which formula was used (somehwere)
phasefx [Fri, 9 Oct 2009 19:15:00 +0000 (19:15 +0000)]
More CSS configurability for Checkin/Hold Capture interfaces, mostly so we can style those states from the Checkin Modifiers menu-button, like Amnesty Mode and Auto-Print Hold and Transit Slips. Problem is, I don't know a
good way to style them. End-users could create a circ_custom.css file mimicking circ.css and give any rules the ! important flag to override the stock CSS.
phasefx [Fri, 9 Oct 2009 18:18:14 +0000 (18:18 +0000)]
If an element under the sway of persist_helper makes use of @command, poke the corresponding <command> with an event if needed, and add a special event listener to it for monitoring the state of the original element.
erickson [Thu, 8 Oct 2009 20:45:23 +0000 (20:45 +0000)]
verify requested user matches all requested transactions. allow users to create credit-card-payments toward their own transactions. dissalow negative CC payments. don't store CC number or validation code. updated docs. minor cleanup
erickson [Thu, 8 Oct 2009 17:23:01 +0000 (17:23 +0000)]
Patch from Joe Atzberger and Lebbeous Fogle-Weekley:
- provides numerous cleanups to the creditcard.pm module
- test script for testing credit card transactions
- currently support authorizenet and paypal (requires account logins to test)
- other miscellaneous format cleanups
miker [Thu, 8 Oct 2009 15:41:44 +0000 (15:41 +0000)]
Bug fix for the MARC editor:
When we add a <controlfield> element we need to set it to be 40 characters
long, and full of spaces, otherwise the Fixed Field editor cannot properly
set the positions.
Additionally, when a Fixed Field is edited but there is no backing
<controlfield> element (say, trying to set the Audn when there is no 008)
then we will add the needed <controlfield>.
phasefx [Wed, 7 Oct 2009 15:56:12 +0000 (15:56 +0000)]
Toward a new look for XUL Record Summary. bib_brief.xul modified for existing instances of Record Summary, but the alternate Item Details interface is doing it differently.
The old Record Summary is a dedicated XUL file that typically lives in an iframe. It would fetch its own data if fed some ID's either via xulG or URL parameters.
The new way (which is really an old way that was tried before and is used with bill summaries) involves a XUL overlay, and a render function matching the overlay name. A caller can feed it already fetched objects or have it fetch
its own objects given ID's.
To do this,
Include these in your XUL file:
<?xul-overlay href="/xul/server/cat/bib_brief_overlay.xul"?>
<grid id="bib_brief_grid"/>
This pulls in the overlay, which merges with the <grid/> in your XUL and loads bib_brief_overlay.js.
phasefx [Wed, 7 Oct 2009 15:32:54 +0000 (15:32 +0000)]
some class hints for these column definitions, so that some non-list code can re-use them and be more selective in what it tries to render. In the long run, we should probably try to utilize fm_IDL.xml for some of this, in the same way that the reporter becomes aware of displayable fields
erickson [Tue, 6 Oct 2009 17:44:48 +0000 (17:44 +0000)]
starting clone support. added cloning for home org, phone numbers, and mailing/billing addresses. like previous user editor, addresses are only directly editable by the address owner. TODO, add address detachment and linking to addr owner
dbs [Tue, 6 Oct 2009 17:15:13 +0000 (17:15 +0000)]
Extend entityize() escaping behaviour to also convert raw angle brackets to entities.
Also, escape the library short name and call number labels in XML holdings.
The entityize() omission was killing marcxml-full unAPI output, but the
function is used heavily through the code base. Will test further before
backporting in case the angle brackets are manually escaped in other
uses.
phasefx [Tue, 6 Oct 2009 17:06:33 +0000 (17:06 +0000)]
Support ui.circ.show_billing_tab_on_bills org setting.
Some refactoring to eliminate a redundant network call and to have the stop sign page trump the Show Billing Tab on Bills behavior.
This whole display/summary/sub-interface setup needs some TLC, and I want to redo the stop sign page so that you can spawn it quickly and just feed it asynchronous data as needed.
erickson [Mon, 5 Oct 2009 16:11:54 +0000 (16:11 +0000)]
make ndoe depth calculation more efficient and run at startup time to speed up display for large trees (e.g. org trees). throw exception when an org unit is retrieved that does not exist, since this cryptic error pops up from time to time during development