NIHVIVO-2711 Hard-code publication type select list options

This commit is contained in:
ryounes 2011-07-14 19:47:42 +00:00
parent 97a43dcecc
commit 9dc4c111ed

View file

@ -147,9 +147,40 @@ SPARQL queries for existing values. --%>
?pubUri core:informationResourceInAuthorship ?authorshipUri . ?pubUri core:informationResourceInAuthorship ?authorshipUri .
</v:jsonset> </v:jsonset>
<c:set var="publicationTypeLiteralOptions">
<c:set var="publicationsClassGroupUri" value="${vivoOnt}#vitroClassGrouppublications" /> ["", "Select one"],
<v:jsonset var="publicationsClassGroupUriJson">${publicationsClassGroupUri}</v:jsonset> ["http://purl.org/ontology/bibo/AcademicArticle", "Academic Article"],
["http://purl.org/ontology/bibo/Article", "Article"],
["http://purl.org/ontology/bibo/AudioDocument", "Audio Document"],
["http://vivoweb.org/ontology/core#BlogPosting", "Blog Posting"],
["http://purl.org/ontology/bibo/Book", "Book"],
["http://vivoweb.org/ontology/core#CaseStudy", "Case Study"],
["http://vivoweb.org/ontology/core#Catalog", "Catalog"],
["http://purl.org/ontology/bibo/Chapter", "Chapter"],
["http://vivoweb.org/ontology/core#ConferencePaper", "Conference Paper"],
["http://vivoweb.org/ontology/core#ConferencePoster", "Conference Poster"],
["http://vivoweb.org/ontology/core#Database", "Database"],
["http://purl.org/ontology/bibo/EditedBook", "Edited Book"],
["http://vivoweb.org/ontology/core#EditorialArticle", "Editorial Article"],
["http://purl.org/ontology/bibo/Film", "Film"],
["http://purl.org/ontology/bibo/Issue", "Issue"],
["http://purl.org/ontology/bibo/Journal", "Journal"],
["http://vivoweb.org/ontology/core#Newsletter", "Newsletter"],
["http://vivoweb.org/ontology/core#NewsRelease", "News Release"],
["http://purl.org/ontology/bibo/Patent", "Patent"],
["http://purl.org/ontology/bibo/Proceedings", "Proceedings"],
["http://purl.obolibrary.org/obo/OBI_0000272", "Protocol"],
["http://purl.org/ontology/bibo/Report", "Report"],
["http://vivoweb.org/ontology/core#ResearchProposal", "Research Proposal"],
["http://vivoweb.org/ontology/core#Review", "Review"],
["http://purl.org/ontology/bibo/Series", "Series"],
["http://vivoweb.org/ontology/core#Software", "Software"],
["http://purl.org/ontology/bibo/Thesis", "Thesis"],
["http://vivoweb.org/ontology/core#Video", "Video"],
["http://purl.org/ontology/bibo/Webpage", "Webpage"],
["http://purl.org/ontology/bibo/Website", "Website"],
["http://vivoweb.org/ontology/core#WorkingPaper", "Working Paper"]
</c:set>
<c:set var="editjson" scope="request"> <c:set var="editjson" scope="request">
{ {
@ -193,10 +224,10 @@ SPARQL queries for existing values. --%>
"pubType" : { "pubType" : {
"newResource" : "false", "newResource" : "false",
"validators" : [ ], "validators" : [ ],
"optionsType" : "VCLASSGROUP", "optionsType" : "HARDCODED_LITERALS",
"literalOptions" : [ "Select one" ], "literalOptions" : [ ${publicationTypeLiteralOptions} ],
"predicateUri" : "", "predicateUri" : "",
"objectClassUri" : "${publicationsClassGroupUriJson}", "objectClassUri" : "",
"rangeDatatypeUri" : "", "rangeDatatypeUri" : "",
"rangeLang" : "", "rangeLang" : "",
"assertions" : [ "${newPubTypeAssertion}" ] "assertions" : [ "${newPubTypeAssertion}" ]