Englishfrançais

Reading Corner

Did you know...

R@conte-moi une histoire is a free service offered by the Bibliothèque et Archives nationales du Québec (BAnQ) where you can have a story read in French by phone.
In the Montreal area, call 514-873-2670
Elsewhere in Quebec, call 1-866-235-1802

An error occurred while processing the template.
Error while loading tag library for URI "/WEB-INF/tld/liferay-ui.tld" from TLD location "servletContext:/WEB-INF/tld/liferay-ui.tld"; see cause exception.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign liferay_ui = taglibLiferayHas...  [in template "20154#20194#379245" at line 8, column 1]
----
1<#-- 
2Application display templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
9 
10 
11<#assign portletName = themeDisplay.getPortletDisplay().getPortletName()> 
12<#assign plid = getterUtil.getLong(themeDisplay.getPlid())> 
13<#assign portletURL = portletURLFactory.create(renderRequest, portletName, plid, "RENDER_PHASE")> 
14<#assign windowState = windowStateFactory.getWindowState("MAXIMIZED")> 
15 
16<#assign host="http://www.accentquebec.com"> 
17<#if themeDisplay.isSignedIn()> 
18    <#assign host="http://www.learnquebec.ca/web/accent-quebec"> 
19</#if> 
20 
21<style> 
22     
23.resultat .span3{ 
24    background-color:white; 
25    height:320px; 
26    margin-right:1% !important; 
27    margin-left:0 !important; 
28    margin-bottom:1% !important; 
29    width:24% !important; 
30
31  .resultat img{ 
32    margin:0 auto; 
33    /*height:100px;*/ 
34
35  .resultat h2{ 
36    font-size:1.1em; 
37    line-height: 22px; 
38   
39
40  .resultat .infos{ 
41    padding:10px; 
42   
43
44   
45  .grid-item{ 
46    background-color: #f5f5f5; 
47    border: 1px solid #f1f1f1; 
48    width:250px; 
49    margin:5px; 
50    height:300px; 
51    overflow: hidden; 
52    margin-top: 20px; 
53    border-radius: 10px; 
54
55  .res-infos{ 
56    margin-top:20px; 
57    padding: 20px 10px 10px 10px; 
58
59  .res-content{ 
60    color: #FCB426 ! important; 
61    text-transform: uppercase; 
62    font-weight: bold ! important; 
63    padding:0 0 5px!important; 
64    margin: 0 0 0px!important; 
65
66</style> 
67 
68<div class="row-fluid resultat"> 
69    <div class="span12"> 
70        <div class="grid resources-grid" > 
71        <#if entries?has_content> 
72            <#list entries as curEntry> 
73                <#assign logo = ""> 
74                <#assign option = ""> 
75                <#assign page = ""> 
76                <#assign renderer = curEntry.getAssetRenderer()> 
77        	    <#assign editURL = renderer.getURLEdit(renderRequest,renderResponse, windowState, portletURL)> 
78                <#assign className = renderer.getClassName()> 
79                <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
80                <#assign link = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL)> 
81                 
82                <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
83    	        <#assign journalArticle = renderer.getArticle() 
84    	            viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)  
85    		        redirect = "_" + themeDisplay.getPortletDisplay().getId() + "_redirect" 
86    		        viewURL = httpUtil.setParameter(viewURL,redirect,currentURL) 
87    		    /> 
88                <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
89                <#assign rootElement = document.getRootElement()> 
90                 
91                <#list rootElement.elements() as dynamicElement> 
92                   <#if "option" == dynamicElement.attributeValue("name")> 
93                        <#assign option = dynamicElement.element("dynamic-content").getText()> 
94                    </#if> 
95                    <#if "logo" == dynamicElement.attributeValue("name")> 
96                        <#assign logo = dynamicElement.element("dynamic-content").getText()> 
97                    </#if> 
98                    <#if "page" == dynamicElement.attributeValue("name")> 
99                        <#assign page = dynamicElement.element("dynamic-content").getText()> 
100                        <#if page?has_content> 
101                            <#-- split the string to just get the page layout id , groupID and if its a private layout--> 
102                            <#list page?split("@") as item> 
103                                <#if item_index == 0> 
104                                    <#assign linkPageId = item?number> 
105                                </#if> 
106                                <#if item_index == 1> 
107                                    <#if item == "private"> 
108                                        <#assign linkPrivate = true> 
109                                    <#else> 
110                                        <#assign linkPrivate = false> 
111                                    </#if> 
112                                </#if> 
113                                <#if item_index = 2> 
114                                    <#assign linkGroupId = item?number> 
115                                </#if> 
116                            </#list> 
117                     
118                            <#-- get layout --> 
119                            <#assign layoutLocalService = staticUtil["com.liferay.portal.service.LayoutLocalServiceUtil"]> 
120                            <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, linkPrivate, linkPageId)> 
121                     
122                            <#-- get Friendly URL --> 
123                            <#assign portalUtil = staticUtil["com.liferay.portal.util.PortalUtil"]> 
124                            <#assign page = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay)> 
125                            <#assign page=page?replace("http://www.learnquebec.ca/web/accent-quebec",host)> 
126             
127                        </#if> 
128                    </#if> 
129                </#list> 
130    		</#if> 
131        	    <!-- TUILE --> 
132        	    <div class="grid-item"> 
133            	     
134        	        <#if page?has_content> 
135        	            <div style="text-align:center;height:120px;overflow: hidden;background-color:lightgray"> 
136                            <img src="http://www.learnquebec.ca/documents/233018/233122/ebook-2467267_640.jpg/3a58744e-8d43-460b-a215-70ec741e60e1?t=1522855948222" style="width:100%"> 
137                        </div> 
138                    <#else> 
139                        <div style="text-align:center;height:120px;overflow: hidden;background-color:#fff"> 
140                            <img src="http://www.learnquebec.ca/documents/233018/233122/Logo-Livres_ouverts.jpg" style="width:100%"> 
141                        </div> 
142                    </#if> 
143                    <div class="res-infos"> 
144                        <i class="fa fa-book fa-2x"></i> 
145                        <span class="lfr-meta-actions icons-container"><@getEditIcon/> </span>  
146            		    <#if page?has_content> 
147            		        <h2><a style="font-weight:bold;color:darkgrey;text-transform:uppercase" href="${page}">${curEntry.getTitle(locale)}</a></h2> 
148            		    <#else> 
149            		        <h2 style="color:darkgrey;text-transform:uppercase">${curEntry.getTitle(locale)}</h2> 
150            		    </#if> 
151            		   
152            		  <#if !page?has_content> 
153            		    <a class="res-content" href="${host}/books-according-to-age-preschool"><#if locale == "en_US">preschool<#else>préscolaire</#if></a> 
154            		    <a class="res-content" href="${host}/books-according-to-age-primary"><#if locale == "en_US">Elementary<#else>primaire</#if></a> 
155            		    <a class="res-content" href="${host}/books-according-to-age-secondary"><#if locale == "en_US">secondary<#else>secondaire</#if></a> 
156            		  </#if> 
157            		</div> 
158                </div> 
159        	     
160        	</#list> 
161        </#if> 
162        </div> 
163    </div> 
164</div> 
165 
166<#macro getEditIcon> 
167	<#if renderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
168		<#assign redirectURL = renderResponse.createRenderURL() /> 
169 
170		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
171		${redirectURL.setWindowState("pop_up")} 
172 
173		<#assign editPortletURL = renderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
174 
175		<#if validator.isNotNull(editPortletURL)> 
176			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(renderer.getTitle(locale))) /> 
177 
178			<@liferay_ui["icon"] 
179				image="edit" 
180				message=title 
181				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
182			/> 
183		</#if> 
184	</#if> 
185</#macro> 
186 
187<script> 
188    $('.grid').masonry({ 
189  // options 
190  itemSelector: '.grid-item', 
191  fitWidth: true, 
192  gutter: 20 
193}); 
194</script>