! This file contains X-resources, and can be used as a template for ! customizing willow for an individual user or an entire site. Lines ! that begin with a '!' are just comments and have no effect. No ! resources are actually set in this file (unless you modify it) since ! the fallback resources for all resources are usable. Append any ! resources you would like to set to your .Xdefaults file. ! BASIC RESOURCES ! !Willow*size: default ! Willow can be run at four standard sizes: small, medium, large, and ! extra-large. The "size" resource has six legal values: default, small, ! medium, large, extra-large, and custom. The value "default" is of ! course the default. With this value Willow will configure itself to ! be large if your screen is at least 1000x700, otherwise it will be ! small. If you prefer to always run at one of the other sizes uncomment ! the above line, and put in the name of the size you want. The ! value "custom" is discussed in the ADVANCED section below. !Willow*printCommand: lpr ! This is the unix command string that Willow will use to print results. ! The default is lpr. If the value is "none", then printing is disabled. ! Users of the UW campus willow servers may find it useful to set ! this resource to "prt -queue " followed by the name of the most ! convenient printer on the prt system. !Willow*defaultVirtualBindings:\ !osfBackSpace : Delete\n\ !osfDelete : BackSpace\n\ !osfLeft : Left\n\ !osfUp : Up\n\ !osfRight : Right\n\ !osfDown : Down\n\ !osfPageUp : Prior\n\ !osfPageDown : Next\n\ !osfCancel : Escape\n\ ! Certain systems, such as a Macintosh using MacX and some PC ! software combinations do not recognize the backspace key designated ! for a unix keyboard. These are the keyboards bindings that should ! enable the "delete" (backspace) key on those systems. Note that if ! you set any of the key-bindings you must set *all* of them. If you do ! not have PageUp and PageDown keys on your keyboard, you might want ! to change the Prior" and "Next" to "F11" and ! "Key" (or any other keys you want to use for this purpose). ! Willow's color scheme is controlled by a group of resources as ! follows. Uncomment and replace any of the color values you wish to ! change. The program xrainbow is useful for previewing the available ! colors on your system. !Willow*defaultBackground : SkyBlue1 ! This is the background color of everything that is not otherwise ! specified. !Willow*defaultForeground : black ! This is the foreground color of everything that is not otherwise ! specified. !Willow*menuBarBackground : SkyBlue1 ! Background color of the Search window's menu bar. !Willow*menuBarForeground : black ! Foreground color of the Search window's menu bar. !Willow*textBackground : SlateGray1 ! Background color of all text display and entry areas. !Willow*textForeground : black ! Foreground color of all text display and entry areas. !Willow*imageBackground : white ! Background color of all image areas (just the "About" box and the ! spinning globe dialog box) !Willow*imageForeground : black ! Foreground color of all image areas. !Willow*buttonBackground : SkyBlue1 ! Background color of all push-buttons. !Willow*buttonForeground : Black ! Foreground color of all push-buttons. !Willow*fieldButtonBackground : SkyBlue1 ! Background color of field-labels, and corresponding date-range ! buttons (if any). !Willow*fieldButtonForeground : Black ! Foreground color of field-labels, and corresponding date-range ! buttons (if any). !Willow*checkMarkBackground : red ! Color of selected "check-boxes" (limit fields on Search window, and ! currently selected database in Databases menu). ! Here is an alternate color scheme for grey-scale displays. !Willow*defaultBackground : grey90 !Willow*defaultForeground : black !Willow*menuBarBackground : grey80 !Willow*menuBarForeground : black !Willow*textBackground : white !Willow*textForeground : black !Willow*imageBackground : white !Willow*imageForeground : black !Willow*buttonBackground : grey90 !Willow*buttonForeground : black !Willow*fieldButtonBackground : grey90 !Willow*fieldButtonForeground : black !Willow*checkMarkBackground : grey20 !Willow*reverseVideo: False ! If you are running Willow on a monochrome display, and you would ! prefer a white on black display rather than the standard black on ! white, set the this resource to True. It has no effect if ! you are on a color display !Willow*saveType: local ! This is the type of save that Willow will try to do by default. Legal ! values are local (save to your account on the machine that Willow is ! running on), email (save via electronic mail), and ftp(network save ! via the FTP program). The default is local, unless you are running off ! a non-local server, in which case it is email. !Willow*mailAddress: ! This is the e-mail address that Willow will use if the save type is ! email. By default there is no value. !Willow*mailSubject: Willow Search Results ! This is the Subject line that Willow use for results saved via e-mail. !Willow*ftpHost: ! This is the machine that Willow will use for ftp saves. By default ! there is no value. !Willow*ftpUserID: ! This is the user id that Willow will use for ftp saves. By default ! there is no value. !Willow*ftpAppend: True ! When Willow saves search results via ftp, and the specified file ! name already exists on the destination machine, should it append ! to the file, or overwrite it? !willow*resultsHeader: none ! If this resource is set to "brief", Willow will prepend the ! database name and a timestamp to your saved/printed search ! results. If the value is "full" the search strategy that generated ! the results will also be included. The default is "none" -- nothing ! will be prepended. This option can be set interactively too, via ! the Options menu (under Record Format). !Willow*abbreviatedFields: False ! This controls whether Willow retrieves summary and full records ! with fully expanded field names or two-letter abbreviations ! displayed. You can also set this on the fly via the Options menu. ! Probably the only use for abbreviated fields is for downloading ! results into your own personal database (such as Reference ! Manager). !Willow*animationDelay : 200 ! How many milliseconds Willow waits between each frame of animation ! (i.e. the spinning globe). If it is set to 0, animation is turned off. !Willow*useDatabasePulldown: False ! Starting with Willow 2.5, there is an interactive, outline-based ! dialog for selecting databases (only available if Willow is built ! with Motif version 2.0). If you do not like the new database ! chooser, you can force Willow to use the old-style Databases ! pulldown menu by setting this resource to True. !Willow*defaultDatabaseChoice: ! If you are using the database chooser, you can use this resource to ! make it open up with a particular database pre-selected. Use the ! db_tag database abbreviation which is displayed at the bottom of ! the "About Current Database" pop-up. For example, if you want the ! UW Libraries catalog pre-selected, you would set: ! Willow*defaultDatabaseChoice: UW-LCAT !Willow*confirmWebChange: True ! If Willow is launched from a Web page, and there is already a ! Willow running on your screen, the already running Willow will ask ! you if prefer to do a database change, or actually start a second ! Willow session. If you set this resource to False, the first Willow ! will automatically do the change without asking you to confirm it. ! ADVANCED RESOURCES !Willow*XmText.translations: #override\n\ ! MetaosfDelete: kill-previous-word()\n\ ! AltosfDelete: kill-previous-word()\n\ ! CtrlD: delete-next-character() \n\ ! MetaD: kill-next-word() \n\ ! AltD: kill-next-word() \n\ ! CtrlK: kill-to-end-of-line() \n\ ! CtrlU: kill-to-start-of-line() kill-to-end-of-line() \n\ ! CtrlW: kill-selection() \n\ ! CtrlY: unkill() \n\ ! CtrlF: forward-character() \n\ ! CtrlB: backward-character() \n\ ! CtrlA: beginning-of-line() \n\ ! CtrlE: end-of-line() \n\ ! MetaF: forward-word() \n\ ! AltF: forward-word() \n\ ! MetaB: backward-word() \n\ ! AltB: backward-word() \n !Willow*XmTextField.translations: #override\n\ ! MetaosfDelete: delete-previous-word()\n\ ! AltosfDelete: delete-previous-word()\n\ ! CtrlD: delete-next-character() \n\ ! MetaD: delete-next-word() \n\ ! AltD: delete-next-word() \n\ ! CtrlK: delete-to-end-of-line() \n\ ! CtrlU: delete-to-start-of-line() delete-to-end-of-line() \n\ ! CtrlW: delete-selection() \n\ ! CtrlF: forward-character() \n\ ! CtrlB: backward-character() \n\ ! CtrlA: beginning-of-line() \n\ ! CtrlE: end-of-line() \n\ ! MetaF: forward-word() \n\ ! AltF: forward-word() \n\ ! MetaB: backward-word() \n\ ! AltB: backward-word() \n ! These two resources define the keyboard shortcuts that are ! available for editing text in any of Willow's type-in areas. The ! default setup, shown above, is modeled after the standard bindings ! for the emacs text editor. See the Open Software Foundation's Motif ! documentation for information on the available action procedures ! (the section on XmText and XmTextField). ! ! Note that in Motif 2.0, XmTextField widgets are used instead of ! XmText in most pop-up dialogs. And note that the ctrl-y unkill ! function is not available in XmTextFields. We have asked OSF to ! extend the functionality of the XmTextField to make it more ! compatible with XmText, but for now, ctrl-y is not available in ! most pop-up dialogs. ! Fonts are controlled by four resources: textFont is the font used ! in all text display and entry areas; buttonFont is used on all ! pushbuttons; defaultLightFont is used for non-categories in the ! database chooser; and defaultFont is used everywhere else. The ! default values for these resources depend on what size you are ! running at. Following are the default values for the three ! resources at large size. ! !Willow*textFont: -adobe-courier-medium-r*140-75* !Willow*buttonFont: -adobe-helvetica-bold-r*140-75* !Willow*defaultFont: -adobe-helvetica-bold-r*140-75* !Willow*defaultLightFont: -adobe-helvetica-medium-r*140-75* ! Note that Willow purposely defaults to using 75dpi fonts. This ! guarantees a correct screen layout. Please be very careful about ! changing these font resources. If you have a 100dpi screen, you are ! better off running Willow in extra-large mode than switching to ! 100dpi fonts. !Willow*noBasicMode: False ! If this resource is set to True, Willow will never go into Basic ! Searching mode by itself. However the "Go To Basic Searching" ! button will still be available for appropriate databases. !Willow*printDialog: True ! If this resource is set to False, Willow will not pop up the ! "Printing..." dialog box after you press the "Print" button. This ! can be useful if you have set Willow*printCommand to be an X ! program with its own interface that pops up. !Willow*echo: False ! If this resource is set to True, all interactions with the database ! host are echoed to stderr. !Willow*size: custom ! Setting the value of the size resource to custom requires that you set ! several other resources as well. Following is an example. ! ! You need to set positions for each of the four main program ! windows, plus dimensions for the Search window. The other windows ! calculate their own dimensions based on lines of text. !Search Window !Willow*Search.geometry: 580x365+0+1 !Summary Window !Willow*Summaries.geometry: +0-0 !Willow*summary_titles.rows: 16 !Willow*summary_summaries.rows: 12 !List Browser Window !Willow*List Browser.geometry: +130+380 !Willow*browse_text.rows: 20 !Record Retrieval Window !Willow*Full-Record.geometry: -0+1 !Willow*record_text.rows: 40 !Help Window. Size depends on help bitmaps. !Willow*HelpShell.geometry: +70+70 ! The database picker also needs a few resources set. !Height of database-outline portion. !Willow*pick_notebook.height: 400 !Rows of text in bottom database information section. !Willow*pick_info.rows: 12 !Columns of text in bottom database information section. This one is !a bit tricky, because we do not generally use a monospace font here. !Willow*pick_info.columns: 60 ! ! Next, you need to set the following resources which control how closely ! spaced the various user-interface components are. ! !Willow*XmForm*verticalSpacing: 4 !Willow*XmForm*horizontalSpacing: 5 ! Vertical and horizontal pixel spacing between items in the four ! main Willow windows. ! !Willow*XmDialogShell*XmForm*verticalSpacing: 8 !Willow*XmDialogShell*XmForm*horizontalSpacing: 5 ! Vertical and horizontal pixel spacing between items in all Willow ! pop-up dialog boxes. ! !Willow*Search*search_box*XmRowColumn.topOffset: 7 ! Vertical pixel spacing between the field-labels on the Search window. ! ! Finally, you need to make sure that all four of the font resources ! discussed above are explicitly set. !Willow*customFields: ! This resource is used for pre-setting which fields you would like ! to appear in your retrieved full-records for the available ! databases. Note that currently only the "uwbrs" driver supports ! custom fields, so this resource will not be usable for Z39.50 ! databases. ! ! The value of the resource consists of individual lines containing a ! database identifier, colon, then a comma separated list of field ! abbreviations. The following example would cause full records ! retrieved in UW Medline to contain only Abstract, Title, and ! Author, and full records in UW Books In Print to contain only ! Title, Author, and ISBN -- ! Willow*customFields:\ ! UW-MDL1:AB,TI,AU\n\ ! UW-BINP:TI,AU,IB ! ! The database identifier can be found for the current database by ! looking under "About this database" in Willow's File menu, and the ! field name abbreviations can be found by setting Abbreviated Fields ! in the Options menu Record Retrieval dialog, then retrieving a ! full-record. ! ! For technical reasons, the "Status" field in databases that display ! UW Libraries circulation information must be represented by the ! two characters $S. ! ! Note that you can actually use a db_group instead of an individual ! database's tag. See doc/Customization for more information on the ! db_group tag. !Willow*userInfo: ! This resource can be used to pre-set answers to questions from the ! database, most often user-id and/or password for databases that ! require a manual login. The value of the resource consists of ! individual lines containing a database identifier, colon, question ! identifier, colon, and the value. For example, suppose you have two ! databases in your Database menu which require a user-id and ! password, and the databases are identified by "DB-1" and ! "DB-2". You could set the resource as follows -- ! Willow*userInfo:\ ! DB-1:UserID:MyName\n\ ! DB-1:Password:MyPassword\n\ ! DB-2:UserID:MyName\n\ ! DB-2:Password:MyPassword ! The values to use for the database identifier and the question ! identifier are displayed in the dialog box title when Willow asks ! you the question. Note that it might not be a good idea to put real ! passwords into your .Xdefaults file. ! ! Note that you can actually use a db_group instead of an individual ! database's tag. See doc/Customization for more information on the ! db_group tag.