diff options
Diffstat (limited to 'src/sisudoc/spine.d')
| -rwxr-xr-x | src/sisudoc/spine.d | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sisudoc/spine.d b/src/sisudoc/spine.d index ceb9d6c..f7b7d66 100755 --- a/src/sisudoc/spine.d +++ b/src/sisudoc/spine.d @@ -167,6 +167,7 @@ string program_name = "spine"; "pod" : false, "serial" : false, "show-abstraction" : false, + "show-abstraction-db" : false, "show-config" : false, "show-curate" : false, "show-curate-authors" : false, @@ -289,6 +290,7 @@ string program_name = "spine"; "serial", "serial processing", &opts["serial"], "skip-output", "skip output", &opts["skip-output"], "show-abstraction", "show document abstraction (write .ssp file)", &opts["show-abstraction"], + "show-abstraction-db", "show document abstraction (write .db sqlite file)", &opts["show-abstraction-db"], "show-config", "show config", &opts["show-config"], "show-curate", "show curate", &opts["show-curate"], "show-curate-authors", "show curate authors", &opts["show-curate-authors"], @@ -503,6 +505,9 @@ string program_name = "spine"; @trusted bool show_abstraction() { return opts["show-abstraction"]; } + @trusted bool show_abstraction_db() { + return opts["show-abstraction-db"]; + } @trusted bool show_curate() { return opts["show-curate"]; } @@ -752,6 +757,7 @@ string program_name = "spine"; return ( opts["abstraction"] || show_abstraction + || show_abstraction_db || concordance || source_or_pod || curate @@ -779,6 +785,7 @@ string program_name = "spine"; || odt || manifest || show_abstraction + || show_abstraction_db || show_make || show_metadata || show_summary @@ -794,6 +801,7 @@ string program_name = "spine"; return ( opts["abstraction"] || show_abstraction + || show_abstraction_db || curate || html || epub @@ -1316,6 +1324,11 @@ string program_name = "spine"; import sisudoc.io_out.create_abstraction_txt; spineAbstractionTxt!()(doc); } + /+ ↓ document abstraction sqlite database +/ + if (doc.matters.opt.action.show_abstraction_db) { + import sisudoc.io_out.create_abstraction_db; + spineAbstractionDb!()(doc); + } if (doc.matters.opt.action.curate) { auto _hvst = spineMetaDocCurate!()(doc.matters, hvst); if ( @@ -1420,6 +1433,11 @@ string program_name = "spine"; import sisudoc.io_out.create_abstraction_txt; spineAbstractionTxt!()(doc); } + /+ ↓ document abstraction sqlite database +/ + if (doc.matters.opt.action.show_abstraction_db) { + import sisudoc.io_out.create_abstraction_db; + spineAbstractionDb!()(doc); + } if (doc.matters.opt.action.curate) { auto _hvst = spineMetaDocCurate!()(doc.matters, hvst); if ( |
