Utils.PostLoad
class Utils.PostLoad
Method Inventory
- AdjustRemapValues()
- AfterLoad()
- ApplyMacros()
- CalcAddlPropsForID()
- CalculatedAddlProps()
- CheckMacros()
- GenerateXMLReports()
- InternalCalcAddlProps()
- InternalCalcAddlPropsForID()
- PostProcess()
- PostProcessALL()
- ProcessConditionAttribute()
- ProcessDerivedTags()
- ProcessDerivedTagsFromFile()
- ProcessHomePageDescFile()
- ProcessHomePageFile()
- ProcessRankings()
- ProcessRankingsForID()
- ProcessRankingsFromFile()
- ProcessRankingsFromFileForID()
- ProcessShortTitles()
- ProcessTaxo()
- ProcessTopid()
- RemoveEmptyBooks()
- RemoveExcluded()
- UseExclusionList()
Methods
classmethod AdjustRemapValues(verbose As %Boolean = 0)
For use with old UI and with content that contains remap values
classmethod AfterLoad(type As %String = "", DocBookId As %String, LoadDir As %String = "", verbose As %Boolean = 0, isExtra As %Boolean = 0, skipImageFiles As %Boolean = 0)
Always run after loading a file.
Locates and logs any unprocessed macros, in the document specified if one is specified through
the topid argument, or in all content currently loaded if no topid is specified.
Called by CalculatedAddlProps. No need to call directly
called by CalcAddlPropsForID. No need to call directly.
classmethod PostProcess(which As %String = "all", verbose As %Integer = 0, catchUp As %Boolean = 0, buildTables As %Integer = 1)
which is "all" "all*" or the DocBookID of a book, article, or set.
buildTables determines whether and how we build the DBM report tables:
0 = don't build them, 1= build them in foreground, 2= build them in the background.
buildTables determines whether and how we build the DBM report tables:
0 = don't build them, 1= build them in background, 2= build them in the foreground.
Iterates through all rows in the DocBook.book and DocBook.article tables.
For each book or article, this method finds the condition attribute for the given book or article
and then uses that to set the ExtraTags field for each row in DocBook.block
that belong to the given book or article. Also recurses through these lower-level
rows to find any additional condition attributes and add tags from them as well.
item is optional. If specified, it must be the blockid of a book or article; if you specify this, we process just that book or article.
classmethod ProcessDerivedTags(verbose As %Integer = 0)
classmethod ProcessDerivedTagsFromFile(filename As %String = "c:\0work\derivedtags.txt", verbose As %Integer = 0)
Given a derivedtags.txt file, updates the extraTags property for any affected block
classmethod ProcessHomePageDescFile(verbose As %Boolean = 0)
Returns 1 if successful or 0 otherwise
Returns 1 if successful or 0 otherwise
classmethod ProcessRankings(verbose As %Integer = 0)
classmethod ProcessRankingsFromFile(filename As %String = "c:\0work\cache-rankings.txt", verbose As %Integer = 0)
Given a rankings file, updates the Rank property for all records in DocBook.block
classmethod ProcessRankingsFromFileForID(filename As %String = "c:/0work/cache-rankings.txt", DocBookID As %String = "", verbose As %Integer = 0)
Given a rankings file, updates the Rank property for all records in DocBook.block that
match the given DocBookID
Called by ProcessConditionAttribute.
Given the id (not blockid) of a book or article, see if this record has a value for the condition
attribute, and if so, extract that value and update the ExtraTags field for this record and all
child records. Process child records in the same way.
classmethod RemoveEmptyBooks(verbose As %Boolean = 0)
Remove any entries from DocBook.book that have no child records. IOW, removes empty books.
classmethod RemoveExcluded(verbose As %Boolean = 0)
Removes excluded books and articles
classmethod UseExclusionList(verbose As %Boolean = 0)
re-reads and reapplies exclusions; deletes items from exclusions list.