Using the Genie Orders Module as a Wish List

by Jonathan Jacobsen Wednesday, February 24, 2010 3:22 PM

The Genie Orders module can be used not only for tracking materials ordered, including books, journal subscriptions and standing orders, but as a wish list – a database of materials you are thinking of ordering, or that have been requested by your users.

To use the Orders Module as a wish list, we recommend editing the Order Types listed in the MyGenie.config file to add a wish list entry.

e.g. <Type>Wish List</Type>

When entering order records, select this order type and optionally use the Requestor field to record who wished for the item. You will not likely want to create a Catalog record for these Order records just yet – not until you actually order them.

You may wish to edit the Orders Search screen to be able to search for items on the wish list. To do so, open MyQueries.config and find the "orders_search" search screen. The simplest way to add a new field is to copy en existing one and change the field name to OrdType.

e.g.

<QueryField Type="QueryField" CssClass="SearchTextInput" LabelCssClass="SearchLabel" ShowBrowse="true" ShowBoolean="true" FieldList="OrdType"/>

This will allow you to find all items on the wish list. When enough have accumulated, you might select them from the search results and email the list to staff for a vote in which ones to actually order.

Replace MS Word special characters in javascript and C#

by Peter Tyrrell Wednesday, February 24, 2010 3:18 PM

MS Word uses characters from the Windows-1252 character encoding set which are not represented in ASCII or ISO-8859-1. This is often a pain in the butt. Special characters include:

  • the… ellipsis
  • ‘smart’ “quotes”
  • en – dash and em — dash
  • dagger † and double dagger ‡
  • and more, but these are most common.

If you want to replace them with ASCII cognates, here's a function to do that. (Daggers don't have cognates as far as I know.)

Javascript

/// Replaces commonly-used Windows 1252 encoded chars that do not exist in ASCII or ISO-8859-1 with ISO-8859-1 cognates.
var replaceWordChars = function(text) {
    var s = text;
    // smart single quotes and apostrophe
    s = s.replace(/[\u2018\u2019\u201A]/g, "\'");
    // smart double quotes
    s = s.replace(/[\u201C\u201D\u201E]/g, "\"");
    // ellipsis
    s = s.replace(/\u2026/g, "...");
    // dashes
    s = s.replace(/[\u2013\u2014]/g, "-");
    // circumflex
    s = s.replace(/\u02C6/g, "^");
    // open angle bracket
    s = s.replace(/\u2039/g, "<");
    // close angle bracket
    s = s.replace(/\u203A/g, ">");
    // spaces
    s = s.replace(/[\u02DC\u00A0]/g, " ");
    
    return s;
}

C# extension method

public static string ReplaceWordChars(this string text)
        {
            var s = text;
            // smart single quotes and apostrophe
            s = Regex.Replace(s, "[\u2018\u2019\u201A]", "'");
            // smart double quotes
            s = Regex.Replace(s, "[\u201C\u201D\u201E]", "\"");
            // ellipsis
            s = Regex.Replace(s, "\u2026", "...");
            // dashes
            s = Regex.Replace(s, "[\u2013\u2014]", "-");
            // circumflex
            s = Regex.Replace(s, "\u02C6", "^");
            // open angle bracket
            s = Regex.Replace(s, "\u2039", "<");
            // close angle bracket
            s = Regex.Replace(s, "\u203A", ">");
            // spaces
            s = Regex.Replace(s, "[\u02DC\u00A0]", " ");
            
            return s;
        }

Andornot Newsletter – February 2010

by Kathy Bryce Tuesday, February 23, 2010 10:23 AM

Please check out the latest issue of our newsletter.

Contents:

Latest Andornot News

  • City of Burnaby launches Charting Change: An Interactive Atlas of Burnaby's Heritage
  • Law Society of Saskatchewan Launches Genie
  • Andornot Switches Website to Umbraco CMS
  • Andornot On the Road
    • Meet us in Calgary March 23rd to 25th
    • See us at a Conference

Inmagic Updates

Latest Posts from Our Developers' Blog

Tips and Tricks

  • Cleaning Up Validation Lists

Cool Tools

  • Artisteer

Please contact us for further information or to be added to our newsletter list.

Using the Genie InfoCart to Edit Catalog Records

by Jonathan Jacobsen Monday, February 22, 2010 11:40 AM

The Catalog InfoCart feature in Genie is a handy way of collecting records that you want to edit. As you search through the Catalog, you can click the Add to Cart link without interrupting your searching. When you have assembled a collection of records to edit, you can view the InfoCart, and by making the small change described below, click an Edit link within the InfoCart display to edit each record. The Prev and Next links on the Catalog edit screen will take you through the records in your collection, without having to either return to the InfoCart or search for the records again. This is a great workflow improvement.

To enable the Edit link in the InfoCart, open the MyReports.config file in a text editor and find the "InfoCartBrief" report. If you haven’t made any other changes, the final 2 lines of the report definition will look like this:

<Field Header="&lt;br/&gt;&lt;br/&gt;">%%CartRemove</Field>

<Field Display="&lt;br/&gt;&lt;br/&gt;">%%Label</Field>

which displays the Remove from Cart link.

If you change the above 2 lines to these:

<Field Header="&lt;br/&gt;&lt;br/&gt;">%%EditButton</Field>

<Field>%%VerticalBar</Field>

<Field>%%CartRemove</Field>

<Field Display="&lt;br/&gt;&lt;br/&gt;">%%Label</Field>

the InfoCart will display an Edit link and the Remove from Cart link, separated by a |.

After saving the config file, be sure to reload it by selecting the About Genie link in the Genie menu and clicking Reset.

ClamAV on Windows 2008 x64 update

by Peter Tyrrell Friday, February 19, 2010 10:19 AM

Further to my previous post which describes how to install and run ClamAV as a service on Windows, here is extra info on what is required for Windows Server 2008 x64, discovered the hard way, through trial and error, by the persistent IT brains at SET-BC (Special Education Technology British Columbia). Particular thanks to IT Manager Gordon Eddy.

Configuring ClamD and FreshClam services

No special configuration is needed for the services. Clam and FreshClam both run fine under Local System, with automatic start and defaults for other service settings. The service account needs read/write access to C:\ClamAV, which it would have by default if Local System is used.

Starting the services

If the ClamD service is started from the services UI and there is no database, or the database is no good, it will fail silently. This could lead one off on a long goose chase looking at service accounts, permissions, service settings, etc. trying to figure out why the service won’t run, when in fact all you need is to run FreshClam once to get a good database, and then ClamD will run fine.

Run FreshClam immediately after installing ClamAV, before trying to run the ClamD service the first time. If FreshClam reports corruption or other problems with the existing database files, delete everything in ..\data and run FreshClam again.

There is no useful error info returned when trying to start ClamD from the services UI. On the other hand, starting it from a command prompt using "NET START CLAMD" does return a bit of useful info. Executing it directly as "clamd.exe --daemon" also returns some (different) info.

Registry setting required

There is a registry file in the ..\docs folder called clamav.reg that contains some path information. The docs seem to be saying that this is not necessary unless you are running Clam from somewhere other than the default location. We found this is not true. Even if installed to C:\ClamAV, Clam will not run without this info in the registry.

TCPAddr setting required

In clamd.config, the comments suggest that the TCPAddr setting is optional. It is not. Set it to the address at which ClamD should respond. If this is missing, the Clamd service will run, but will not respond to requests.

Month List