Syrup.git
15 years agoshow MARC for matching items on 'mark-item-arrived' screen.
gfawcett [Sun, 5 Apr 2009 23:38:32 +0000 (23:38 +0000)]
show MARC for matching items on 'mark-item-arrived' screen.

So, in a thorny case, you can match the barcode-swiped item's bib
record against those in the database.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@284 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoforgot to add 'mark_arrived_outcome' template.
gfawcett [Sun, 5 Apr 2009 22:31:06 +0000 (22:31 +0000)]
forgot to add 'mark_arrived_outcome' template.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@283 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobetter unique-physical-object detection; friendlier error message on collision.
gfawcett [Sun, 5 Apr 2009 22:27:58 +0000 (22:27 +0000)]
better unique-physical-object detection; friendlier error message on collision.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@282 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoclarify how the model knows if an item is 'in Reserves' or not
gfawcett [Sun, 5 Apr 2009 21:32:10 +0000 (21:32 +0000)]
clarify how the model knows if an item is 'in Reserves' or not

A live PhysicalObject record is the authoritative source.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@281 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoargh, bugfix in model. Minor tweak to template.
gfawcett [Sun, 5 Apr 2009 21:25:54 +0000 (21:25 +0000)]
argh, bugfix in model. Minor tweak to template.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@280 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoAdd small-int at item-arrival; search on small-ints.
gfawcett [Sun, 5 Apr 2009 21:17:25 +0000 (21:17 +0000)]
Add small-int at item-arrival; search on small-ints.

I don't yet have a post-arrival method of setting a small integer
ID. Not sure what the requirements are, so I'm punting for the moment.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@279 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofleshing out the mark-item-as-received workflow. New PhysicalObject table. Vestigial...
gfawcett [Sun, 5 Apr 2009 20:42:51 +0000 (20:42 +0000)]
fleshing out the mark-item-as-received workflow. New PhysicalObject table. Vestigial small-integer ID support.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@278 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agophysical item view: check and display item-status
gfawcett [Sun, 5 Apr 2009 19:18:07 +0000 (19:18 +0000)]
physical item view: check and display item-status

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@277 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agohousekeeping, and farting around fruitlessly with yaz-client encoding issue
gfawcett [Sun, 5 Apr 2009 18:34:25 +0000 (18:34 +0000)]
housekeeping, and farting around fruitlessly with yaz-client encoding issue

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@276 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agovarious & sundry z3950 and MARC-related improvements
gfawcett [Sun, 5 Apr 2009 18:33:55 +0000 (18:33 +0000)]
various & sundry z3950 and MARC-related improvements

Search queries no longer need explicit @and prefixes (they are now implicit);

a cleaner phys-item search-results page. Still only max 10 results showing, though.

various visual improvements.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@275 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agosettling on JSON as syrup:marc attribute format.
gfawcett [Sun, 5 Apr 2009 15:56:01 +0000 (15:56 +0000)]
settling on JSON as syrup:marc attribute format.

Also extending my yaz_search general-timeout value.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@274 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoresequence-items should only show for editors.
gfawcett [Sat, 4 Apr 2009 19:15:45 +0000 (19:15 +0000)]
resequence-items should only show for editors.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@270 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded 'delete this item' support in the user-interface.
gfawcett [Sat, 4 Apr 2009 19:11:08 +0000 (19:11 +0000)]
added 'delete this item' support in the user-interface.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@269 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agohack to permit Evergreen bookbag URLs as search-terms in Add Physical Item.
gfawcett [Sat, 4 Apr 2009 17:54:14 +0000 (17:54 +0000)]
hack to permit Evergreen bookbag URLs as search-terms in Add Physical Item.

You still have to pick the items one at a time, still: not a batch import yet.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@267 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded lib_integration.cat_search as proper hook for z3950. Evergreen URLs are valid...
gfawcett [Sat, 4 Apr 2009 17:23:57 +0000 (17:23 +0000)]
added lib_integration.cat_search as proper hook for z3950. Evergreen URLs are valid search queries.

    It's a hack, but if you paste an Evergreen "title details" URL
    into the catalogue search interface, it will fetch the correct
    MARCXML record and display the item. Currently hard-coded to the
    Conifer catalogue, will fix that.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@265 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoItem-checkout code cleanup. Log checkout events. Slightly better error-reporting.
