Tech Blog

Brief record rules and descriptions

See also: Brief record levels functionality in Alma

The brief record rule for brief levels based on record content

rule "Brief 01"
when
    not exists "245.a.*"
then
    set brief_level."01"
end

rule "Brief 02"
when
    not exists "050.a.*" AND not exists "082.a.*"
then
    set brief_level."02"
end

rule "Brief 03"
when
    not exists "020.a.*" AND not exists "022.a.*"
then
    set brief_level."03"
end

rule "Brief 04"
when
    not exists "6**.a.*"
then
    set brief_level."04"
end

rule "Brief 05"
when
    existsControl "008.{35,3}.   "
then
    set brief_level."05"
end

rule "Brief 06"
when
    existsControl "008.{7,4}.    "
then
    set brief_level."06"
end

rule "Brief 07"
when
    not exists "260.a.*" AND not exists "264.a.*"
then
    set brief_level."07"
end

rule "set default"
when
  TRUE
then
  set brief_level."10"
end

The list of brief level search index descriptions for brief levels based on record content

CodeDescription
0101 – No 245 title exists
0202 – No classification number 050 or 082 exists
0303 – No ISBN 020 or ISSN 022 exists
0404 – No 6XX subjects exist
0505 – Blank 008 pos. 35-37 (language)
0606 – Blank 008 pos. 7 -11 (year)
0707 – No 260 or 264 exists
0808
0909
1010 – Full record

The brief record rule for brief levels based on LDR

rule "Brief 01"
when
    (existsControl "LDR.{17,1}.5")
then
    set brief_level."01"
end

rule "Brief 02"
when
    (existsControl "LDR.{17,1}.3")
then
    set brief_level."02"
end

rule "Brief 03"
when
    (existsControl "LDR.{17,1}.J") OR
    (existsControl "LDR.{17,1}.j")
then
    set brief_level."03"
end

rule "Brief 04"
when
    (existsControl "LDR.{17,1}.7")
then
    set brief_level."04"
end

rule "Brief 05"
when
    (existsControl "LDR.{17,1}.2")
then
    set brief_level."05"
end

rule "Brief 06"
when
    (existsControl "LDR.{17,1}.M") OR
    (existsControl "LDR.{17,1}.m")
then
    set brief_level."06"
end

rule "Brief 07"
when
         (existsControl "LDR.{17,1}.K") OR
         (existsControl "LDR.{17,1}.k")
then
          set brief_level."07"
end

rule "Brief 08"
when
         (existsControl "LDR.{17,1}.8")
then
          set brief_level."08"
end

rule "Brief 09"
when
         (existsControl "LDR.{17,1}.4")
then
          set brief_level."09"
end

rule "Brief 10"
when
    ((existsControl "LDR.{17,1}.1") OR (existsControl "LDR.{17,1}.L") OR (existsControl "LDR.{17,1}.I") OR (existsControl "LDR.{17,1}. ") OR (existsControl "LDR.{17,1}.l") OR (existsControl "LDR.{17,1}.i"))
then

    set brief_level."10"
end

rule "set default"
priority 1
when
  TRUE
then
  set brief_level."01"
end

The list of brief level search index descriptions for Brief Levels Based on LDR

CodeDescription
0101 -. LDR 17=5. Partial (preliminary) level
0202 – LDR 17=3. Abbreviated level
0303 – LDR 17=J or j. Deleted record
0404 – LDR 17=7. Minimal-level
0505 – LDR 17=2. Less-than-full level, material not examined
0606 – LDR 17=M or m. Added from a batch process.
0707 – LDR 17=K or k. Minimal-level input by OCLC participants
0808 – LDR 17=8. Prepublication level
0909 – LDR 17=4. Core-level
1010 – LDR 17=1 OR L OR I OR 1 OR l OR i

Leave a Reply