Prototype Export Schemes
Different export objects deriving from the same prototype should be formally consistent. For example, whether a quote-note exports as a webpage, subsection, panel, or button, each exported object should include citation information. Similarity for person-notes—each should include a biographical date span.
There are four kinds of export object whose style is determined by prototype—Webpage, Subsection, SmartPanel, and SmartButton. Taken together, these objects define a prototype’s Export Scheme.
In BoxPress, each content prototype has its own Export Scheme. Thus when you set a note’s prototype, you also determine its layout during export. A note can have all sorts of metadata (attributes), and changing its prototype from A to B should effect a change in the export object—it should selectively reveal and conceal different things. This seems right and proper.
normal_note vs article_note
For example, I have two notes in by TBX that are identical except for name and prototype. Here they are exported as SmartButtons:
And here they are as SmartPanels:
Abstract: Antidepressant medications are the most popular treatment for unipolar depression in the United States, although there may be safer alternatives that are equally or more effective.
Insight-oriented psychotherapy was the least effective on most outcome measures at both evaluation periods; 30% of those patients remained in the moderate to severe range of depression, in comparison with 19% of those in the control condition. There were no significant differences between drug therapy and relaxation therapy on any outcome measure. No treatment had a significantly better outcome with the severely depressed subgroup (McLean & Taylor, 1992).
Antonuccio, David O. & Danton, William G. (1995) Therapy Versus Meds for Depression. Professional Psychology: Research and Practice, Vol. 26, No. 6, 574–585.
Abstract: Antidepressant medications are the most popular treatment for unipolar depression in the United States, although there may be safer alternatives that are equally or more effective.
Insight-oriented psychotherapy was the least effective on most outcome measures at both evaluation periods; 30% of those patients remained in the moderate to severe range of depression, in comparison with 19% of those in the control condition. There were no significant differences between drug therapy and relaxation therapy on any outcome measure. No treatment had a significantly better outcome with the severely depressed subgroup (McLean & Taylor, 1992).
normal_note vs quote_note
Another example. Exported as SmartButtons:
And now as SmartPanels:
Before he realised it, he was looking at the stone again, and letting its curious influence call up a nebulous pageantry in his mind. He saw processions of robed, hooded figures whose outlines were not human, and looked on endless leagues of desert lined with carved, sky-reaching monoliths. He saw towers and walls in nighted depths under the sea, and vortices of space where wisps of black mist floated before thin shimmerings of cold purple haze. And beyond all else he glimpsed an infinite gulf of darkness, where solid and semi-solid forms were known only by their windy stirrings, and cloudy patterns of force seemed to superimpose order on chaos and hold forth a key to all the paradoxes and arcana of the worlds we know.
H. P. Lovecraft (1936)
Before he realised it, he was looking at the stone again, and letting its curious influence call up a nebulous pageantry in his mind. He saw processions of robed, hooded figures whose outlines were not human, and looked on endless leagues of desert lined with carved, sky-reaching monoliths. He saw towers and walls in nighted depths under the sea, and vortices of space where wisps of black mist floated before thin shimmerings of cold purple haze. And beyond all else he glimpsed an infinite gulf of darkness, where solid and semi-solid forms were known only by their windy stirrings, and cloudy patterns of force seemed to superimpose order on chaos and hold forth a key to all the paradoxes and arcana of the worlds we know.
Prototype-controlled export objects
There are four kinds of prototype-controlled export object—Webpage, Subsection, SmartPanel, and SmartButton. These four objects together determine a prototype’s Export Scheme. A prototype’s Export Scheme is just its unique set of prototype-controlled export objects.
For example, quote-note webpages are indented and have a citation footer indicating author, title, and url. Audio-notes include a fancy audio player at top. A code-note shows scope or syntax and adds a pink background. A person-note begins with a small left-aligned portrait, and includes an Undertitle with biographical date span. The Undertitle of a book-note features author and publication year. (The Undertitle feature is unique to the six Research Prototypes and is a modular permutation of AUTHOR, TITLE, JOURNAL, and DATE keywords in the $blogUnderOpt
key attribute. For more, see here.)
The other prototype-controlled export objects—Subsection, SmartPanel, and SmartButton—also vary according to prototype. For example, when exported as a SmartButton, a person-note shows a thumbnail portrait (or a person Glyphicon) along with a biographical date span; while that of a code-note displays the code type, syntax, purpose, and scope.
The Undertitle feature in Research Prototypes
The six Research Prototypes have a useful Undertitle feature that appears in Webpages, Subsections, and SmartPanels.