gfawcett [Sat, 4 Apr 2009 16:36:09 +0000 (16:36 +0000)]
Item-checkout code cleanup. Log checkout events. Slightly better error-reporting.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@263 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agohousekeeping
gfawcett [Sat, 4 Apr 2009 16:36:06 +0000 (16:36 +0000)]
housekeeping

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@262 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomark phys_mark_arrived as @admin_only
gfawcett [Sat, 4 Apr 2009 02:48:18 +0000 (02:48 +0000)]
mark phys_mark_arrived as @admin_only

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@259 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoworking on Mark Physical Items As Arrived: fuzzy match is working.
gfawcett [Sat, 4 Apr 2009 02:42:24 +0000 (02:42 +0000)]
working on Mark Physical Items As Arrived: fuzzy match is working.

The fuzzy-match is in place; not tuned yet, but it's there. It's a
relevance-engine based on Levenshtein-distance comparison of the
title, author (and to a lesser degree the publisher and
pubdate). Ideas for improvements are most welcome.

Note that this version of the code takes a full snapshot of the MARC
record when a Physical Item is requested from the catalogue. So there
are more opportunities for item comparison.

The code is a horrible mess. Much cleanup to do.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@258 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoon selection of item from catalogue, store whole MARC record
gfawcett [Sat, 4 Apr 2009 02:42:19 +0000 (02:42 +0000)]
on selection of item from catalogue, store whole MARC record

For the moment, I'm storing the MARC in a syrup:marc Metadata
record. The format is not standard yet: I'm writing it out as a JSON
assoc-array.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@257 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoon visit to restricted URL, show login form and redirect to destination afterward.
gfawcett [Fri, 3 Apr 2009 23:44:28 +0000 (23:44 +0000)]
on visit to restricted URL, show login form and redirect to destination afterward.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@254 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoon SIP checkout, display outcome prettily (with drill-down to SIP fields if desired)
gfawcett [Fri, 3 Apr 2009 23:30:33 +0000 (23:30 +0000)]
on SIP checkout, display outcome prettily (with drill-down to SIP fields if desired)

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@253 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agougly-but-functional SIP patron-check, item-status-check and item checkout.
gfawcett [Fri, 3 Apr 2009 02:45:30 +0000 (02:45 +0000)]
ugly-but-functional SIP patron-check, item-status-check and item checkout.

Needs some configuring at the bottom of settings.py to get the SIP to
work.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@252 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoremoved test file.
gfawcett [Fri, 3 Apr 2009 01:31:49 +0000 (01:31 +0000)]
removed test file.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@251 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofirst actual SIP integration
gfawcett [Fri, 3 Apr 2009 01:31:41 +0000 (01:31 +0000)]
first actual SIP integration

Doing patron and item-info lookups through SIP. checkout is next. woohoo!

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@250 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomoved SIP client into conifer.libsystems.sip
gfawcett [Fri, 3 Apr 2009 01:31:34 +0000 (01:31 +0000)]
moved SIP client into conifer.libsystems.sip

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@249 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agohide tab-bar admin-options from non-administrators
gfawcett [Fri, 3 Apr 2009 01:31:27 +0000 (01:31 +0000)]
hide tab-bar admin-options from non-administrators

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@248 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoa few tweaks to the patron-item mockup
gfawcett [Fri, 3 Apr 2009 01:31:14 +0000 (01:31 +0000)]
a few tweaks to the patron-item mockup

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@247 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofleshed out mockup of patron item-checkout screen.
gfawcett [Fri, 3 Apr 2009 01:31:06 +0000 (01:31 +0000)]
fleshed out mockup of patron item-checkout screen.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@246 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded mockup for Physical Item Processing admin-screen
gfawcett [Fri, 3 Apr 2009 01:30:56 +0000 (01:30 +0000)]
added mockup for Physical Item Processing admin-screen

Including a simple form for patron-item checkout.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@245 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agosearch-box now handles barcode and short-number searches.
gfawcett [Fri, 3 Apr 2009 01:30:52 +0000 (01:30 +0000)]
search-box now handles barcode and short-number searches.

