GithubHelp home page GithubHelp logo

wallacelibrary / lcsortable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbelvadi2/lcsortable

0.0 0.0 0.0 5 KB

A Google Sheets script to convert Library of Congress call numbers into a format that can be sorted

License: MIT License

JavaScript 100.00%

lcsortable's Introduction

lcsortable

A Google Sheets script to convert Library of Congress call numbers into a format that can be sorted

In a particular Google Sheets spreadsheet file where you have a column that has complete LC call numbers, for instance extracted from your catalogue, do the following:

  1. Tools - Script Editor
  2. delete the default blank function and paste into it the entire contents of code.gs provided here
  3. Save the script
  4. Back in your spreadsheet, create a new column. This assumes your worksheet has a single header row and the call number is in column A - adjust as needed.
  5. In row 2 (the first data row) of your new column, put the following: =lcsortable(A2:A) This will do the equivalent of an arrayformula down the entire new column.

It is highly recommended that after doing this, you do on the new column the following sequence, in order to convert the formula to plan text to reduce memory working with the rest of the spreadsheet, especially if it's a very large one: [click on the column letter to select the entire column] Edit - Copy, Edit - Paste Special - Values Only Now you should find that you can sort your spreadsheet on this new column and your LC call numbers will be in proper order.

This function should handle all of the following: LC call numbers that either do or don't have spaces before their cutter periods Old-stype LC call numbers that have the LC class followed by the year of publication instead of the subject area number LC call numbers with 3 letters as well as 1 or 2.

If anyone runs into any examples of legitimate LC call numbers that this script does NOT properly handle, please contact me! [email protected] Melissa Belvadi, Collections Librarian, University of Prince Edward Island

lcsortable's People

Contributors

mbelvadi2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.