Skip to content

Commit

Permalink
Summary field indexing change to match recently-fixed data
Browse files Browse the repository at this point in the history
Additional for #44
  • Loading branch information
andrew-morrison committed Mar 16, 2018
1 parent bcf8b0b commit a90da87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions processing/manuscripts.xquery
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ declare option saxon:output "indent=yes";
{ bod:physForm($x//tei:physDesc/tei:objectDesc, 'ms_physform_sm', 'Not specified') }
{ bod:languages($x//tei:sourceDesc//tei:textLang, 'lang_sm', 'Not specified') }
{ bod:centuries($x//tei:origin//tei:origDate[@calendar = '#Gregorian' or @calendar = '#Hijri-qamari'], 'ms_date_sm', if ($x//tei:origin//tei:origDate[@calendar = '#Gregorian' or @calendar = '#Hijri-qamari']) then 'Date not machine-readable' else if ($x//tei:origin//tei:origDate) then 'Date in unsupported calendar' else 'Undated') }
{ bod:string2one(bod:shortenToNearestWord(string-join(($x//tei:msContents/tei:summary)[1]//text(), ' '), 128), 'ms_summary_sni') }
{ bod:indexHTML($htmldoc, 'ms_textcontent_tni') }
{ bod:displayHTML($htmldoc, 'display') }
</doc>
Expand Down

0 comments on commit a90da87

Please sign in to comment.