Changes for page Příklady podmínek

Last modified by Petr Benda on 2025/04/04 10:23

From version 7.1
edited by Jan Šimeček
on 2024/08/15 10:58
Change comment: There is no comment for this version
To version 2.1
edited by Jan Šimeček
on 2024/07/16 13:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,8 @@
1 1  {{toc/}}
2 2  
3 -|(% colspan="1" %)(((
4 4  = Obecné podmínky na dílo, svazek, čtenáře =
5 5  
6 -|
7 -
8 -(% class="active" %)|**Popis podmínky**|(% colspan="1" %)**Podmínka FOX/SQL**|(% colspan="1" %)**Podmínka v [[TQL - Tritius Query Language>>doc:uzivatelsky-manual.Pro-spravce.TQL-Tritius-Query-Language.WebHome]] od verze 6.1.0**|**PodmínkaSQL**|(% colspan="1" %)**Automatický převod**
5 +|=Popis podmínky|=(% colspan="1" %)Podmínka FOX/SQL|=(% colspan="1" %)Podmínka v [[TQL - Tritius Query Language>>url:https://confluence.tritius.cz/display/TP/TQL+-+Tritius+Query+Language]] od verze 6.1.0|=PodmínkaSQL|=(% colspan="1" %)Automatický převod
9 9  |Titulová podmínka na druh dokumentu kromě AV Media|(% colspan="1" %)druhdoku<>'AV'|(% colspan="1" %)workTypeId <> -7| |(% colspan="1" %)
10 10  |(% colspan="1" %) |(% colspan="1" %)tsign like 'TK%' or tsign like 'DH%'|(% colspan="1" %)workLocMark STARTS IN ('TK', 'DH')|(% colspan="1" %) |(% colspan="1" %)
11 11  |(% colspan="1" %) |(% colspan="1" %)druhdoku='AV' and tsign not like 'DVDB%'|(% colspan="1" %)workTypeId = -7 AND workLocMark NOT STARTS 'DVDB'|(% colspan="1" %) |(% colspan="1" %)
... ... @@ -71,9 +71,10 @@
71 71  Nastavení - Vlastní informace
72 72  )))|(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %)
73 73  |(% colspan="1" %)Cena svazku je větší než 500|(% colspan="1" %) |(% colspan="1" %)itemPrice > 500|(% colspan="1" %) |(% colspan="1" %)
74 -|(% colspan="1" %)tematika =|(% colspan="1" %)tematika='6'|(% colspan="1" %)itemThematicGroupId IS NULL OR itemThematicGroupId = 3|(% colspan="1" %)
71 +|(% colspan="1" %)tematika =|(% colspan="1" %)tematika='6'|(% colspan="1" %)itemThematicGroupId IS NULL OR itemThematicGroupId = 3|(% colspan="1" %)
75 75  
76 76  {{{i.thematic_group in (-1)}}}|(% colspan="1" %)
74 +
77 77  |(% colspan="1" %)id titulu =|(% colspan="1" %) |(% colspan="1" %)workId = 602439|(% colspan="1" %) |(% colspan="1" %)
78 78  |(% colspan="1" %)Nevyplněná adresa čtenáře s vyloučenými kategoriemi a čtenářské číslo menší než 9999000|(% colspan="1" %)(tulice=' ' or tmesto=' ' or tpsc=' ') and  !inlist(kategorie,'h','M','X') and ccislo < 9999000 |(% colspan="1" %)(userStreetNumberPermanent = '' OR userCityPermanent = '' OR userPostNumberPermanent = '')
79 79  AND (userCategoryCode IS NULL OR userCategoryCode NOT IN ('h', 'M', 'X'))
... ... @@ -137,7 +137,6 @@
137 137  ~/~/ Svazková podmínka
138 138  itemHasAllLabelIds(3, 6)
139 139  )))|(% colspan="1" %) |(% colspan="1" %)
140 -)))|(% colspan="1" %)
141 141  
142 142  = SQL podmínky (na díla, svazky, ...) =
143 143  
... ... @@ -165,7 +165,7 @@
165 165  |(((
166 166  = Pravidla akcí - Změny před/po akci =
167 167  
168 -|=Popis|=(% colspan="1" %)[[TQL - Tritius Query Language>>doc:uzivatelsky-manual.Pro-spravce.TQL-Tritius-Query-Language.WebHome]] před akcí od verze 6.1.0|=(% colspan="1" %)[[TQL - Tritius Query Language>>doc:uzivatelsky-manual.Pro-spravce.TQL-Tritius-Query-Language.WebHome]] po akci od verze 6.1.0|=(% colspan="1" %)JAVA podmínka před akcí|=JAVA podmínka po akci|=(% colspan="1" %)Poznámka
165 +|=Popis|=(% colspan="1" %)[[TQL - Tritius Query Language>>url:https://confluence.tritius.cz/display/TP/TQL+-+Tritius+Query+Language]] před akcí od verze 6.1.0|=(% colspan="1" %)[[TQL - Tritius Query Language>>url:https://confluence.tritius.cz/display/TP/TQL+-+Tritius+Query+Language]] po akci od verze 6.1.0|=(% colspan="1" %)JAVA podmínka před akcí|=JAVA podmínka po akci|=(% colspan="1" %)Poznámka
169 169  |(% colspan="1" %)Přepůjčení svazku čtenáři s id = 1|(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %)skipReservations(params);|(% colspan="1" %)borrowToReader(1L, item, department, now);|(% colspan="1" %)Od verze 1.22.0
170 170  |(% colspan="1" %)Přepůjčení svazku čtenáři s id = 1 pokud neexistuje rezervace|(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %)borrowToReaderIfNotReserved(1L, item, department, now);|(% colspan="1" %)Od verze 1.28.0
171 171  |(% colspan="1" %)Změna kategorie svazku po vrácení|(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %) |(% colspan="1" %)item.setBorrowCategory(serviceProvider.getBorrowCategoryService().load(1102L));|(% colspan="1" %)-
... ... @@ -176,7 +176,7 @@
176 176  item.setLocationOwner(serviceProvider.getLocationService().load(245L));
177 177  )))|(% colspan="1" %)-
178 178  
179 -|=Popis|=(% colspan="1" %)[[TQL - Tritius Query Language>>doc:uzivatelsky-manual.Pro-spravce.TQL-Tritius-Query-Language.WebHome]] podmínka od verze 6.1.0|=JAVA podmínka|=Poznámka
176 +|=Popis|=(% colspan="1" %)[[TQL - Tritius Query Language>>url:https://confluence.tritius.cz/display/TP/TQL+-+Tritius+Query+Language]] podmínka od verze 6.1.0|=JAVA podmínka|=Poznámka
180 180  |Čtenářská podmínka, zda má čtenář platnou registraci na oddělení, na které přichází.|(% colspan="1" %) |
181 181  
182 182  {{{cz.effectiva.tritius.server.ao.contexts.ServiceContext context = cz.effectiva.tritius.utils.UserContext.createCurrentContext(now); cz.effectiva.tritius.server.usecase.registration.CheckRegistrationRequest request = cz.effectiva.tritius.server.usecase.registration.CheckRegistrationRequest.lastEndingActiveOf(userResult.getUser(), department, context); return serviceProvider.getRegistrationService().checkRegistration(request).isHasActiveRegistration();}}}|-
... ... @@ -193,7 +193,7 @@
193 193  
194 194  = Dispečink internetu =
195 195  
196 -|=Popis příkazu|=(% colspan="1" %)Podmínka v [[TQL - Tritius Query Language>>doc:uzivatelsky-manual.Pro-spravce.TQL-Tritius-Query-Language.WebHome]] od verze 6.1.0|=(% colspan="1" %)Java podmínka|=(% colspan="1" %)Poznámka
193 +|=Popis příkazu|=(% colspan="1" %)Podmínka v [[TQL - Tritius Query Language>>url:https://confluence.tritius.cz/display/TP/TQL+-+Tritius+Query+Language]] od verze 6.1.0|=(% colspan="1" %)Java podmínka|=(% colspan="1" %)Poznámka
197 197  |(% colspan="1" %)Podmínka na konkrétního uživatele|(% colspan="1" %)userReaderNumberValue= 644|(% colspan="1" %)return (userResult ~!= null && userResult.getUser() ~!= null && userResult.getUser().getReaderNumber() ~!=null) ? userResult.getUser().getReaderNumber().getValue().equals(644L) : false;|(% colspan="1" %)
198 198  
199 199  = Vlastní informace =
... ... @@ -200,12 +200,12 @@
200 200  
201 201  Používá se **FreeMarker**. Viz Google a psaní podmínek.
202 202  
203 -|=(% style="width: 255px;" %)Popis|=(% colspan="1" style="width: 745px;" %)Kód|=(% style="width: 517px;" %)Náhled
204 -|(% style="width:255px" %)(((
200 +|=Popis|=(% colspan="1" %)Kód|=Náhled
201 +|(((
205 205  Čtenářské číslo; - Jméno čtenáře
206 206  
207 207  Datum narození; Datum poslední návštěvy; - Počet čekajících rezervací a odložení; - Text z kolonky POZOR
208 -)))|(% colspan="1" style="width:745px" %)(((
205 +)))|(% colspan="1" %)(((
209 209  <#if container.getBirthdate()??>
210 210  ${container.getBirthdate()?datetime?string('dd.MM.yy')}
211 211  </#if>
... ... @@ -219,24 +219,24 @@
219 219  <#if container.hasCautionNote()>
220 220  - <font color="red"> ${container.getCautionNote()}</font>
221 221  </#if>
222 -)))|(% style="width:517px" %)(((
219 +)))|(((
223 223  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2019-9-3%209%3A29%3A14.png?version=1&modificationDate=1567495748000&api=v2]]
224 224  )))
225 -|(% colspan="1" style="width:255px" %)(((
222 +|(% colspan="1" %)(((
226 226  Čtenářské číslo; - Jméno čtenáře
227 227  
228 228  Věk čtenáře; @ pokud má čtenář vyplněný email; Datum poslední návštěvy; Datum konce registrace
229 -)))|(% colspan="1" style="width:745px" %)<#if container.getAgeFormated()??>
226 +)))|(% colspan="1" %)<#if container.getAgeFormated()??>
230 230  Věk: ${container.getAgeFormated()}
231 231  </#if>
232 -${container.getInfoMailLastVisitEndingRegistration()}|(% colspan="1" style="width:517px" %)(((
229 +${container.getInfoMailLastVisitEndingRegistration()}|(% colspan="1" %)(((
233 233  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2019-9-3%209%3A33%3A56.png?version=1&modificationDate=1567496030000&api=v2]]
234 234  )))
235 -|(% colspan="1" style="width:255px" %)(((
232 +|(% colspan="1" %)(((
236 236  Čtenářské číslo; - Jméno čtenáře
237 237  
238 238  Počet čekajících rezervací a odložení; Datum poslední návštěvy; Datum konce registrace
239 -)))|(% colspan="1" style="width:745px" %)(((
236 +)))|(% colspan="1" %)(((
240 240  <#if container.getWaitingRequestsCount()!=0>
241 241  <font color="red">${container.translate("Waiting_retrievals")}: ${container.getWaitingRequestsCount()}
242 242  </font>
... ... @@ -243,27 +243,27 @@
243 243  </#if>
244 244  
245 245  ${container.getInfoMailLastVisitEndingRegistration()}
246 -)))|(% colspan="1" style="width:517px" %)(((
243 +)))|(% colspan="1" %)(((
247 247  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2019-9-3%209%3A37%3A5.png?version=1&modificationDate=1567496219000&api=v2]]
248 248  )))
249 -|(% colspan="1" style="width:255px" %)(((
246 +|(% colspan="1" %)(((
250 250  Čtenářské číslo; - Jméno čtenáře
251 251  
252 252  @ pokud má čtenář vyplněný email; Datum poslední návštěvy; Datum konce registrace (zeleně pokud platí, červeně pokud již skončila)
253 -)))|(% colspan="1" style="width:745px" %)${container.getInfoMailLastVisit()}
250 +)))|(% colspan="1" %)${container.getInfoMailLastVisit()}
254 254  <#if container.isRegistrationExpired() && container.loadLastEndingRegistrationCharge()??>
255 255  <font color="red">${container.loadLastEndingRegistrationCharge()?string("dd.MM.yyyy")}</font>
256 256  </#if>
257 257  <#if container.isRegistrationExpired()==false && container.loadLastEndingRegistrationCharge()??>
258 258  <font color="green">${container.loadLastEndingRegistrationCharge()?string("dd.MM.yyyy")}</font>
259 -</#if>|(% colspan="1" style="width:517px" %)(((
256 +</#if>|(% colspan="1" %)(((
260 260  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2019-9-6%2011%3A1%3A21.png?version=1&modificationDate=1567760475000&api=v2]]
261 261  )))
262 -|(% colspan="1" style="width:255px" %)(((
259 +|(% colspan="1" %)(((
263 263  Čtenářské číslo; - Jméno čtenáře
264 264  
265 265  @ pokud má čtenář vyplněný email; Datum poslední návštěvy; Datum konce registrace (zeleně pokud platí, červeně pokud během 31 dní vyprší)
266 -)))|(% colspan="1" style="width:745px" %)(((
263 +)))|(% colspan="1" %)(((
267 267  ${container.getInfoMailLastVisit()}
268 268  
269 269  <#if container.getWaitingRequestsCount()!=0>
... ... @@ -279,17 +279,17 @@
279 279  </#if>
280 280  ${container.loadLastEndingRegistrationCharge()?string("dd.MM.yyyy")}</font>
281 281  </#if>
282 -)))|(% colspan="1" style="width:517px" %)(((
279 +)))|(% colspan="1" %)(((
283 283  [[image:https://confluence.tritius.cz/download/attachments/35815451/snimek-vlastni-info.png?version=1&modificationDate=1602765335000&api=v2]]
284 284  )))
285 -|(% colspan="1" style="width:255px" %)Věk obarvený podle let. Nad 15 (a zároveň) červený, pod 15 modrý. |(% colspan="1" style="width:745px" %)<#if container.getAgeFormated()??>
282 +|(% colspan="1" %)Věk obarvený podle let. Nad 15 (a zároveň) červený, pod 15 modrý. |(% colspan="1" %)<#if container.getAgeFormated()??>
286 286   <#if container.getAgeFormated()?number gte 15>
287 287   Věk: <font color="red"> ${container.getAgeFormated()}</font>
288 288   <#else>
289 289   Věk: <font color="blue"> ${container.getAgeFormated()}</font>
290 290   </#if>
291 -</#if>|(% colspan="1" style="width:517px" %)
292 -|(% colspan="1" style="width:255px" %)(((
288 +</#if>|(% colspan="1" %)
289 +|(% colspan="1" %)(((
293 293  Rozpis počtu čekajících objednávek čtenáře.
294 294  
295 295  Jednotlivé typy objednávek se oddělují lomenem.
... ... @@ -299,11 +299,10 @@
299 299  Daný typ se zobrazuje pouze pokud pro daný typ existuje alespoň jedna čekající objednávka.
300 300  
301 301  
302 -)))|(% colspan="1" style="width:745px" %)(((
299 +)))|(% colspan="1" %)(((
303 303  ${container.getInfoMailLastVisit()}
304 304  
305 -<#if (container.getWaitingRequestsCount() != 0 ||
306 -container.getInsertedBoxRetrievalRequestsDepartmentCount() != 0)>
302 +<#if container.getWaitingRequestsCount() != 0>
307 307   <font color="red"> - Ček.
308 308  
309 309   <#if container.getWaitingReservationCount() != 0>
... ... @@ -334,10 +334,10 @@
334 334  
335 335   </font>
336 336  </#if>
337 -)))|(% colspan="1" style="width:517px" %)(((
333 +)))|(% colspan="1" %)(((
338 338  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2024-3-14_13-23-44.png?version=1&modificationDate=1710419025000&api=v2||width="500"]]
339 339  )))
340 -|(% colspan="1" style="width:255px" %)Zobrazuje upozornění, že má čtenář dnes narozeniny nebo svátek.|(% colspan="1" style="width:745px" %)(((
336 +|(% colspan="1" %)Zobrazuje upozornění, že má čtenář dnes narozeniny nebo svátek.|(% colspan="1" %)(((
341 341  <#if container.hasBirthday()>
342 342   <font color="red"> - narozeniny</font>
343 343  </#if>
... ... @@ -345,14 +345,14 @@
345 345  <#if container.hasNameDay()>
346 346   <font color="red"> - svátek</font>
347 347  </#if>
348 -)))|(% colspan="1" style="width:517px" %)(((
344 +)))|(% colspan="1" %)(((
349 349  [[image:https://confluence.tritius.cz/download/attachments/35815451/image2024-3-14_13-37-46.png?version=1&modificationDate=1710419867000&api=v2||width="400"]]
350 350  )))
351 -|(% colspan="1" style="width:255px" %)(((
347 +|(% colspan="1" %)(((
352 352  Výchozí stav ( mail, posl. návštěva, svátek, čekající rez./odl. ) + věk různobarevný podle hranice 15let
353 353  
354 354  * použito v Domažlice
355 -)))|(% colspan="1" style="width:745px" %)(((
351 +)))|(% colspan="1" %)(((
356 356  ${container.getInfoMailLastVisit()} <#if container.hasNameDay()> <font color="red"> - ${container.translate("has_nameday_today")}.</font> </#if> <#if container.getWaitingRequestsCount()!=0> <font color="red"> - ${container.translate("Waiting_reservations/retrievals")} - ${container.getWaitingRequestsCount()}</font> </#if>
357 357  
358 358  <#if container.getAgeFormated()??>
... ... @@ -362,12 +362,12 @@
362 362   Věk: <font color="blue"> ${container.getAgeFormated()}</font>
363 363   </#if>
364 364  </#if>
365 -)))|(% colspan="1" style="width:517px" %)
366 -|(% colspan="1" style="width:255px" %)(((
361 +)))|(% colspan="1" %)
362 +|(% colspan="1" %)(((
367 367  Mail, posl. návštěva, končící registrace , povolání, vzdělání, škola, svátek a čekající rez./odl.
368 368  
369 369  * použito v Chotěboř
370 -)))|(% colspan="1" style="width:745px" %)(((
366 +)))|(% colspan="1" %)(((
371 371  ${container.getInfoMailLastVisitEndingRegistration()}
372 372  <#if container.hasProfession()>
373 373   <font color="green">${container.getProfession()}</font>
... ... @@ -382,12 +382,12 @@
382 382  </#if> <#if container.getWaitingRequestsCount()!=0> <font color="red"> - ${container.translate("Waiting_reservations/retrievals")} - ${container.getWaitingRequestsCount()}</font> </#if>
383 383  
384 384  
385 -)))|(% colspan="1" style="width:517px" %)
386 -|(% colspan="1" style="width:255px" %)(((
381 +)))|(% colspan="1" %)
382 +|(% colspan="1" %)(((
387 387  Mail, posl. návštěva, vzdělání, povolání, svátek, čekající rez./odl.
388 388  
389 389  * použito v UNYP
390 -)))|(% colspan="1" style="width:745px" %)${container.getInfoMailLastVisit()} 
386 +)))|(% colspan="1" %)${container.getInfoMailLastVisit()} 
391 391  <#if container.hasEducationLevel()>
392 392   <font color="orange">${container.getEducationLevel()}</font>
393 393  </#if>
... ... @@ -394,4 +394,4 @@
394 394  <#if container.hasProfession()>
395 395   <font color="green">${container.getProfession()}</font>
396 396  </#if>
397 -<#if container.hasNameDay()> <font color="red"> - ${container.translate("has_nameday_today")}.</font> </#if> <#if container.getWaitingRequestsCount()~!=0> <font color="red"> - ${container.translate("Waiting_reservations/retrievals")} - ${container.getWaitingRequestsCount()}</font> </#if>|(% colspan="1" style="width:517px" %)
393 +<#if container.hasNameDay()> <font color="red"> - ${container.translate("has_nameday_today")}.</font> </#if> <#if container.getWaitingRequestsCount()~!=0> <font color="red"> - ${container.translate("Waiting_reservations/retrievals")} - ${container.getWaitingRequestsCount()}</font> </#if>|(% colspan="1" %)