Navigation

3/10/2015

Outlook autocomplete file (.nk2)

Have a patron getting new computer, want to move autocomplete file (thing that gives you email address after 2-3 letters) to different PC:  (Windows Windows 7 and Vista)


On your old computer:
  • Go to drive:\user\AppData\Local\Microsoft\Outlook.
  1. Right-click profile name.nk2, and then click Copy.

  2. On the computer where you want to populate the AutoComplete list:
    • Windows 7 and Windows Vista     Right-click anywhere in drive:\user\AppData\Local\Microsoft\Outlook and then click Paste to save profile name.nk2.
  3. If the Outlook user profile name is different on the computer where you are moving the .nk2 file, you must rename the file with the Outlook user profile name that is being used on the new computer, after you copy the file to the correct folder. For example, if you move Kim Akers.nk2 from the original computer with an Outlook user profile name of Kim Akers, and you copy the Kim Akers.nk2 file to the new computer, you must rename the file with the Outlook profile name that is being used on the new computer.
  4. When prompted about replacing the existing file, click Yes.
  5. Open Outlook to view the changes to the AutoComplete list.


MS Office.com


3/09/2015

Sierra client not running

If the III Sierra client does not open, this was one fix:





> One person was using Sierra this morning with no problems. He closed
> out of Sierra and then couldn't get back in. The icon shows up on the
> navigation bar but nothing happens. I've tried uninstalling and
> installing it several times, restarting the computer, cleared the
> jarcache, but nothing is working. He's on Windows 7 and nothing on his
> computer has changed since this morning.

When the icon appears in the taskbar, but the client won't load, I've had good luck with deleting this file:

%USERPROFILE%\AppData\Local\Temp\SierraDesktopApp.obj

(Where %USERPROFILE% is current user's profile directory, usually under c:\Users\)

On stations where it's become a recurring issue, I change the shortcut to point at a batch file that deletes that file first and then launches the client.

HTH,
David

--
David Jones
Library Systems Manager
University Library
Santa Clara University
500 El Camino Real
Santa Clara CA 95053-05

3/01/2015

SQL for holds in ILS

From Sierra Listserv,  post by Andrew Hollingsworth



To get the equivalent you'd need to join at least 8 views. I was working on something similar last year and will include what I had. You'll need to possibly edit it for volumes. I also left out the patron email in the query I used because our var view is just too large. You might have to include a CASE statement for the email. 





Select Distinct
  h.placed_gmt,
  h.expires_gmt,
  prfn.last_name,
  prfn.first_name,
  prfn.middle_name,
  p.record_num,
  prp.phone_number,
  b.title,
  i.call_number_norm,
  h.location_code,
  h.pickup_location_code,
  h.status
From
  sierra_view.hold h Inner Join
  sierra_view.patron_view p On h.patron_record_id = p.id Inner Join
  sierra_view.patron_record_fullname prfn On prfn.patron_record_id = p.id
  Inner Join
  sierra_view.patron_record_phone prp On prfn.patron_record_id =
    prp.patron_record_id Inner Join
  sierra_view.bib_view b On h.record_id = b.id Inner Join
  sierra_view.bib_record_item_record_link birl On b.id = birl.bib_record_id
  Inner Join
  sierra_view.item_record_property i On birl.item_record_id = i.item_record_id

2/26/2015

OPAC SQL: speed of queries

Here is a way to speed up SQL queries in Innovative Interfaces:




Here’s a version of the query that completes in about 1500 ms on our database, or about 0.017 ms per record, which, if I’m right, should shave an additional couple of seconds off for you (7650 ms):

SELECT
  rm.record_type_code || rm.record_num AS record_num,
  email.field_content AS email,
  pname.last_name || ', ' || pname.first_name || ' ' || pname.middle_name AS name,
  pr.home_library_code
FROM
  sierra_view.record_metadata rm
    JOIN sierra_view.patron_record pr
      ON rm.record_type_code = 'p' AND rm.id = pr.record_id
    JOIN sierra_view.varfield email
      ON email.varfield_type_code = 'z' AND email.record_id = pr.record_id
    JOIN sierra_view.patron_record_fullname pname
      ON pname.patron_record_id = pr.record_id
WHERE
  email.field_content !~ '[^@]+@[^@]+[.][^@]+';

The main difference here between this one and yours and Joe’s is that it doesn’t use any of the *_view tables. Those are constructed views that III created for convenience, but in my experience they’re almost always slower than just picking whichever tables you need and joining manually. Of course, 7-8 seconds is still a very long response time for a UI, so doing something like what Joshua suggested may still be necessary.

As an aside, if you’re not familiar with using EXPLAIN and EXPLAIN ANALYZE, these are very helpful tools for figuring out what’s going on in a particular query. Their output is a bit cryptic, but there are several helpful tutorials/explanations available. I always have to refer back to the Postgresql documentation, here:


If you’re using pg-admin, it can give you a nice visual representation (in the Query window, go to Query / Explain and Query / Explain Analyze) that’s a bit easier to parse than the raw output.

Good luck!

Jason Thomale
User Interfaces Unit, UNT Libraries


From: Boggs, John Sent: Wednesday, February 25, 2015 12:07 PM
To: Sierra Users List
Subject: [sierra] Speed up an SQL query?

Hi all,

I'm trying to put together a canned report for my circ folks of badly-formed email addresses. The report takes about 15 seconds to run, which isn't really all that long but it does lead folks waiting for a web page to click on the link again thinking maybe their click didn't work -- and that just causes the query to start all over again. I have a much more complex query, over much more data, for items in transit too long that runs in about 3 seconds and I'm puzzled as to why the patron one would run so much slower.  We have 2.5 million items and only 450,000 patrons.

I'm attaching the query in case anybody sees anything I'm missing. I have tried selecting from each of the three tables that I'm using and joining in a different orders, but it all takes at least 15 seconds. 

Thanks for any suggestions!

SELECT
  'p' || pat_view.record_num || 'a',
  email.field_content,
  name.last_name || ',' || name.first_name || ' ' || name.middle_name,
  pat_view.home_library_code
FROM
  sierra_view.patron_view AS pat_view
JOIN sierra_view.varfield_view AS email
  ON ( pat_view.record_num = email.record_num AND
       email.record_type_code = 'p' AND
       email.varfield_type_code = 'z' )

JOIN sierra_view.patron_record_fullname AS name
  ON (pat_view.id = name.patron_record_id)

WHERE
  email.field_content !~ '[^@]+@[^@]+[.][^@]+';

2/12/2015

Apple target disk mode

Have Apple laptop that is not booting, want to connect to working Mac that has thunderbolt connection:


If you have two Mac computers with FireWire or Thunderbolt ports, you can connect them so that one of them appears as an external hard disk on the other. This is called “target disk mode.”
  1. Connect the two computers with a FireWire or Thunderbolt cable.
  2. Start up the computer to be used as a disk in target disk mode:
    • If the computer is off, start it up while holding down the T key.
    • If the computer is on, choose Apple menu > System Preferences, click Startup Disk, and then click Target Disk Mode.
      When the computer has started up, a disk icon appears on the desktop of the other computer.
  3. Transfer files by dragging them to and from the disk.
  4. Eject the disk by dragging its icon to the Trash. While you drag, the Trash icon changes to an Eject icon.
  5. On the computer you used as a disk, push the power button to shut it down, and then disconnect the cable.


Was able to save files from the laptop hard drive

http://support.apple.com/kb/PH10725