About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:open_data_sources:mesh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

indexing:open_data_sources:mesh [2022/03/01 18:56] – created demiankatzindexing:open_data_sources:mesh [2024/02/20 13:39] (current) demiankatz
Line 1: Line 1:
 ====== MeSH ====== ====== MeSH ======
  
-U.S. National Library of Medicine authority records (MeSH)MARC21 format, 2012 version are available to download upon completion of an online memorandum of understanding (easy and fast to import into VuFind's authority module): [[http://www.nlm.nih.gov/mesh/marc.html|here]] -- look for the link "Download full file [153MB]".+:!: If you plan to use MeSH headings in your instancebe sure to read and comply with the [[https://www.nlm.nih.gov/databases/download/terms_and_conditions_mesh.html|National Library of Medicine Terms and Conditions]].
  
-A conversion from .bin (ISO2709into .mrc is required, easily done with Terry Reese'[[http://people.oregonstate.edu/~reeset/marcedit/html/downloads.html|MarcEdit]]; use MARC Tools > Function: MarcBreaker and then in MARC Editor > "Compile File into MARC".+U.S. National Library of Medicine authority records (MeSHare available to download through the [[https://www.nlm.nih.gov/mesh/meshhome.html|Medical Subject Headings]] web page. Just click the "Download MeSH Data" link and pick the appropriate link under "MARC 21 Format.The file you need will be named using the format "YYYYMMDD_marc_fullYYYY.bin."
  
-A local marc_mesh.properties has to be built in order to map correctly the authority fields used in MeSH (refer to marc_auth.properties as an example).+Because VuFind®'s default import tool expects binary MARC files to have a .mrc extension instead of a .bin extension, you will need to rename the file after downloading it.
  
-The following fields should do the work:+A $VUFIND_LOCAL_DIR/import/marc_mesh.properties has to be built in order to correctly map the authority fields used in MeSH (you can refer to [[https://github.com/vufind-org/vufind/blob/dev/import/marc_auth.properties|marc_auth.properties]] to see the defaults that you are overriding). 
 + 
 +This example should work in recent VuFind® releases, though you may wish to make adjustments to meet local preferences:
  
 <code> <code>
-id = script(getFirstNormalizedLCCN.bsh), getFirstNormalizedLCCN("001")+id = 001, (pattern_map.id_prefix), first 
 +pattern_map.id_prefix.pattern_0 = (.+)=>mesh_$1
 source = "U.S. National Library of Medicine authority records (MeSH)" source = "U.S. National Library of Medicine authority records (MeSH)"
-heading = 100abcdegjqt:110abcdegjqt:111abcdegjqt:130abcdegjqt:150abvxyz:151a:155avxyz:180vxyz:181vxyz:182vxyz:185vxyz +heading = 100abcdegjqt:110abcdegjqt:111abcdegjqt:130abcdegjqt:150abvxyz:151avxy:155avxyz:180vxyz:181vxyz:182vxyz:185vxyz 
-use_for = 400abcdegjqt:410abcdegjqt:411abcdegjqt:430abcdegjqt:450abvxyz:451a:455avxyz:480vxyz:481vxyz:482vxyz:485vxyz +use_for = 400abcdegjqt:410abcdegjqt:411abcdegjqt:430abcdegjqt:450abvxyz:451avxy:455avxyz:480vxyz:481vxyz:482vxyz:485vxyz 
-see_also = 500abcdegjqt:510abcdegjqt:511abcdegjqt:530abcdegjqt:550abvxyz:551a:555avxyz:580vxyz:581vxyz:582vxyz:585vxyz+see_also = 500abcdegjqt:510abcdegjqt:511abcdegjqt:530abcdegjqt:550abvxyz:551avxy:555avxyz:580vxyz:581vxyz:582vxyz:585vxyz
 scope_note = custom, getAllSubfields(667:680:688, " ") scope_note = custom, getAllSubfields(667:680:688, " ")
 </code> </code>
  
-According to NLMthis “full file contains all terms with 26,581 descriptor records, 83 qualifier records, and 593,280 descriptor/qualifier combinations, for a total of 619,944 records”+Once the properties file is in placethe file can be imported with
 + 
 +<code> 
 +cd $VUFIND_HOME 
 +./import-marc-auth.sh /path/to/YYYYMMDD_marc_fullYYYY.mrc marc_mesh.properties 
 +</code>
  
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
indexing/open_data_sources/mesh.1646160999.txt.gz · Last modified: 2022/03/01 18:56 by demiankatz