Asset Publisher

Keine Treffer gefunden

Keine Treffer gefunden
Positionpaper Governance VDMA ZVEI
Industrie 4.0 - Mastering the Transition

Keine Treffer gefunden

Keine Treffer gefunden

Keine Treffer gefunden
Asset Publisher
Fehler bei der Verarbeitung der Vorlage.
Expression dlFileEntryService.getDLFileEntryByUuidAndGroupId is undefined on line 68, column 58 in 10153#10191#14850599.
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] />  
3<#assign portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet_2_0.tld"] />  
4<#assign isAdmin = themeDisplay.getPermissionChecker().isCompanyAdmin() || themeDisplay.getPermissionChecker().isGroupAdmin(themeDisplay.getScopeGroupId())/> 
5<#assign vdmaNoTitle = ""/> 
6<#assign themeImagesPath = themeDisplay.getPathThemeImages()/> 
7<#if isAdmin> 
8    <#assign vdmaNoTitle = "vdma-notitle"/>     
9</#if> 
10<#assign dateFormat = "dd.MM.yyyy" />  
11<#assign oddEven = "odd"/> 
12 
13<#assign journalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService") /> 
14<#assign dlFileEntryService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryService") /> 
15<#assign selectedtab = request.getAttribute('view.jsp-selectedtab')!0/> 
16 
17<#assign namespace > 
18    <@portlet.namespace > 
19    </@portlet.namespace> 
20</#assign> 
21 
22<div class="downloads-simple-container-tabs"> 
23    <ul class="nav nav-tabs nav-justified"> 
24        <#assign curNdx = 0 /> 
25	    <#list renderRequest.getAttribute("categoryMap")?keys as category> 
26            <#assign activeTabClass = ""/> 
27            <#if selectedtab == category.id || (selectedtab == 0 && curNdx == 0)> 
28                <#assign activeTabClass = "active"/> 
29            </#if> 
30            <li class="${activeTabClass}"> 
31                <a data-toggle="tab" href="#downloads-simple-tab-${category.id}-${namespace}">${category.title}</a> 
32            </li> 
33            <#assign curNdx = curNdx + 1 /> 
34        </#list> 
35	</ul> 
36	 
37	<div class="tab-content" id="vdma-downloads-simple-tabs-content${namespace}"> 
38		<#assign categoryMap = renderRequest.getAttribute("categoryMap") /> 
39		<#assign keys = categoryMap?keys /> 
40		<#assign vals = categoryMap?values /> 
41		<#assign curNdx = 0 /> 
42         
43		<#list keys as category> 
44	        <#assign activeTabClass = ""/> 
45            <#if selectedtab == category.id || (selectedtab == 0 && curNdx == 0)> 
46                <#assign activeTabClass = "active"/> 
47            </#if> 
48		    <#assign entries = vals[curNdx] /> 
49    	    <div class="tab-pane ${activeTabClass}" id="downloads-simple-tab-${category.id}-${namespace}"> 
50    	        <#if (entries?size > 0)> 
51                    <#list entries as entry> 
52        				<#assign className = entry.getClass().getName() /> 
53                    	<#assign imageSrc =""/> 
54                    	<#if className == "org.vdma.util.asset.DocAndMediaAssetEntry"> 
55                    		<#assign fileEntry = entry.getFileEntry()/> 
56                    		<#assign fileExtension = fileEntry.getExtension()/> 
57                    		<#assign docAndMedia = true/> 
58                    	<#else> 
59                    		<#assign docAndMedia = false/> 
60                    		<#assign entryfile = "${entry.getFieldValue('file')}"/> 
61                    		 
62                    		<#assign res = entryfile?matches("/documents/([0-9]+)/[0-9]+/[^/]+/([0-9a-f-]+)")/> 
63                        	<#assign entryTitle = "${entry.getFieldValue('title')}"/> 
64                     
65                    		<#if res>  
66                                <#assign groupId = res?groups[1]/> 
67                        		<#assign entryfile = res?groups[2]/> 
68                        	    <#assign fileEntry = dlFileEntryService.getDLFileEntryByUuidAndGroupId(groupId, entryfile)/> 
69                                <#assign fileExtension = fileEntry.getExtension()/> 
70                            </#if> 
71                	    </#if> 
72                    	<#if fileExtension?has_content> 
73                    	<#if oddEven == "odd"> 
74                    		<#assign oddEven = "even"/> 
75                    		<#else> 
76                    		<#assign oddEven = "odd"/> 
77                    	</#if> 
78        				<div class="vdma-publication-line-wrapper ${oddEven}"> 
79    						<div class="vdma-publication-line"> 
80    							<table> 
81    								<thead></thead> 
82    								<tbody> 
83    									<tr> 
84    										<td class="image-column">	 
85    											<#if docAndMedia> 
86    												<img src="${themeImagesPath}/file_system/large/${fileExtension}.png"/> 
87    												<#else> 
88    												<img src="${imageSrc}"/> 
89    											</#if>								 
90    										</td> 
91    										<td class="title-column"> 
92    											<#if ! entryTitle?has_content> 
93    												<#assign entryTitle = entry.getTitle()/> 
94    											</#if>								 
95    											${entryTitle} 
96    										</td> 
97    										<td class="link-column"> 
98    											<#assign t =.now/> 
99    											<#assign fileUrl ="/documents/${fileEntry.getRepositoryId()}/${fileEntry.getFolderId()}/${fileEntry.getTitle()}/${fileEntry.getUuid()}"/> 
100    											<a href="${fileUrl}" target="_blank" title="${entryTitle}" class="vdma-button-arrow-right"> 
101    												<@liferay_ui["message"] key="downloads.grouped.download" /> 
102    											</a> 
103    											<div class="clear-both"></div> 
104    										</td> 
105    									</tr> 
106    								</tbody> 
107    							</table> 
108    							<div class="vdma-publication-right"> 
109    								<div class="vdma-publication-text padding-right-69"></div> 
110    								<div class="vdma-item-links no-padding"></div> 
111    								<div class="clear-right"></div> 
112    							</div> 
113    							<div class="clear-both"></div> 
114    						</div> 
115    					</div>	 
116    			    	</#if> 
117    			    	<#assign entryTitle = "" /> 
118                    </#list> 
119                <#else> 
120                    <br/> 
121                    <span><@liferay_ui["message"] key="no.results.found" /></span> 
122                </#if> 
123            </div> 
124            <#assign curNdx = curNdx + 1 /> 
125        </#list> 
126	</div>	 
127</div> 
128<style> 
129    .downloads-simple-container-tabs { 
130        font: 1.2em/12px "Open Sans", sans-serif; 
131
132	.downloads-simple-container-tabs .tab-content { 
133		padding: 0 30px 10px; 
134		margin-bottom: 10px; 
135	    overflow: hidden; 
136
137	.downloads-simple-container-tabs .tab-internal-content { 
138		padding: 0 30px 10px; 
139
140	.vdma-w-620 .downloads-simple-container-tabs .vdma-publication-text { 
141		display: inline-block; 
142		font-size: 14px; 
143		width: 75%; 
144
145	.vdma-widget-body .downloads-simple-container-tabs .vdma-publication-line-wrapper { 
146		padding: 0; 
147
148	.downloads-simple-container-tabs .vdma-button-arrow-right { 
149		margin-right: 10px; 
150		color: #F18700; 
151
152	.blue .downloads-simple-container-tabs .vdma-button-arrow-right { 
153		margin-right: 10px; 
154		color: #0F6584; 
155
156	.linkwrapper{ 
157		white-space: nowrap; 
158		overflow: hidden; 
159		text-overflow: ellipsis; 
160		width: 100%!important; 
161		vertical-align: center; 
162
163	.downloads-simple-container-tabs .image-column img { 
164		width: 30px; 
165
166	.downloads-simple-container-tabs .image-column { 
167		width: 11%; 
168
169	.downloads-simple-container-tabs .title-column { 
170		width: 75%; 
171
172	.downloads-simple-container-tabs table { 
173		width: 101%; 
174
175	.vdma-w-620 .vdma-widget-body .downloads-simple-container-tabs .vdma-publication-line-wrapper:first-child .vdma-publication-line { 
176  		background: none repeat scroll 0 0 transparent; 
177  		height: 32px;  
178
179	.aui .downloads-simple-container-tabs .nav.nav-tabs>li a { 
180  	    background-color: transparent; 
181  	    border: none; 
182  	    color: white; 
183  	    height: 21px; 
184  	    font-weight: bold; 
185  	    padding: 0; 
186
187  	.aui .downloads-simple-container-tabs .nav.nav-tabs>li a.active { 
188  	    background-color: transparent; 
189  	    border: none; 
190
191  	.aui .downloads-simple-container-tabs .nav.nav-tabs>li a:hover { 
192  	    background-color: transparent; 
193
194	.aui .downloads-simple-container-tabs .nav.nav-tabs>li a:focus { 
195  	    background-color: transparent; 
196
197  	.vdma-widget .vdma-widget-body .downloads-simple-container-tabs .nav li { 
198  	    background-color: #646464; 
199  	    border: none; 
200        float:none; 
201        display:table-cell; 
202        width:1%; 
203        text-align:center; 
204        margin: 0; 
205        padding: 0; 
206        border-right: 1px solid #a9a9a9; 
207
208  	.vdma-widget .vdma-widget-body .downloads-simple-container-tabs .nav li.active { 
209  	    background-color: #a9a9a9; 
210
211</style> 
212<script> 
213	function paintArrows() { 
214		if ($('.downloads-simple-container-tabs').closest('.vdma-widget-body').hasClass('blue')) { 
215			$('.downloads-simple-container-tabs a.vdma-button-arrow-right').addClass('blue'); 
216			$('.downloads-simple-container-tabs').closest('.vdma-widget').find('.vdma-pager').addClass('blue'); 
217
218
219	paintArrows(); 
220</script>