senator [Fri, 10 Sep 2010 02:15:06 +0000 (02:15 +0000)]
Booking: stop the "new resource type" dialog from executing a naughty query
The dialog will no longer offer a field for selecting a bibliographic record,
but then again you wouldn't need it. Bibliographically-based resource types
can be set up through a context menu option in the staff OPAC browser, whereas
this interface is only suited to non-bib-based resource types, like meeting
rooms, laptops, etc.
put these buttons under the sway of Dojo so that they don't get triggered when pressing enter in random fields in the patron editor form. I have no idea why this works :)
senator [Thu, 9 Sep 2010 21:28:20 +0000 (21:28 +0000)]
Improve on 17547 to support a default value for /creating/ new objects while
letting the current value of an object pass through to the overriding widget
when /editing/.
Styling tweaks to brief bib summary bar. More tooltips, and expose record id and bib call number (from the first available defined in the appropriate asset.call_number_class entry)
senator [Thu, 9 Sep 2010 13:44:18 +0000 (13:44 +0000)]
Serials: pattern wizard bugfix
Previously, you couldn't always compile the pattern at the end of the wizard
if you elected not to use certain parts of the wizard, such as enumeration
captions, even though to do so should be perfectly valid.
make the table rows containing stat cats in the patron editor more easily selectable by CSS. So, for example, we could put something like this in register_custom.css: TR[stat_cat_id='1'] { border: solid thick red; font-size: x-large; }
We briefly had to grab Library::CallNumber::LC from the SVN repo, but
that broke on systems without subversion installed (argh). Thankfully
the maintainer moved Library::CallNumber::LC to CPAN so our job becomes
routine.
Thanks to Chris Sharp and Benjamin Shum for running the gauntlet of a
2.0 alpha install and finding this problem.
* move inline CSS in patron editor to a file
* hook for custom CSS file to override patron editor styling
So for example, you can create /openils/var/web/css/skin/default/register_custom.css and have it contain CSS like this:
TR[fmfield=ident_type] { display: none; } /* dangerous if the widget is required and doesn't have a default */
TR[fmfield=ident_value2] > TD { font-size: x-large; }
TR[fmfield=barred] { display: none; }
TR[fmfield=country] { display: none; } /* dangerous if the widget is required and doesn't have a default */
TR[fmfield=master_account] { display: none; }
TR[fmfield=alert_message] { display: none; }
We were shoving a fieldmapper actor.usr object into hold slip templates as params.data.user, but that environment doesn't have fieldmapper, dojo, etc. To sidestep some difficulties adding such libraries, this takes user stat cat entries and shoves them in as normal Javascript objects (params.data.user_stat_cat_entries)
So you can add something like this to the hold slip template:
<script>
var x = params.data.user_stat_cat_entries;
for (var i = 0; i < x.length; i++) {
document.write(x[i].stat_cat.name + ' : ' + x[i].stat_cat_entry + '<br/>');
}
</script>
However, such pig-trickery with inline Javascript only works with the Mozilla Print strategy (where we render HTML and execute Javascript).
disabled lib menu entries in Holdings Maintenance was an artifact of that menu data being generated and used in other contexts. This enables all the libs for the menu in Holdings Maintenance
Tweaked Holdings Maintenance so that it only shows the selected library, its ancestors, and its descendents, subject to a Limit menu for org depth (so for example, in the stock example hierarchy where you have Consortium -> System -> Branch -> Sub-Library/Bookmobile, if you Limit to Branch, you will not see any Bookmobile or Sub-Library orgs). It no longer renders sibling libs when clicking through the list.
Also...
* some refactoring and comment removal
* less obtrusive but hopefully still useful menu entry styling for library entries that have volumes
* some defensive coding for util.make_menulist
cache the SIP login session to determine 'where' a transaction is occuring in case the caller does not indicate the location; compare hold pickup lib to physical location to determine alert type; small logging and format tweaks
Move some operations out of the transaction so that they can
fail without killing the script. The affected objects do
not necessarily exist -- i.e. the reporter schema, the
extend_reporter schema, and the auditor.action_hold_request_history
table.
1. Inserts and other changes to permission.perm_list and
permission.grp_perm_map. These can't be derived in a simple way from
the individual upgrade scripts, and will have to be hand-crafted to
fit what's already in the seed data.
2. Operations on optional schemas need to be moved out of the
transaction so that the script will work in a database that
doesn't have them.
senator [Fri, 3 Sep 2010 16:30:47 +0000 (16:30 +0000)]
Serials: a wizard for the pattern code field of the caption_and_pattern object
This field holds the same data you'd find in the contents of an 853, 854, or
855 tag. This wizard aims to make it a little easier for mere mortals to
compose this information, since the correctness of this field is fairly
central to reasonably accurate serials issuance prediction.
Find a button to launch this wizard from the Caption/Pattern interface of the
Serial Control View.
Big thanks to Galen Charlton, Dan Wells and Mike Rylander for all the help in
getting this started and understanding the MARC.
The wizard does still have a way to go before it's everything it can be. It
still needs (in no particular order):
- scrollbars on that dialog window
- support for subfield $y and probably $z, possibly others
- i18n fixes, accessibility improvements
- more control over subfield $8
- more input validation and user guidance; sane defaults for some fields?
- reconsideration of the order of the parts of the wizard
- finding out if it makes sense to allow $m without $j,$k and $l present
senator [Thu, 2 Sep 2010 18:45:28 +0000 (18:45 +0000)]
Circ/Booking: replace checks for the CAPTURE_RESERVATION permission with
checks for COPY_CHECKIN
There's no such permission as CAPTURE_HOLD, so why should reservations be
different? Also, testing for reservations to capture during normal checkin
was making trouble for users if they didn't have CAPTURE_RESERVATION.
added holds pull list action/trigger template w/ API call for fetching the formatted HTML. This allows for an alternate print approach, particularly useful for large pull lists
senator [Wed, 1 Sep 2010 20:10:04 +0000 (20:10 +0000)]
Serials: improve the alternative batch receive interface for the
barcode-heavy, one unit per item workflow. Support setting call numbers
at receive time, effectively making it possible to associate call numbers
with issuances instead of associating them with distributions.
erickson [Tue, 31 Aug 2010 21:22:43 +0000 (21:22 +0000)]
added support for specifying a dojo.data-style query to select options in the filtering select to 'disable'. disabling greys the background and prevents selection of the items in question
phasefx [Tue, 31 Aug 2010 20:08:09 +0000 (20:08 +0000)]
printable_output() support in util.browser had stopped working, and this fixes that. If an interface embedded in util.browser has a printable_output() function, the text output from that function should be printed, instead of a direct print attempt against the content window
erickson [Tue, 31 Aug 2010 19:49:03 +0000 (19:49 +0000)]
distribution formula config UI repairs/enhancements
added distribution formula cloning
added ability to change distrib formula name from formula detail page
plugged some i18n holes
using local copy of dimple grippy icons in distrib formula UI
added local copy of dimple.png w/ new license file indicating image origin/license.
erickson [Tue, 31 Aug 2010 12:48:31 +0000 (12:48 +0000)]
use circ_lib param instead of direct ws_ou acccess
circulator->circ_lib, which defaults to requestor->ws_ou (but is
overrideable) should be used in in lieu of direct ws_ou accesss;
This is useful when the caller is not physically logged in to a
workstation (e.g. centralized SIP client) and need to specify the
physical location through other means.
This change has no effect unless circ_lib is overridden by the caller
erickson [Tue, 31 Aug 2010 03:52:51 +0000 (03:52 +0000)]
pcrud.apply repairs.
Skip objects that require no action instead of throwing an exception
In last oncomplete handler, call final-complete as necessary and disconnect instead of starting over at object list position 0; no longer any need for final-complete/disconnect outside of closing request handler
miker [Tue, 31 Aug 2010 03:31:09 +0000 (03:31 +0000)]
Allow the OPAC to autoload IDL classes instead of either pulling in a long class list and evaluating them all, or loading a .5MB+ xml file and parsing the whole thing. 40% speedup in simple tests where cache is bypassed.
dbs [Tue, 31 Aug 2010 03:20:28 +0000 (03:20 +0000)]
Make the bib source selector in Vandelay MARC batch importer/exporter work
The bib source selector in Vandelay offered a drop down of the available
bib source selections, but never actually affected the source attribute
of the bib records in biblio.record_entry when they were imported. This
commit finishes off the logic that was almost there.
dbs [Mon, 30 Aug 2010 22:01:10 +0000 (22:01 +0000)]
Add a bib_source editor widget to the MARC editor
This widget should only be exposed when editing bibliographic MARC records.
The existing restriction of not being able to set the bib source when importing
via Z39.50 sadly remains in place; I believe the best place to tackle that will
be in the Z39.50 import interface itself.