Normalize line endings VIVO-101
This commit is contained in:
parent
b097a4d754
commit
54f79f2ea7
587 changed files with 91501 additions and 91501 deletions
|
@ -1,51 +1,51 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign toBeDeletedClass = "dataProp" />
|
||||
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#assign toBeDeletedClass = "objProp" />
|
||||
<#if editConfiguration.objectStatementDisplay?has_content>
|
||||
<#assign statement = editConfiguration.objectStatementDisplay />
|
||||
<#--Reviewer and editor role list views required object property template model object for property-->
|
||||
<#assign property = editConfiguration.objectPropertyStatementDisplayPropertyModel />
|
||||
</#if>
|
||||
<#else>
|
||||
<#assign statement = editConfiguration.dataLiteralValuesAsString />
|
||||
</#if>
|
||||
|
||||
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
|
||||
|
||||
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
|
||||
<h2>${i18n().confirm_entry_deletion_from} <em>${editConfiguration.propertyName}</em>?</h2>
|
||||
|
||||
<p class="toBeDeleted ${toBeDeletedClass}">
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#if statement?has_content>
|
||||
<#include deletionTemplateName />
|
||||
</#if>
|
||||
<#else>
|
||||
${statement}
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}" role="input" />
|
||||
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}" role="input" />
|
||||
|
||||
<#if editConfiguration.dataProperty = true>
|
||||
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" role="input" />
|
||||
<input type="hidden" name="vitroNsProp" value="${editConfiguration.vitroNsProperty}" role="input" />
|
||||
<#else>
|
||||
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}" role="input" />
|
||||
</#if>
|
||||
|
||||
<br />
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<p class="submit">
|
||||
</#if>
|
||||
<input type="submit" id="submit" value="${i18n().delete_button}" role="button"/>
|
||||
or
|
||||
<a class="cancel" title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
</p>
|
||||
</#if>
|
||||
</form>
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign toBeDeletedClass = "dataProp" />
|
||||
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#assign toBeDeletedClass = "objProp" />
|
||||
<#if editConfiguration.objectStatementDisplay?has_content>
|
||||
<#assign statement = editConfiguration.objectStatementDisplay />
|
||||
<#--Reviewer and editor role list views required object property template model object for property-->
|
||||
<#assign property = editConfiguration.objectPropertyStatementDisplayPropertyModel />
|
||||
</#if>
|
||||
<#else>
|
||||
<#assign statement = editConfiguration.dataLiteralValuesAsString />
|
||||
</#if>
|
||||
|
||||
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
|
||||
|
||||
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
|
||||
<h2>${i18n().confirm_entry_deletion_from} <em>${editConfiguration.propertyName}</em>?</h2>
|
||||
|
||||
<p class="toBeDeleted ${toBeDeletedClass}">
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#if statement?has_content>
|
||||
<#include deletionTemplateName />
|
||||
</#if>
|
||||
<#else>
|
||||
${statement}
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}" role="input" />
|
||||
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}" role="input" />
|
||||
|
||||
<#if editConfiguration.dataProperty = true>
|
||||
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" role="input" />
|
||||
<input type="hidden" name="vitroNsProp" value="${editConfiguration.vitroNsProperty}" role="input" />
|
||||
<#else>
|
||||
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}" role="input" />
|
||||
</#if>
|
||||
|
||||
<br />
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<p class="submit">
|
||||
</#if>
|
||||
<input type="submit" id="submit" value="${i18n().delete_button}" role="button"/>
|
||||
or
|
||||
<a class="cancel" title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
</p>
|
||||
</#if>
|
||||
</form>
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign formTitle>
|
||||
"${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName}
|
||||
</#assign>
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign formTitle>${i18n().edit_capitalized} ${formTitle} </#assign>
|
||||
<#assign submitLabel>${i18n().save_changes}</#assign>
|
||||
<#else>
|
||||
<#assign formTitle>${i18n().create_capitalized} ${formTitle} </#assign>
|
||||
<#assign submitLabel>${i18n().create_capitalized} "${editConfiguration.propertyPublicDomainTitle}" ${i18n().entry}</#assign>
|
||||
</#if>
|
||||
|
||||
<h2>${formTitle}</h2>
|
||||
|
||||
<form class="editForm" action="${submitUrl}">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
|
||||
<input type="text" name="name" id="name" label="name (required)" size="30" role="input" />
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitLabel}" role="submit" />
|
||||
<span class="or"> or </span>
|
||||
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign formTitle>
|
||||
"${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName}
|
||||
</#assign>
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign formTitle>${i18n().edit_capitalized} ${formTitle} </#assign>
|
||||
<#assign submitLabel>${i18n().save_changes}</#assign>
|
||||
<#else>
|
||||
<#assign formTitle>${i18n().create_capitalized} ${formTitle} </#assign>
|
||||
<#assign submitLabel>${i18n().create_capitalized} "${editConfiguration.propertyPublicDomainTitle}" ${i18n().entry}</#assign>
|
||||
</#if>
|
||||
|
||||
<h2>${formTitle}</h2>
|
||||
|
||||
<form class="editForm" action="${submitUrl}">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
|
||||
<input type="text" name="name" id="name" label="name (required)" size="30" role="input" />
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitLabel}" role="submit" />
|
||||
<span class="or"> or </span>
|
||||
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
</form>
|
|
@ -1,56 +1,56 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--If edit submission exists, then retrieve validation errors if they exist-->
|
||||
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
|
||||
<#assign submissionErrors = editSubmission.validationErrors/>
|
||||
</#if>
|
||||
|
||||
|
||||
<h2>${editConfiguration.formTitle}</h2>
|
||||
|
||||
<#--Display error messages if any-->
|
||||
<#if submissionErrors?has_content>
|
||||
<section id="error-alert" role="alert">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
|
||||
<p>
|
||||
|
||||
<#list submissionErrors?keys as errorFieldName>
|
||||
${submissionErrors[errorFieldName]}
|
||||
</#list>
|
||||
|
||||
</p>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
|
||||
<#if editConfiguration.dataPredicatePublicDescription?has_content>
|
||||
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${editConfiguration.dataPredicatePublicDescription}</p></label>
|
||||
</#if>
|
||||
|
||||
|
||||
<textarea rows="2" id="literal" name="literal" value="" class="useTinyMce" role="textarea">${literalValues}</textarea>
|
||||
|
||||
<br />
|
||||
<#--The submit label should be set within the template itself, right now
|
||||
the default label for default data/object property editing is returned from Edit Configuration Template Model,
|
||||
but that method may not return the correct result for other custom forms-->
|
||||
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button"/>
|
||||
<span class="or"> or </span>
|
||||
<a title="${i18n().cancel_title}" href="${cancelUrl}">${i18n().cancel_link}</a>
|
||||
|
||||
</form>
|
||||
|
||||
<#if editConfiguration.includeDeletionForm = true>
|
||||
<#include "defaultDeletePropertyForm.ftl">
|
||||
</#if>
|
||||
|
||||
<#include "defaultFormScripts.ftl">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
defaultDataPropertyUtils.onLoad();
|
||||
});
|
||||
</script>
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--If edit submission exists, then retrieve validation errors if they exist-->
|
||||
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
|
||||
<#assign submissionErrors = editSubmission.validationErrors/>
|
||||
</#if>
|
||||
|
||||
|
||||
<h2>${editConfiguration.formTitle}</h2>
|
||||
|
||||
<#--Display error messages if any-->
|
||||
<#if submissionErrors?has_content>
|
||||
<section id="error-alert" role="alert">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
|
||||
<p>
|
||||
|
||||
<#list submissionErrors?keys as errorFieldName>
|
||||
${submissionErrors[errorFieldName]}
|
||||
</#list>
|
||||
|
||||
</p>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input" />
|
||||
<#if editConfiguration.dataPredicatePublicDescription?has_content>
|
||||
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${editConfiguration.dataPredicatePublicDescription}</p></label>
|
||||
</#if>
|
||||
|
||||
|
||||
<textarea rows="2" id="literal" name="literal" value="" class="useTinyMce" role="textarea">${literalValues}</textarea>
|
||||
|
||||
<br />
|
||||
<#--The submit label should be set within the template itself, right now
|
||||
the default label for default data/object property editing is returned from Edit Configuration Template Model,
|
||||
but that method may not return the correct result for other custom forms-->
|
||||
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button"/>
|
||||
<span class="or"> or </span>
|
||||
<a title="${i18n().cancel_title}" href="${cancelUrl}">${i18n().cancel_link}</a>
|
||||
|
||||
</form>
|
||||
|
||||
<#if editConfiguration.includeDeletionForm = true>
|
||||
<#include "defaultDeletePropertyForm.ftl">
|
||||
</#if>
|
||||
|
||||
<#include "defaultFormScripts.ftl">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
defaultDataPropertyUtils.onLoad();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
|
||||
<h3 class="delete-entry">${i18n().delete_entry_capitalized}</h3>
|
||||
|
||||
<label for="delete"></label>
|
||||
|
||||
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}"/>
|
||||
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}"/>
|
||||
<input type="hidden" name="cmd" value="delete"/>
|
||||
<input type="hidden" name="editKey" value="${editConfiguration.editKey}"/>
|
||||
<#if editConfiguration.dataProperty = true>
|
||||
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
</#if>
|
||||
|
||||
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
|
||||
and offer create new option are true below so leaving as Cancel for first option but not second below-->
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}"/>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
|
||||
<p>
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
<span class="or"> ${i18n().or} </span>
|
||||
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = true || editConfiguration.propertyOfferCreateNewOption = true>
|
||||
<p>
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
</p>
|
||||
</#if>
|
||||
</#if>
|
||||
</form>
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
|
||||
<h3 class="delete-entry">${i18n().delete_entry_capitalized}</h3>
|
||||
|
||||
<label for="delete"></label>
|
||||
|
||||
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}"/>
|
||||
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}"/>
|
||||
<input type="hidden" name="cmd" value="delete"/>
|
||||
<input type="hidden" name="editKey" value="${editConfiguration.editKey}"/>
|
||||
<#if editConfiguration.dataProperty = true>
|
||||
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
</#if>
|
||||
|
||||
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
|
||||
and offer create new option are true below so leaving as Cancel for first option but not second below-->
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}"/>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
|
||||
<p>
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
<span class="or"> ${i18n().or} </span>
|
||||
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = true || editConfiguration.propertyOfferCreateNewOption = true>
|
||||
<p>
|
||||
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
|
||||
</p>
|
||||
</#if>
|
||||
</#if>
|
||||
</form>
|
||||
|
|
|
@ -1,71 +1,71 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template to setup and call scripts for form editing -->
|
||||
|
||||
<#-- Like original jsp, allow the passing of variables -->
|
||||
<#assign defaultHeight="200" />
|
||||
<#assign defaultWidth="75%" />
|
||||
<#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/>
|
||||
<#assign defaultToolbarLocation = "top" />
|
||||
<#if !height?has_content>
|
||||
<#assign height=defaultHeight/>
|
||||
</#if>
|
||||
|
||||
<#if !width?has_content>
|
||||
<#assign width=defaultWidth />
|
||||
</#if>
|
||||
|
||||
<#if !buttons?has_content>
|
||||
<#assign buttons = defaultButton />
|
||||
</#if>
|
||||
|
||||
<#if !toolbarLocation?has_content>
|
||||
<#assign toolbarLocation = defaultToolbarLocation />
|
||||
</#if>
|
||||
|
||||
<#-- Set up data -->
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
tinyMCEData : {
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
theme_advanced_buttons1 : "${buttons}",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "${toolbarLocation}",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_path : false,
|
||||
theme_advanced_resizing : true,
|
||||
height : "${height}",
|
||||
width : "${width}",
|
||||
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
|
||||
fix_list_elements : true,
|
||||
fix_nesting : true,
|
||||
cleanup_on_startup : true,
|
||||
gecko_spellcheck : true,
|
||||
forced_root_block: false
|
||||
// plugins: "paste",
|
||||
// theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
|
||||
// paste_create_paragraphs: false,
|
||||
// paste_create_linebreaks: false,
|
||||
// paste_use_dialog : true,
|
||||
// paste_auto_cleanup_on_paste: true,
|
||||
// paste_convert_headers_to_strong : true,
|
||||
// save_callback : "customSave",
|
||||
// content_css : "example_advanced.css",
|
||||
// extended_valid_elements : "a[href|target|name]"
|
||||
// plugins : "table",
|
||||
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
|
||||
// invalid_elements : "li",
|
||||
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<#-- Script to enable browsing individuals within a class -->
|
||||
<#--'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>',-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/jquery-tinymce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/edit/initTinyMce.js"></script>',
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template to setup and call scripts for form editing -->
|
||||
|
||||
<#-- Like original jsp, allow the passing of variables -->
|
||||
<#assign defaultHeight="200" />
|
||||
<#assign defaultWidth="75%" />
|
||||
<#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/>
|
||||
<#assign defaultToolbarLocation = "top" />
|
||||
<#if !height?has_content>
|
||||
<#assign height=defaultHeight/>
|
||||
</#if>
|
||||
|
||||
<#if !width?has_content>
|
||||
<#assign width=defaultWidth />
|
||||
</#if>
|
||||
|
||||
<#if !buttons?has_content>
|
||||
<#assign buttons = defaultButton />
|
||||
</#if>
|
||||
|
||||
<#if !toolbarLocation?has_content>
|
||||
<#assign toolbarLocation = defaultToolbarLocation />
|
||||
</#if>
|
||||
|
||||
<#-- Set up data -->
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
tinyMCEData : {
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
theme_advanced_buttons1 : "${buttons}",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "${toolbarLocation}",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_path : false,
|
||||
theme_advanced_resizing : true,
|
||||
height : "${height}",
|
||||
width : "${width}",
|
||||
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
|
||||
fix_list_elements : true,
|
||||
fix_nesting : true,
|
||||
cleanup_on_startup : true,
|
||||
gecko_spellcheck : true,
|
||||
forced_root_block: false
|
||||
// plugins: "paste",
|
||||
// theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
|
||||
// paste_create_paragraphs: false,
|
||||
// paste_create_linebreaks: false,
|
||||
// paste_use_dialog : true,
|
||||
// paste_auto_cleanup_on_paste: true,
|
||||
// paste_convert_headers_to_strong : true,
|
||||
// save_callback : "customSave",
|
||||
// content_css : "example_advanced.css",
|
||||
// extended_valid_elements : "a[href|target|name]"
|
||||
// plugins : "table",
|
||||
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
|
||||
// invalid_elements : "li",
|
||||
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<#-- Script to enable browsing individuals within a class -->
|
||||
<#--'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>',-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/jquery-tinymce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/edit/initTinyMce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/templates/freemarker/edit/forms/js/defaultDataPropertyUtils.js"></script>')}
|
|
@ -1,36 +1,36 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#if rangeOptionsExist = true >
|
||||
<p>${i18n().no_appropriate_entry}:</p>
|
||||
<#else>
|
||||
<p>${i18n().create_new_entry}</p>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign objectUri = editConfiguration.objectUri>
|
||||
<#else>
|
||||
<#assign objectUri = ""/>
|
||||
</#if>
|
||||
|
||||
<#assign typesList = editConfiguration.offerTypesCreateNew />
|
||||
<form class="editForm" action="${editConfiguration.mainEditUrl}" role="input" />
|
||||
<input type="hidden" value="${editConfiguration.subjectUri}" name="subjectUri" role="input" />
|
||||
<input type="hidden" value="${editConfiguration.predicateUri}" name="predicateUri" role="input" />
|
||||
<input type="hidden" value="${objectUri}" name="objectUri" role="input" />
|
||||
<input type="hidden" value="create" name="cmd" role="input" />
|
||||
|
||||
<select id="typeOfNew" name="typeOfNew" role="selection">
|
||||
<#assign typeKeys = typesList?keys />
|
||||
<#list typeKeys as typeKey>
|
||||
<option value="${typeKey}" role="option"> ${typesList[typeKey]} </option>
|
||||
</#list>
|
||||
</select>
|
||||
|
||||
<input type="submit" id="offerCreate" class="submit" value="${i18n().add_new_of_type}" role="button" />
|
||||
<#if rangeOptionsExist = false >
|
||||
<span class="or"> ${i18n().or} </span>
|
||||
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
|
||||
</#if>
|
||||
</form>
|
||||
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#if rangeOptionsExist = true >
|
||||
<p>${i18n().no_appropriate_entry}:</p>
|
||||
<#else>
|
||||
<p>${i18n().create_new_entry}</p>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign objectUri = editConfiguration.objectUri>
|
||||
<#else>
|
||||
<#assign objectUri = ""/>
|
||||
</#if>
|
||||
|
||||
<#assign typesList = editConfiguration.offerTypesCreateNew />
|
||||
<form class="editForm" action="${editConfiguration.mainEditUrl}" role="input" />
|
||||
<input type="hidden" value="${editConfiguration.subjectUri}" name="subjectUri" role="input" />
|
||||
<input type="hidden" value="${editConfiguration.predicateUri}" name="predicateUri" role="input" />
|
||||
<input type="hidden" value="${objectUri}" name="objectUri" role="input" />
|
||||
<input type="hidden" value="create" name="cmd" role="input" />
|
||||
|
||||
<select id="typeOfNew" name="typeOfNew" role="selection">
|
||||
<#assign typeKeys = typesList?keys />
|
||||
<#list typeKeys as typeKey>
|
||||
<option value="${typeKey}" role="option"> ${typesList[typeKey]} </option>
|
||||
</#list>
|
||||
</select>
|
||||
|
||||
<input type="submit" id="offerCreate" class="submit" value="${i18n().add_new_of_type}" role="button" />
|
||||
<#if rangeOptionsExist = false >
|
||||
<span class="or"> ${i18n().or} </span>
|
||||
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
|
||||
</#if>
|
||||
</form>
|
||||
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Placeholder for class intersection segment of menu management form. This file is deliberately empty for vitro. -->
|
|
@ -1,115 +1,115 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--Template for adding and editing menu items -->
|
||||
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
<section id="error-alert" role="alert" class="hidden">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
|
||||
<p></p>
|
||||
</section>
|
||||
|
||||
<h3>${menuAction} ${i18n().menu_item}</h3>
|
||||
|
||||
<section id="${menuAction?lower_case}-menu-item" role="region">
|
||||
<form method="POST" action="${formUrls}" class="customForm" role="${menuAction} menu item">
|
||||
<input type="hidden" name="cmd" id="cmd" value="${menuAction}" role="input" />
|
||||
<input type="hidden" name="menuItem" id="menuItem" value="${menuItem}" role="input" />
|
||||
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
|
||||
|
||||
<label for="menu-name">${i18n().name}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="menuName" value="${menuName}" role="input" />
|
||||
|
||||
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="prettyUrl" value="${prettyUrl}" role="input" />
|
||||
<p class="note">${i18n().start_with_leading_slash}</p>
|
||||
|
||||
<p>${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked</#if> role="radio" />
|
||||
<label class="inline" for="default"> ${i18n().default}</label>
|
||||
<br />
|
||||
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked</#if> role="input" />
|
||||
<label class="inline" for="custom"> ${i18n().custom_template_mixed_caps}</label>
|
||||
|
||||
<section id="custom-template" <#if selectedTemplateType != 'custom'>class="hidden" </#if>role="region">
|
||||
<input type="text" name="customTemplate" value="${customTemplate!}" size="40" role="input" /><span class="requiredHint"> *</span>
|
||||
</section>
|
||||
|
||||
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
|
||||
<p>${i18n().selected_page_content_type}</p>
|
||||
<p>
|
||||
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
|
||||
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<#-- Select class group -->
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
<label for="selectClassGroup">${i18n().select_page_content_type}<span class="requiredHint"> *</span></label>
|
||||
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">${i18n().select_one}</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "menuManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
|
||||
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" <#if includeAllClasses = true>checked</#if>
|
||||
<#if isIndividualsForClassesPage?has_content>
|
||||
<#list includeClasses as includeClass>
|
||||
<#if includeClass = classInClassGroup.URI>
|
||||
checked
|
||||
</#if>
|
||||
</#list>
|
||||
</#if> />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<#-- PLACEHOLDER - not yet implemented) -->
|
||||
<span class="ui-icon-sortable"></span> <#--sortable icon for dragging and dropping menu items-->
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<input type="submit" name="submit-${menuAction}" value="${i18n().save_changes}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
|
||||
<p class="requiredHint">* ${i18n().required_fields}</p>
|
||||
</form>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStrings = {
|
||||
supplyName: '${i18n().supply_name}',
|
||||
supplyPrettyUrl: '${i18n().supply_url}',
|
||||
startUrlWithSlash: '${i18n().start_url_with_slash}',
|
||||
supplyTemplate: '${i18n().supply_template}',
|
||||
supplyContentType: '${i18n().supply_content_type}',
|
||||
selectContentType: '${i18n().select_content_type}',
|
||||
allCapitalized: '${i18n().all_capitalized}'
|
||||
};
|
||||
</script>
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/menuManagement.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>')}
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--Template for adding and editing menu items -->
|
||||
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
<section id="error-alert" role="alert" class="hidden">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
|
||||
<p></p>
|
||||
</section>
|
||||
|
||||
<h3>${menuAction} ${i18n().menu_item}</h3>
|
||||
|
||||
<section id="${menuAction?lower_case}-menu-item" role="region">
|
||||
<form method="POST" action="${formUrls}" class="customForm" role="${menuAction} menu item">
|
||||
<input type="hidden" name="cmd" id="cmd" value="${menuAction}" role="input" />
|
||||
<input type="hidden" name="menuItem" id="menuItem" value="${menuItem}" role="input" />
|
||||
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
|
||||
|
||||
<label for="menu-name">${i18n().name}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="menuName" value="${menuName}" role="input" />
|
||||
|
||||
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="prettyUrl" value="${prettyUrl}" role="input" />
|
||||
<p class="note">${i18n().start_with_leading_slash}</p>
|
||||
|
||||
<p>${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked</#if> role="radio" />
|
||||
<label class="inline" for="default"> ${i18n().default}</label>
|
||||
<br />
|
||||
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked</#if> role="input" />
|
||||
<label class="inline" for="custom"> ${i18n().custom_template_mixed_caps}</label>
|
||||
|
||||
<section id="custom-template" <#if selectedTemplateType != 'custom'>class="hidden" </#if>role="region">
|
||||
<input type="text" name="customTemplate" value="${customTemplate!}" size="40" role="input" /><span class="requiredHint"> *</span>
|
||||
</section>
|
||||
|
||||
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
|
||||
<p>${i18n().selected_page_content_type}</p>
|
||||
<p>
|
||||
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
|
||||
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<#-- Select class group -->
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
<label for="selectClassGroup">${i18n().select_page_content_type}<span class="requiredHint"> *</span></label>
|
||||
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">${i18n().select_one}</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "menuManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
|
||||
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" <#if includeAllClasses = true>checked</#if>
|
||||
<#if isIndividualsForClassesPage?has_content>
|
||||
<#list includeClasses as includeClass>
|
||||
<#if includeClass = classInClassGroup.URI>
|
||||
checked
|
||||
</#if>
|
||||
</#list>
|
||||
</#if> />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<#-- PLACEHOLDER - not yet implemented) -->
|
||||
<span class="ui-icon-sortable"></span> <#--sortable icon for dragging and dropping menu items-->
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<input type="submit" name="submit-${menuAction}" value="${i18n().save_changes}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
|
||||
<p class="requiredHint">* ${i18n().required_fields}</p>
|
||||
</form>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStrings = {
|
||||
supplyName: '${i18n().supply_name}',
|
||||
supplyPrettyUrl: '${i18n().supply_url}',
|
||||
startUrlWithSlash: '${i18n().start_url_with_slash}',
|
||||
supplyTemplate: '${i18n().supply_template}',
|
||||
supplyContentType: '${i18n().supply_content_type}',
|
||||
selectContentType: '${i18n().select_content_type}',
|
||||
allCapitalized: '${i18n().all_capitalized}'
|
||||
};
|
||||
</script>
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/menuManagement.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/menumanagement_edit.js"></script>')}
|
|
@ -1,69 +1,69 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Browse Class Groups Section-->
|
||||
<#-----------Variable assignment-------------->
|
||||
<#--Requires Menu action be defined in parent template-->
|
||||
|
||||
<#assign classGroup = pageData.classGroup />
|
||||
<#assign classGroups = pageData.classGroups />
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#-- Menu action needs to be sent from main template-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
|
||||
|
||||
<#--HTML Portion-->
|
||||
<section id="browseClassGroup" class="contentSectionContainer">
|
||||
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
|
||||
<label for="selectClassGroup">${i18n().class_group_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">${i18n().select_one}</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "pageManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" checked="checked" />
|
||||
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" checked="checked" />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<span class="ui-icon-sortable"></span>
|
||||
</li>
|
||||
</#list>
|
||||
</ul><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsBrowseGroups = {
|
||||
browseClassGroup: '${i18n().browse_class_group}',
|
||||
allCapitalized: '${i18n().all_capitalized}',
|
||||
supplyClassGroup: '${i18n().supply_class_group}',
|
||||
selectClasses: '${i18n().select_classes_to_display}'
|
||||
};
|
||||
</script>
|
||||
<#--Include JavaScript specific to the types of data getters related to this content-->
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Browse Class Groups Section-->
|
||||
<#-----------Variable assignment-------------->
|
||||
<#--Requires Menu action be defined in parent template-->
|
||||
|
||||
<#assign classGroup = pageData.classGroup />
|
||||
<#assign classGroups = pageData.classGroups />
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#-- Menu action needs to be sent from main template-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
|
||||
|
||||
<#--HTML Portion-->
|
||||
<section id="browseClassGroup" class="contentSectionContainer">
|
||||
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
|
||||
<label for="selectClassGroup">${i18n().class_group_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">${i18n().select_one}</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "pageManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" checked="checked" />
|
||||
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}" checked="checked" />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<span class="ui-icon-sortable"></span>
|
||||
</li>
|
||||
</#list>
|
||||
</ul><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsBrowseGroups = {
|
||||
browseClassGroup: '${i18n().browse_class_group}',
|
||||
allCapitalized: '${i18n().all_capitalized}',
|
||||
supplyClassGroup: '${i18n().supply_class_group}',
|
||||
selectClasses: '${i18n().select_classes_to_display}'
|
||||
};
|
||||
</script>
|
||||
<#--Include JavaScript specific to the types of data getters related to this content-->
|
||||
<#include "pageManagement--browseClassGroupsScripts.ftl">
|
|
@ -1,5 +1,5 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#-- Scripts for class group browsing -->
|
||||
<#--Replaces Vitro's processing for individuals for classes with VIVO's processing internal classes-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processClassGroupDataGetterContent.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processIndividualsForClassesDataGetterContent.js"></script>')}
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#-- Scripts for class group browsing -->
|
||||
<#--Replaces Vitro's processing for individuals for classes with VIVO's processing internal classes-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processClassGroupDataGetterContent.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processIndividualsForClassesDataGetterContent.js"></script>')}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--These are the different content templates that will be cloned and used within page management-->
|
||||
<#include "pageManagement--browseClassGroups.ftl">
|
||||
<#include "pageManagement--sparqlQuery.ftl">
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--These are the different content templates that will be cloned and used within page management-->
|
||||
<#include "pageManagement--browseClassGroups.ftl">
|
||||
<#include "pageManagement--sparqlQuery.ftl">
|
||||
<#include "pageManagement--fixedHtml.ftl">
|
|
@ -1,18 +1,18 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Sets up script for custom form data. Including here instead of as separate javascript
|
||||
file to ensure this script is always loaded first. Can also make sure placed first in
|
||||
scripts list.-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
menuAction:"${menuAction}",
|
||||
addMenuItem:"${addMenuItem}",
|
||||
dataGetterLabelToURI:{
|
||||
//maps labels to URIs
|
||||
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
|
||||
"individualsForClasses": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter",
|
||||
"sparqlQuery":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter",
|
||||
"fixedHtml":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter"
|
||||
}
|
||||
};
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Sets up script for custom form data. Including here instead of as separate javascript
|
||||
file to ensure this script is always loaded first. Can also make sure placed first in
|
||||
scripts list.-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
menuAction:"${menuAction}",
|
||||
addMenuItem:"${addMenuItem}",
|
||||
dataGetterLabelToURI:{
|
||||
//maps labels to URIs
|
||||
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
|
||||
"individualsForClasses": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter",
|
||||
"sparqlQuery":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter",
|
||||
"fixedHtml":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter"
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -1,23 +1,23 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
|
||||
|
||||
<section id="fixedHtml" class="contentSectionContainer">
|
||||
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
|
||||
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">${i18n().enter_fixed_html_here}<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" class="doneWithContent" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsFixedHtml = {
|
||||
fixedHtml: '${i18n().fixed_html}',
|
||||
supplyVariableName: '${i18n().supply_variable_name}',
|
||||
noApostrophes: '${i18n().apostrophe_not_allowed}',
|
||||
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
|
||||
supplyHtml: '${i18n().supply_html}'
|
||||
};
|
||||
</script>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
|
||||
|
||||
<section id="fixedHtml" class="contentSectionContainer">
|
||||
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
|
||||
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">${i18n().enter_fixed_html_here}<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" class="doneWithContent" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsFixedHtml = {
|
||||
fixedHtml: '${i18n().fixed_html}',
|
||||
supplyVariableName: '${i18n().supply_variable_name}',
|
||||
noApostrophes: '${i18n().apostrophe_not_allowed}',
|
||||
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
|
||||
supplyHtml: '${i18n().supply_html}'
|
||||
};
|
||||
</script>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
|
||||
<section id="sparqlQuery" class="contentSectionContainer">
|
||||
<label id="variableLabel" for="variable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
|
||||
<#--Hiding query model for now-->
|
||||
<#-- <label id="queryModelLabel" for="queryModel">${i18n().query_model}</label> -->
|
||||
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
|
||||
<label id="queryLabel" for="queryLabel"><span id="querySpan">${i18n().enter_sparql_query_here}</span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsSparqlQuery = {
|
||||
sparqlResults: '${i18n().sparql_query_results}',
|
||||
supplyQueryVariable: '${i18n().supply_query_variable}',
|
||||
noApostrophes: '${i18n().apostrophe_not_allowed}',
|
||||
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
|
||||
supplyQuery: '${i18n().supply_sparql_query}'
|
||||
};
|
||||
</script>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
|
||||
<section id="sparqlQuery" class="contentSectionContainer">
|
||||
<label id="variableLabel" for="variable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
|
||||
<#--Hiding query model for now-->
|
||||
<#-- <label id="queryModelLabel" for="queryModel">${i18n().query_model}</label> -->
|
||||
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
|
||||
<label id="queryLabel" for="queryLabel"><span id="querySpan">${i18n().enter_sparql_query_here}</span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
|
||||
<#if menuAction == "Add">
|
||||
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
|
||||
</#if>
|
||||
</section>
|
||||
<script>
|
||||
var i18nStringsSparqlQuery = {
|
||||
sparqlResults: '${i18n().sparql_query_results}',
|
||||
supplyQueryVariable: '${i18n().supply_query_variable}',
|
||||
noApostrophes: '${i18n().apostrophe_not_allowed}',
|
||||
noDoubleQuotes: '${i18n().double_quote_note_allowed}',
|
||||
supplyQuery: '${i18n().supply_sparql_query}'
|
||||
};
|
||||
</script>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign actionText = "${i18n().add_new}" />
|
||||
<#if editConfiguration.dataPropertyStatement?has_content>
|
||||
<#assign actionText = "${i18n().edit_capitalized}"/>
|
||||
</#if>
|
||||
<#assign submitLabel>${actionText} ${i18n().label}</#assign>
|
||||
|
||||
<h2>${actionText} <em>${i18n().label}</em> for ${editConfiguration.subjectName}</h2>
|
||||
|
||||
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="text" name="${editConfiguration.varNameForObject}" id="label" size="70" value="${literalValues?html}" role="input"/>
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input"/>
|
||||
<input type="hidden" name="vitroNsProp" value="true" role="input"/>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitLabel}" role="input"/>
|
||||
or <a href="${cancelUrl}" class="cancel" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
<#--The original jsp included a delete form for deleting rdfs label.
|
||||
If required, deletion can be supported but it does not appear that is required currently.
|
||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign actionText = "${i18n().add_new}" />
|
||||
<#if editConfiguration.dataPropertyStatement?has_content>
|
||||
<#assign actionText = "${i18n().edit_capitalized}"/>
|
||||
</#if>
|
||||
<#assign submitLabel>${actionText} ${i18n().label}</#assign>
|
||||
|
||||
<h2>${actionText} <em>${i18n().label}</em> for ${editConfiguration.subjectName}</h2>
|
||||
|
||||
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="text" name="${editConfiguration.varNameForObject}" id="label" size="70" value="${literalValues?html}" role="input"/>
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" role="input"/>
|
||||
<input type="hidden" name="vitroNsProp" value="true" role="input"/>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitLabel}" role="input"/>
|
||||
or <a href="${cancelUrl}" class="cancel" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
<#--The original jsp included a delete form for deleting rdfs label.
|
||||
If required, deletion can be supported but it does not appear that is required currently.
|
||||
-->
|
Loading…
Add table
Add a link
Reference in a new issue