Create Text Files for Caia Pull Jobs
Update Outstanding Candidates
Before ingesting new candidates, update outstanding candidates:
Run reports
- open Google DB
- export update 1 – outstanding candidates as text on desktop
- add a “Barcode” header line
- in Alma, add a set: outstanding candidates
- Manage Sets –> Members –> then Export list to desktop
- Monitor Jobs –> History –> Report –> download Non-matched Records to desktop
Reject for location
- on desktop, open results.xlsx
- filter Permanent Location for locations that don’t go to google
- copy those barcodes and save as barcodes.txt
- check Caia for locations in departmental libraries–update location in candidates table and deaccession as needed
- import barcodes.txt in Google DB
- run update 2 – reject for location
Bad barcodes
- open a new excel spreadsheet and import NonMatchedRecords.csv
- copy barcodes and save as barcodes.txt
- close spreadsheet without saving
- import barcodes.txt in Google DB
- export update 3 – bad barcode data as excel on desktop
- open spreadsheet, copy Item ID column without header
- in analytics, open barcode & loc from items then export to desktop
- open spreadsheet and adjust column widths, then save
- import barcode & loc from items into Google DB as temp
- run update 4 – fix barcode and loc
- open spreadsheet again, filter for unusual locations, edit candidates table as needed
Ingest New Candidates
Google candidate lists
- download each file (except combined) from the most recent date. EXCLUDE us_federal_gov_docs until further notice
- an a piece of paper, note that date.
- 7-Zip -> Extract Here [twice]
Excel
- create a new excel spreadsheet named google ingest with the following columns (25 wide):
- Google Candidate List (Text)
- Google List Date (Date)
- Barcode (Text)
- in a new excel spreadsheet, Get Data From Text, and select a file
- Delimited | Next
- Next
- scroll to highlight the barcode field and choose Text | Finish
- OK
- scroll down to first empty A cell
- repeat for all files for that Candidate List
- Format Cells in the barcodes column as Text
- filter barcodes for does not begin with: 3
- paste barcode over or delete row as appropriate
- copy the list of barcodes and paste them into google ingest
- enter the correct value for Google_Candidate_List:
- International Documents
- PreDate
- Renewal
- State Documents
- US Documents EXCLUDE until further notice
- enter the date of the candidate files (MM/DD/YYYY).
- copy A and B to another line, autofill down (watch for incrementing!)
- close and delete the candidate files.
- repeat 2-8 for all candidate files.
- deduplicate by barcode.
- delete all blank lines at the bottom of the sheet.
- note the number of unique barcodes (to the k)
Notepad
- Copy the barcodes into files named google ingest 01.txt, etc. Files must have less than 100k lines.
Alma
- Manage Sets –> Add Set as google ingest 01, etc.
- Wait for email confirmation
- from the confirmation email, note the total number of matches in Alma (to the k)
- in Firefox, view Members of a set, then click the Export List icon and choose Excel (current view)
- once the download is complete, rename the file google ingest 01.xlsx, etc.
Excel
- delete OCLC is blank
- delete host bib records
- delete all lines that aren’t in the correct locations (only osx, osx-nc, or stx as of 2017)
- note the remaining number of candidates (to the k)
Alma analytics
- create a text file of all remaining candidate barcodes
- use the AlmaSet2Analytics procedure for each group of <64k barcodes
sandbox database
- compact and repair database
- import google ingest and alma ingest spreadsheets into sandbox database
- verify that ingest table fields match dbo_NewCandidates
- compact and repair database
- run create google ingest table
- delete google ingest and alma ingest tables
- compact and repair database
Google database
Starting 2017, we are checking outstanding candidates against the new candidate list, and rejecting any candidates that had fallen off the list. (Reject Code = Z). This stage also removes items that are already in the NewCandidates table.
- run preingest 1 – create outstanding table
- run preingest 2 – delete outstanding if on ingest
- run preingest 3 – update from outstanding, entering 1/1/<currentyear>
- run preingest 4 – delete if already candidate
- note the number of outstanding candidates, repeat candidates, and remaining candidates (to the k)
- rename google ingest table as new to ingest
- delete outstanding table
- compact and repair database
Google database
- open new to ingest in design view and add the following fields
- Put on Picklist: Date/Time
- Shipped: Yes/No
- Reject Code: Short Text
- compact and repair database
- run the ingest reject – queries
- compact and repair database
- run ingest 5 – append to candidates
- append each category for Google_Candidate_List separately, if necessary
- compact and repair database
- run ingest 7- verify ingest count
- delete google ingest and new to ingest
- compact and repair database
- export Google candidates for Oak barcodes as text
Export Oak Candidates
Caia
- break Google candidates for Oak barcodes into files of no more than 100k
- run item status report for each file
- wait for email, then download results
Excel
- open new spreadsheet and save as item status report
- Get Data From Text
- delete:
- all columns after Last Job
- Item Status: all but “Item In at Rest”
- Collection: all but osx or osx-nc
- Container begins with: Direct, EL, EX, O, G
- Address: 0
- Last Job Type: De-Accession Items
- remove duplicates
- delete lines and columns at end of results
- save
- insert an empty column A
- A1: Shelf
- A2: =CONCATENATE(H2,I2,J2,”:”,K2) [correct quotes, if needed]
- fill down
- save
- sort:
- Aisle
- Ladder
- Step
- Side
- Footprint
- Container
- Save and close
sandbox db
- run Import-item status report with shelf
- open design view
- add Blank field as short text
- export google lows
- run lowhi 2 – delete lows
- export google highs
- delete item status report with shelf
Excel
- open each file and auto-adjust column width, then save
- email files to Google team
Create Text Files for Caia Pull Jobs
Set up folders and files
- start in: G:\OakStreet\Google Project\Google Candidates Process
- copy the Google 20xx folder (and subfolders) and paste in:
G:\OakStreet\Google Project - rename the Google 20xx folder to the current year
- save the export google highs and export google lows files from email in:
G:\OakStreet\Google Project\Google 20xx\Splitting - create working files in Splitting
- if there are fewer than 100k lines in a file, copy export google highs and paste as export google highs working
- if there are more than 100k lines in a file, break the file into <100k files
- keep aisles together–use a pivot table of aisle counts to determine where to break up the file
- copy export google highs and paste with aisle numbers in the filename, e.g.: export google highs 1-7
- filter the aisle column and unselect the aisles you want to keep
- delete remaining lines
- unfilter and save
Split into aisles
- open folders in separate windows:
G:\OakStreet\Google Project\Google Candidates Process [contains text files of VBA scripts]
G:\OakStreet\Google Project\Google 20xx\Splitting [contains excel files of candidates] - open appropriate working file in Splitting folder
- Alt-F11 –> Insert –> Module –> copy/paste script 1… –> F5
- close both VBA windows and save the excel file
- Alt-F11 –> Insert –> Module –> copy/paste script 2 –> F5 –> browse to
G:\OakStreet\Google Project\Google 20xx\Splitting\Google Highs Excel - close both VBA windows, then save and close excel
- repeat as needed
Change codenames
- open a new excel file
- File –> Options –> Trust Center –> Trust Center Settings –> Macro Settings –> check: Trust access to the VBA project object model
- Alt-F11 –> Insert –> Module –> copy/paste script 3 –> F5 –> browse to
G:\OakStreet\Google Project\Google 20xx\Splitting\Google Highs Excel - close both VBA windows and excel without saving
Chunk out job files into aisle folders
- open Highs Aisle 1.xlsx
- Alt-F11 –> Insert –> Module –> copy/paste script 4 –> F5
- close both VBA windows and save the excel file
- Alt-F11 –> Insert –> Module –> copy/paste script 5 –> F5 –> browse to
G:\OakStreet\Google Project\Google 20xx\Text Files for Jobs\Highs\Aisle 1 - close both VBA windows, then save and close excel
- repeat as needed
Once all the highs files have been created, repeat for lows, starting with Split into aisles