Syrup.git
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

15 years agobetter edit-course-permissions screen, separated from edit-course-details.
gfawcett [Sun, 8 Mar 2009 19:08:31 +0000 (19:08 +0000)]
better edit-course-permissions screen, separated from edit-course-details.

Still no support for course-sections; coming soon.

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

15 years agojoining course by invitation code; vestigial edit-course-permissions screen.
gfawcett [Sun, 8 Mar 2009 17:11:14 +0000 (17:11 +0000)]
joining course by invitation code; vestigial edit-course-permissions screen.

I want to rework the course-permissions screen though, I don't like
that permissions are spread across two pages.

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

15 years agoimproved display of courses without course codes.
gfawcett [Sun, 8 Mar 2009 01:57:06 +0000 (01:57 +0000)]
improved display of courses without course codes.

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

15 years agoUI support for editing course details
gfawcett [Sun, 8 Mar 2009 01:49:33 +0000 (01:49 +0000)]
UI support for editing course details

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

15 years agoimproved display of courses without course codes.
gfawcett [Sun, 8 Mar 2009 01:49:15 +0000 (01:49 +0000)]
improved display of courses without course codes.

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

15 years agomore work on new-course; changes to Course model; various bugfixes.
gfawcett [Sun, 8 Mar 2009 01:48:58 +0000 (01:48 +0000)]
more work on new-course; changes to Course model; various bugfixes.

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

15 years agoexternal course-lookup; continuing work on new-course-site creation.
gfawcett [Sun, 8 Mar 2009 01:48:42 +0000 (01:48 +0000)]
external course-lookup; continuing work on new-course-site creation.

custom/course_codes.py generalizes the validation of course-codes and
lookup (in an external system) of information related to course-codes.

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

15 years agovestigal add-new-course interface.
gfawcett [Wed, 4 Mar 2009 03:17:42 +0000 (03:17 +0000)]
vestigal add-new-course interface.

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

15 years agofixed over-specialization bug in generics.py.
gfawcett [Wed, 4 Mar 2009 02:08:42 +0000 (02:08 +0000)]
fixed over-specialization bug in generics.py.

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

15 years agoi18n review -- tagged all the English literals, rebuilt POT
gfawcett [Wed, 4 Mar 2009 01:33:53 +0000 (01:33 +0000)]
i18n review -- tagged all the English literals, rebuilt POT

There are a couple oddballs that I'm not sure how to handle. For
exmaple, how does one internationalize an HTML literal like "This is a
subproject of <a href="...">Project Conifer</a>."? I don't see
anything in Babel that has the right kind of smarts for this. Must ask
an i18n guru.

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

15 years agoadded news-item admin tool
gfawcett [Wed, 4 Mar 2009 01:33:21 +0000 (01:33 +0000)]
added news-item admin tool

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

15 years agoAdmin options for editing terms, deparments: generic indexes and forms.
gfawcett [Mon, 2 Mar 2009 04:09:18 +0000 (04:09 +0000)]
Admin options for editing terms, deparments: generic indexes and forms.

The big change in this rev is introduction of the Django 'newforms'
system. Since we're using Genshi (not Django templating), newforms
seemed a bad fit. But I think I've got a fairly nice compromise
between Django and Genshi going on in my generics.py.

See the ModelForm subclasses in views.py: the Index attribute is
novel, and specific to the generics.py system.

There is still more to do here, notably figuring out how to handle
permissions and i18n.

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

15 years agogeneric make-a-user from backend data source
gfawcett [Sun, 1 Mar 2009 21:18:50 +0000 (21:18 +0000)]
generic make-a-user from backend data source

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

15 years agoadded Markdown/HTML support for news items
gfawcett [Sun, 1 Mar 2009 21:18:17 +0000 (21:18 +0000)]
added Markdown/HTML support for news items

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

15 years agoheh, EG auth backend must support usernames other than 'admin'
gfawcett [Sun, 1 Mar 2009 19:21:43 +0000 (19:21 +0000)]
heh, EG auth backend must support usernames other than 'admin'

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

15 years agoadded Django authentication-backend
gfawcett [Sun, 1 Mar 2009 03:29:48 +0000 (03:29 +0000)]
added Django authentication-backend

It authenticates users against an Evergreen server via XMLRPC (for
simplicity: XMLRPC requires no third-party modules). Just set the
EVERGREEN_XMLRPC_SERVER to a valid host and away you go.

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

15 years agoSIP: added ITEM_INFORMATION and ITEM_INFO_RESP messages.
gfawcett [Fri, 20 Feb 2009 20:04:55 +0000 (20:04 +0000)]
SIP: added ITEM_INFORMATION and ITEM_INFO_RESP messages.

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

15 years agobaby steps toward a Python SIP client for ereserve/ils interaction.
gfawcett [Fri, 20 Feb 2009 18:55:25 +0000 (18:55 +0000)]
baby steps toward a Python SIP client for ereserve/ils interaction.

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

15 years agorough in-app editing of course items; no longer based on Django admin ui.
gfawcett [Thu, 19 Feb 2009 02:29:35 +0000 (02:29 +0000)]
rough in-app editing of course items; no longer based on Django admin ui.

I also did some housekeeping in genshi_namespace, which was getting
cluttered: moved some URL-of-item functions into models, as methods of
the classes in question.

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

15 years agoremoved obsolete item.xhtml (merged into course.xhtml)
gfawcett [Wed, 18 Feb 2009 04:15:31 +0000 (04:15 +0000)]
removed obsolete item.xhtml (merged into course.xhtml)

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

15 years agoadded in-course search; refactored course template code
gfawcett [Wed, 18 Feb 2009 04:02:29 +0000 (04:02 +0000)]
added in-course search; refactored course template code

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

15 years agorelaxed model a bit
gfawcett [Wed, 18 Feb 2009 04:02:21 +0000 (04:02 +0000)]
relaxed model a bit

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

15 years agomostly navigation and appearance changes.
gfawcett [Sat, 14 Feb 2009 22:24:17 +0000 (22:24 +0000)]
mostly navigation and appearance changes.

- no longer showing an expanded tree of all course items; it's
  overwhelming in full sites. Only show first level elements;

- cleaned up the in-course breadcrumbs a bit;

- fixed page width to a 960px layout;

- put course-name and department information in a coloured band to
  separate from the course content.

- etc.

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

15 years agominor UI tweaks; attachment-links now open directly
gfawcett [Tue, 27 Jan 2009 02:28:30 +0000 (02:28 +0000)]
minor UI tweaks; attachment-links now open directly

(rather than having to click on the About page and then click on
'download')

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

15 years agogit-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@120 6d9bc8c9-1ec2-4278...
artunit [Mon, 26 Jan 2009 18:43:17 +0000 (18:43 +0000)]
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@120 6d9bc8c9-1ec2-4278-b937-99fde70a366f