Well, sort of. I'm using Item ID for 'short-number' right now, and
that's not quite correct. Barcode searches are correct, though.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@244 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@243 6d9bc8c9-1ec2-4278...
artunit [Thu, 2 Apr 2009 04:15:47 +0000 (04:15 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@243 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@242 6d9bc8c9-1ec2-4278...
artunit [Thu, 2 Apr 2009 01:34:25 +0000 (01:34 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@242 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agorequire 'linger' over menublock openers before triggering.
gfawcett [Thu, 26 Mar 2009 15:58:26 +0000 (15:58 +0000)]
require 'linger' over menublock openers before triggering.

These are the little gray arrows beside the item-names that trigger
the 'about/edit' menus to pop up. Previously, if you sailed your mouse
over one of them while moving across the screen, they would pop
open. Aggravating. Now a moment of linger-time (currently 200ms) over
the arrows is needed to trigger the menu. Much nicer.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@230 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofixed typo that crept into css; other minor adjustments.
gfawcett [Thu, 26 Mar 2009 02:46:06 +0000 (02:46 +0000)]
fixed typo that crept into css; other minor adjustments.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@229 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agocleanup of item-metadata interface ('about' links)
gfawcett [Thu, 26 Mar 2009 02:26:35 +0000 (02:26 +0000)]
cleanup of item-metadata interface ('about' links)

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@228 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agougly hack to keep item menublock together (with nbsp's)
gfawcett [Thu, 26 Mar 2009 01:54:00 +0000 (01:54 +0000)]
ugly hack to keep item menublock together (with nbsp's)

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@227 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomore visual tweaks. It's looking pretty good IMHO.
gfawcett [Thu, 26 Mar 2009 01:36:13 +0000 (01:36 +0000)]
more visual tweaks. It's looking pretty good IMHO.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@226 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobetter relocate interface (tree of folders, rather than a wrong-sorted SELECT)
gfawcett [Thu, 26 Mar 2009 01:01:24 +0000 (01:01 +0000)]
better relocate interface (tree of folders, rather than a wrong-sorted SELECT)

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@225 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofixed jquery-expression error.
gfawcett [Thu, 26 Mar 2009 01:01:21 +0000 (01:01 +0000)]
fixed jquery-expression error.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@224 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomore tiny visual tweaks...
gfawcett [Thu, 26 Mar 2009 00:26:11 +0000 (00:26 +0000)]
more tiny visual tweaks...

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@223 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofixed bug in urls (a typo had crept in)
gfawcett [Thu, 26 Mar 2009 00:26:08 +0000 (00:26 +0000)]
fixed bug in urls (a typo had crept in)

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@222 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomore visual touch-ups
gfawcett [Thu, 26 Mar 2009 00:26:05 +0000 (00:26 +0000)]
more visual touch-ups

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@221 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoimproved visual appearance of Resequence Items interface.
gfawcett [Thu, 26 Mar 2009 00:26:02 +0000 (00:26 +0000)]
improved visual appearance of Resequence Items interface.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@220 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoturned on 'show full tree' mode. Maybe I will make this an option in
gfawcett [Thu, 26 Mar 2009 00:25:59 +0000 (00:25 +0000)]
turned on 'show full tree' mode. Maybe I will make this an option in
the general user interface.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@219 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agooops, forgot the item_relocate template.
gfawcett [Wed, 25 Mar 2009 03:39:04 +0000 (03:39 +0000)]
oops, forgot the item_relocate template.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@218 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoAdded action to move an item under a different heading.
gfawcett [Wed, 25 Mar 2009 03:39:01 +0000 (03:39 +0000)]
Added action to move an item under a different heading.

It avoids cycles: no headings that are parents of themselves.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@217 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded item-reordering for subheading-contents as well.
gfawcett [Wed, 25 Mar 2009 02:52:37 +0000 (02:52 +0000)]
added item-reordering for subheading-contents as well.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@216 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoUpdated to jQuery 1.3.2. Added "reorder items", you can drag items to change sequence.
gfawcett [Wed, 25 Mar 2009 02:46:34 +0000 (02:46 +0000)]
Updated to jQuery 1.3.2. Added "reorder items", you can drag items to change sequence.

Note that "reorder items" is only at toplevel, I haven't yet written
the handler for resequencing in a subheading. Also, you cannot drag
into a subheading, that was too complicated; I will give an
Edit...Relocate option for that.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@215 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agolet users edit display-name of physical items, too.
gfawcett [Tue, 24 Mar 2009 03:07:28 +0000 (03:07 +0000)]
let users edit display-name of physical items, too.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@214 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomore robust yaz_search.
gfawcett [Tue, 24 Mar 2009 02:38:47 +0000 (02:38 +0000)]
more robust yaz_search.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@213 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agohackety hack. hackish add-physical-item interface (catalogue search).
gfawcett [Tue, 24 Mar 2009 02:25:29 +0000 (02:25 +0000)]
hackety hack. hackish add-physical-item interface (catalogue search).

It's primitive. Adding a physical item entails doing a catalogue
search, and picking the desired item from the results. This pushes
parts of the MARC record into Syrup as an indicator of the wanted
item. Resolving bib ID or barcode is out of scope, most likely done in
wetware.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@212 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded search-form (@prefix-style query) to /syrup/graham_z3950_test/
gfawcett [Mon, 23 Mar 2009 01:06:10 +0000 (01:06 +0000)]
added search-form (@prefix-style query) to /syrup/graham_z3950_test/

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@211 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoZ39.50 + Evergreen demo: are items available, holdable?
gfawcett [Mon, 23 Mar 2009 01:06:07 +0000 (01:06 +0000)]
Z39.50 + Evergreen demo: are items available, holdable?

see /syrup/graham_z3950test/ . I am using Evergreen in this example,
but it could be replaced by SIP or another backend that can take a bib
ID and return availability information.

(If SIP needs a barcode, not bib ID (which I suspect it might), then
we may need another lookup function in the interface. Will investigate.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@210 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobugfix in preferences page
gfawcett [Fri, 20 Mar 2009 02:52:45 +0000 (02:52 +0000)]
bugfix in preferences page

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@209 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded user-preference, 'I want email when new items show up.' Prefs UI to change it.
gfawcett [Fri, 20 Mar 2009 02:47:08 +0000 (02:47 +0000)]
added user-preference, 'I want email when new items show up.' Prefs UI to change it.

Still no actual mechanism to send the emails though! That's to come.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@208 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agorefactored the Browse features. Marked methods proposed for deletion.
gfawcett [Fri, 20 Mar 2009 02:05:16 +0000 (02:05 +0000)]
refactored the Browse features. Marked methods proposed for deletion.

We have some cruft in views.py and urls.py. I'm proposing to cut it
unless artunit can think of a good reason to keep it. I've marked the
methods and URLs with "MARK".

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@207 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agocleanup of UserProfile model. Redefinition of active_instructors. updated Browse...
gfawcett [Fri, 20 Mar 2009 01:48:30 +0000 (01:48 +0000)]
cleanup of UserProfile model. Redefinition of active_instructors. updated Browse Instructors.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@206 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agocorrected mime-type on Atom feeds.
gfawcett [Fri, 20 Mar 2009 00:32:08 +0000 (00:32 +0000)]
corrected mime-type on Atom feeds.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@205 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoremove Language link; for now, Preferences points just to Language.
gfawcett [Fri, 20 Mar 2009 00:09:10 +0000 (00:09 +0000)]
remove Language link; for now, Preferences points just to Language.

We can fix this later when more preference options show up.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@204 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agovarious tweaks. Permissions fix; moving around some admin links.
gfawcett [Fri, 20 Mar 2009 00:01:31 +0000 (00:01 +0000)]
various tweaks. Permissions fix; moving around some admin links.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@203 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agometadata-editing on electronic documents.
gfawcett [Thu, 19 Mar 2009 23:30:59 +0000 (23:30 +0000)]
metadata-editing on electronic documents.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@202 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoprettified the metadata edit form.
gfawcett [Thu, 19 Mar 2009 23:21:17 +0000 (23:21 +0000)]
prettified the metadata edit form.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@201 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoAdd/edit extended metadata on all item forms.
gfawcett [Thu, 19 Mar 2009 02:56:07 +0000 (02:56 +0000)]
Add/edit extended metadata on all item forms.

God forgive me for the ugliness I push into views.py with this
commit. I'll clean it up once the dust settles, honest.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@200 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoAdded Metadata table for optional item attributes. Breaks old model.
gfawcett [Thu, 19 Mar 2009 02:01:03 +0000 (02:01 +0000)]
Added Metadata table for optional item attributes. Breaks old model.

Don't yet have a metadata-entry mechanism, other than the Django admin
interface.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@199 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoa couple view tweaks. Feeds won't fail when empty.
gfawcett [Thu, 19 Mar 2009 02:01:00 +0000 (02:01 +0000)]
a couple view tweaks. Feeds won't fail when empty.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@198 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoremoved extraneous admin entry point for courses and items
artunit [Tue, 17 Mar 2009 17:39:07 +0000 (17:39 +0000)]
removed extraneous admin entry point for courses and items

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@196 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agocleaned up z39.50 handling, should be much faster
artunit [Tue, 17 Mar 2009 14:58:30 +0000 (14:58 +0000)]
cleaned up z39.50 handling, should be much faster

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@195 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded links for charges/discharges
artunit [Tue, 17 Mar 2009 13:43:09 +0000 (13:43 +0000)]
added links for charges/discharges

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@194 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobrowsing z39.50 using paginator
artunit [Tue, 17 Mar 2009 13:16:45 +0000 (13:16 +0000)]
browsing z39.50 using paginator

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@193 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@192 6d9bc8c9-1ec2-4278...
artunit [Tue, 17 Mar 2009 03:33:03 +0000 (03:33 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@192 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadding some z39.50 searching support
artunit [Tue, 17 Mar 2009 03:31:19 +0000 (03:31 +0000)]
adding some z39.50 searching support

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@191 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@190 6d9bc8c9-1ec2-4278...
artunit [Mon, 16 Mar 2009 22:51:35 +0000 (22:51 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@190 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agosimple decorator add copy to work through courses and items
artunit [Mon, 16 Mar 2009 22:48:09 +0000 (22:48 +0000)]
simple decorator add copy to work through courses and items

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@189 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@174 6d9bc8c9-1ec2-4278...
artunit [Sat, 14 Mar 2009 04:43:13 +0000 (04:43 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@174 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@173 6d9bc8c9-1ec2-4278...
artunit [Fri, 13 Mar 2009 20:28:32 +0000 (20:28 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@173 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded simple course-browse screen.
gfawcett [Fri, 13 Mar 2009 16:14:50 +0000 (16:14 +0000)]
added simple course-browse screen.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@172 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofixed http-host in feed urls.
gfawcett [Fri, 13 Mar 2009 02:24:15 +0000 (02:24 +0000)]
fixed http-host in feed urls.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@171 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoupdated README. Particularly updated the installation-requirements.
gfawcett [Fri, 13 Mar 2009 02:14:54 +0000 (02:14 +0000)]
updated README. Particularly updated the installation-requirements.

Hopefully someone wants to kick the tires soon. Our installation
instructions needed a bit of freshening up.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@170 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agomade PyZ3950 optional.
gfawcett [Fri, 13 Mar 2009 02:06:18 +0000 (02:06 +0000)]
made PyZ3950 optional.

It was hard to install, and we definitely don't have a good dependency
story for our beta testers, so just optionalize it for now. The only
thing that won't work for the moment is our Z39.50 test code;
everything else is good to go.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@169 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoFeeds! Atom feeds for course-site items.
gfawcett [Fri, 13 Mar 2009 01:57:31 +0000 (01:57 +0000)]
Feeds! Atom feeds for course-site items.

Some notes:

* all feeds are Atom; comments on my Atom details are welcome.

* several different feeds per course site. E.g., just top-level items;
  recently-changed items; a walk of all items in the site directory
  tree; many others possible.

* by design, the feeds themselves are anonymous-access. I don't see a
  real security risk here, but if exposing titles and modification
  dates violates some policy, we can change it.

* all links in the feeds refer back to the Reserves system, so they
  can be authenticated if necessary. This is also true for "URL items"
  -- the Atom link is back to the canonical item-URL in Reserves,
  which redirects to the target URL (if you're allowed to know it).

* Django has its own feed system. I tried it, and then chose not to
  use it. Genshi does a fine job, and IMHO Django makes it harder to
  offer multiple feed-variants on individual items like Courses. It
  looks good for simpler feed-needs though, and has the benefit of
  supporting both Atom and RSS. (Not that we couldn't do that with
  Genshi too.)

There's room for more feed types: "My Courses", "Things in My
Courses", "canned search", etc. Ideas are most welcome.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@168 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agominor i18n fix: cannot gettext-wrap unicode literals, e.g. _(u'foo')
gfawcett [Thu, 12 Mar 2009 22:44:40 +0000 (22:44 +0000)]
minor i18n fix: cannot gettext-wrap unicode literals, e.g. _(u'foo')

Not sure if this is Babel, gettext, or something else. Anyway, it's fixed.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@167 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoi18n/l10n updates. Added "pick my language" screen. l10n actually works now.
gfawcett [Wed, 11 Mar 2009 02:31:31 +0000 (02:31 +0000)]
i18n/l10n updates. Added "pick my language" screen. l10n actually works now.

Looks like I had made a bunch of small errors when trying to get
BabelDjango working with our app (and with Genshi). It's all good now,
I think. I've translated two (count 'em! two!) items into French and
verified that they display properly.`

Get translatin'!

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@166 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agotweaks and documentation.
gfawcett [Tue, 10 Mar 2009 02:56:48 +0000 (02:56 +0000)]
tweaks and documentation.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@165 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoAdded access-controls to admin-option editing; general cleanup of views.py.
gfawcett [Tue, 10 Mar 2009 02:44:47 +0000 (02:44 +0000)]
Added access-controls to admin-option editing; general cleanup of views.py.

Admin-option editing was public; that's changed, you must now be an
'admin' which for now means you are Django's 'user.is_staff'.

I reorganized views.py into more-logical sections, and think we are
going to split it up into multiple views/* files.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@164 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoGraham's PyZ3950 dependency hack
gfawcett [Tue, 10 Mar 2009 00:38:42 +0000 (00:38 +0000)]
Graham's PyZ3950 dependency hack

So I can try out Art's demo code. Will work out the real dependency
problem later.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@163 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agofixed bugs in add/drop sections; was leaving broken section identifiers behind.
gfawcett [Mon, 9 Mar 2009 23:49:36 +0000 (23:49 +0000)]
fixed bugs in add/drop sections; was leaving broken section identifiers behind.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@162 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded some test data for Art.
gfawcett [Mon, 9 Mar 2009 23:49:30 +0000 (23:49 +0000)]
added some test data for Art.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@161 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded @members_only decorator; templated the 403 responses.
gfawcett [Mon, 9 Mar 2009 23:49:27 +0000 (23:49 +0000)]
added @members_only decorator; templated the 403 responses.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@160 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoconstrain Member class: (course,user) must be unique.
gfawcett [Mon, 9 Mar 2009 23:49:24 +0000 (23:49 +0000)]
constrain Member class: (course,user) must be unique.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@159 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@158 6d9bc8c9-1ec2-4278...
artunit [Mon, 9 Mar 2009 23:13:55 +0000 (23:13 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@158 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agopreliminary support for course-sections (from an external data source).
gfawcett [Mon, 9 Mar 2009 02:05:26 +0000 (02:05 +0000)]
preliminary support for course-sections (from an external data source).

See conifer/custom/course_sections.py for the course-section
interface. It's primarily used in the edit-course-permissions handler;
it needs more testing, but appears pretty decent so far.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@157 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agominor UI tweak when changing invitation-code.
gfawcett [Mon, 9 Mar 2009 02:05:21 +0000 (02:05 +0000)]
minor UI tweak when changing invitation-code.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@156 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoa slightly better default welcome-page design.
gfawcett [Mon, 9 Mar 2009 02:05:18 +0000 (02:05 +0000)]
a slightly better default welcome-page design.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@155 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agostyle and heading-level changes. Add-new-course now requires an extra perm.
gfawcett [Sun, 8 Mar 2009 20:25:24 +0000 (20:25 +0000)]
style and heading-level changes. Add-new-course now requires an extra perm.

I'm not sure how in practice we will give add-course permissions to
instructors. How do we know which ones are the instructors?

I think our backend for user-information is going to have to grow an
(optional) is_user_an_instructor() test. We can also add an
Instructors group in Django which will give the required permission.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@154 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agorenamed add_new_course* files to edit_course*
gfawcett [Sun, 8 Mar 2009 20:06:26 +0000 (20:06 +0000)]
renamed add_new_course* files to edit_course*

they were really add/edit forms after all.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@153 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobugfix: title-lookup error when changing course-code during course-edit.
gfawcett [Sun, 8 Mar 2009 20:01:46 +0000 (20:01 +0000)]
bugfix: title-lookup error when changing course-code during course-edit.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@152 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agobetter handling for not-defined items in Genshi
gfawcett [Sun, 8 Mar 2009 20:01:43 +0000 (20:01 +0000)]
better handling for not-defined items in Genshi

In days of yore, Genshi had special handling for references to
undefined variables. They were basically treated as null/empty values;
they would evaluate as False in tests; and they would display as
''. That changed out from underneath me, somewhere along the Genshi
path. The modern way is to use a test, "defined('foo')" before
attempting to access 'foo'.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@151 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded "instructors_only" decorator to control access to sensitive URLs
gfawcett [Sun, 8 Mar 2009 20:01:40 +0000 (20:01 +0000)]
added "instructors_only" decorator to control access to sensitive URLs

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@150 6d9bc8c9-1ec2-4278-b937-99fde70a366f

15 years agoadded course-site deletion (insecure)
gfawcett [Sun, 8 Mar 2009 19:28:49 +0000 (19:28 +0000)]
added course-site deletion (insecure)

Haven't done the access control bit yet.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@149 6d9bc8c9-1ec2-4278-b937-99fde70a366f