from openscriptures import settings setup_environ(settings) from openscriptures.core.models import * from openscriptures.data import import_helpers # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(msQereID) # Download the source file source_url = "http://files.morphgnt.org/tischendorf/Tischendorf-2.5.zip" import_helpers.download_resource(source_url) # Work for Kethiv edition (base text for qere) import_helpers.delete_work(msKethivID) msKethivWork = Work( id=msKethivID, title="Tischendorf 8th ed. v2.5 (Kethiv)", language=Language("grc"), type="Bible", osis_slug="Tischendorf", publish_date=date(2009, 1, 1), originality="manuscript-edition", creator="<a href='http://en.wikipedia.org/wiki/Constantin_von_Tischendorf' title='Constantin von Tischendorf @ Wikipedia'>Constantin von Tischendorf</a>. Based on G. Clint Yale's Tischendorf text and on Dr. Maurice A. Robinson's Public Domain Westcott-Hort text. Edited by <a href='http://www.hum.aau.dk/~ulrikp/'>Ulrik Sandborg-Petersen</a>.", url=source_url, license=License.objects.get(url="http://creativecommons.org/licenses/publicdomain/"), ) msKethivWork.save() varGroupKethiv = VariantGroup(work=msKethivWork, primacy=0)
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../')) #There's probably a better way of doing this from openscriptures import settings setup_environ(settings) from openscriptures.data.unbound_bible import UNBOUND_CODE_TO_OSIS_CODE # Why does this have to be explicit? from openscriptures.data import import_helpers from openscriptures.core.models import * # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(msID) # Download the source file source_url = "http://www.unboundbible.org/downloads/bibles/greek_WH_UBS4_parsed.zip" import_helpers.download_resource(source_url) # Delete existing works and their contents import_helpers.delete_work(msID, varMsID) msWork = Work( id = msID, title = "Westcott/Hort", abbreviation = "W/H", language = Language('grc'), type = 'Bible', osis_slug = 'WH', publish_date = date(1881, 1, 1), originality = 'manuscript-edition', creator = "By <a href='http://en.wikipedia.org/wiki/Brooke_Foss_Westcott' title='Brooke Foss Westcott @ Wikipedia'>Brooke Foss Westcott</a> and <a href='http://en.wikipedia.org/wiki/Fenton_John_Anthony_Hort' title='Fenton John Anthony Hort @ Wikipedia'>Fenton John Anthony Hort</a>.", url = source_url, #variant_number = 1, license = License.objects.filter(url="http://creativecommons.org/licenses/publicdomain/")[0] )
setup_environ(settings) from openscriptures.core.models import * from openscriptures.data import import_helpers # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(TNT1_ID) # Download the source file source_url = "http://www.tyndalehouse.com/Download/TNT 1.0.0.zip" var_source_url = "http://www.tyndalehouse.com/Download/TNT2 1.0.0.zip" # import_helpers.download_resource(source_url) # import_helpers.download_resource(var_source_url) # Delete existing works and their contents import_helpers.delete_work(TNT1_ID, TNT2_ID) workTNT1 = Work( id=TNT1_ID, title="Tregelles' Greek New Testament", abbreviation="Tregelles", language=Language("grc"), type="Bible", osis_slug="TNT", publish_date=date(1879, 1, 1), originality="manuscript-edition", creator="Samuel Prideaux Tregelles, LL.D. Transcription edited by Dirk Jongkind, in collaboration with Julie Woodson, Natacha Pfister, and Robert Crellin. Consultant editor: P.J. Williams. Tyndale House.", url=source_url, # variant_number = 1, license=License.objects.get(url="http://creativecommons.org/licenses/by-nc-sa/3.0/"), )