Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added instructions for removing previously downloaded files before installing a new file

...

Users not on Windows or without access to PowerShell will not be able to use this script. Creating an Alma template or copying and pasting from a notepad or text document are options if you cannot run this PowerShell script. See: 920 Statistics Field in the Holdings: Copying and Pasting Info. (ITS)

Download

Attachments
uploadfalse
oldfalse
patterns.*ps1

Installation

  1. Remove previously downloaded alma920.ps1 file and shortcuts (skip to step 2 if installing for the first time)
    1. Locate the previously downloaded .ps1 file
      1. If you have a shortcut, right click on shortcut and select "Properties"
      2. Select Shortcut tab
      3. Copy "Start in" folder path
      4. Navigate to the folder in Windows Explorer
    2. Delete the file 
    3. Delete the Desktop shortcut
  2. Save new or updated alma920.ps1 to your computer by right-clicking on the file above and choosing "Save link as"
  3. Create a shortcut to alma920.ps1
    1. Right click on file
    2. Select "Show more options"
    3. Select "Create shortcut"
  4. Move shortcut to Desktop (and, optionally, rename shortcut)
  5. Right click on shortcut and select "Properties"
  6. Select Shortcut tab
  7. Copy and paste following text into Target box: powershell.exe -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -File alma920.ps1
    1. -ExecutionPolicy Bypass allows the script to run without being blocked or triggering security warnings or prompts
    2. -NoProfile does not load the PowerShell profile
    3. -WindowStyle Hidden hides the command prompt window
  8. (Optional) Assign shortcut keys using the Shortcut key box
  9. Change Run value to "Minimized"
  10. Click Apply
  11. Click OK
  12. Double click on the shortcut to run the script

How to Use

  1. Create a new field in the Alma holdings record (F8)
  2. Type "920" for the field and "11" for the indicator values
  3. Double click on the alma920 shortcut (or use shortcut keys, if assigned)
  4. Select cataloging type ($$a), project name ($$p), and curatorial department ($$x). Leave $$p blank if not applicable.
  5. Click OK to save the 920 string to the clipboard
  6. Paste string into 920 field

Note: Blank subfields will be deleted when the Alma record is saved. 

Default Values

SubfieldNameValueDefaultNotes
$$aType of catalogingOptions: a, c, e, o, rBlankITS uses only c (copy), m (modified), and o (original)
$$dTitle cataloged date

Today's date (yyyyMMdd)

Current system date and time in yyyyMMdd format (for example, 20240319)


$$eLibrary or Technical Services unit

HO

HO 

Code assigned by KNITSS

$$fCataloger

NetID

Computer's current username ($env:username)

See Find Your NetID (HUIT). In some cases, the current username may not be the user's NetID. 

$$pProject name/code

Options: new acq., aargh, shelf-read, project

Blank

Subfield created by Houghton in 2024
$$xNote

Options: earbm, fal, hew, hfa, htc, hyde, modbm, mus, pga, trc, wpr

Blank

General note subfield but used for curatorial department codes at Houghton

Expand
titleAlma 920 Field script window (screenshot)

Image Added

Revision History

Name: alma920.ps1

Description: Windows PowerShell script to create a text string for the Alma 920 field and copy the string to the clipboard

...