All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.display_settings.jspf Maven / Gradle / Ivy

There is a newer version: 5.0.147
Show newest version
<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>


	
		
			
		

		
<% for (String paginationType : assetPublisherDisplayContext.PAGINATION_TYPES) { %> <% } %> <% String helpMessage1 = "" + LanguageUtil.format(request, "content-related-to-x", StringPool.DOUBLE_PERIOD, false) + ""; String helpMessage2 = "" + LanguageUtil.format(request, "content-with-tag-x", StringPool.DOUBLE_PERIOD, false) + ""; %>
<% String[] conversions = DocumentConversionUtil.getConversions("html"); for (String conversion : conversions) { %> <% } %>
<% // Left list List leftList = new ArrayList(); String[] metadataFields = assetPublisherDisplayContext.getMetadataFields(); for (int i = 0; i < metadataFields.length; i++) { String folderColumn = metadataFields[i]; leftList.add(new KeyValuePair(folderColumn, LanguageUtil.get(request, folderColumn))); } // Right list List rightList = new ArrayList(); Arrays.sort(metadataFields); String[] allMetadataFields = new String[] {"create-date", "modified-date", "publish-date", "expiration-date", "priority", "author", "view-count", "categories", "tags"}; for (String folderColumn : allMetadataFields) { if (Arrays.binarySearch(metadataFields, folderColumn) < 0) { rightList.add(new KeyValuePair(folderColumn, LanguageUtil.get(request, folderColumn))); } } rightList = ListUtil.sort(rightList, new KeyValuePairComparator(false, true)); %>
var selectDisplayStyle = $('#displayStyle'); function showHiddenFields() { var hiddenFields = $('.hidden-field'); hiddenFields.parentsUntil('.general-display-settings', '.checkbox, .form-group').addClass('hide'); var displayStyle = selectDisplayStyle.val(); if (displayStyle == 'full-content') { showParent('.show-asset-title'); showParent('.show-context-link'); showParent('.show-extra-info'); } else { if (displayStyle == 'abstracts') { showParent('.abstract-length'); } showParent('.asset-link-behavior'); } } function showParent(child, parent) { $(child).parentsUntil('.general-display-settings', '.form-group').removeClass('hide'); } showHiddenFields(); selectDisplayStyle.on('change', showHiddenFields);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy