Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:supplement="http://isvu.srce.hr/supplement" exclude-result-prefixes="supplement">
- <xsl:param name="imagesBaseUrl"/>
- <xsl:param name="konTekstSupplement"/>
- <xsl:param name="uniLogoUrlHr"/>
- <xsl:param name="uniLogoUrlEn"/>
- <xsl:param name="vuLogoUrlHr"/>
- <xsl:param name="vuLogoUrlEn"/>
- <xsl:param name="ispisZadnjeStrane" select="'N'"/>
- <!-- definicije izdvojene radi lakšeg podešavanja tijekom razvoja (bude li potrebno) -->
- <!-- ako je leading 13, koliko mora biti lineHeight -->
- <xsl:variable name="lineHeightForLeading13" select="'13pt'"/>
- <!-- ako je leading 8.667, koliko mora biti lineHeight -->
- <xsl:variable name="lineHeightForLeading87" select="'8.667pt'"/>
- <!-- lineHeight u tablici ocjena-->
- <xsl:variable name="lineHeightTablicaOcjena" select="if (/supplements/konfiguracija/@predmeti_font = 'small') then '8.667pt' else '13pt'"/>
- <!-- koliko treba baseline spustiti ako se tekst fonta 7 prikazuje u retku visine 13pt-->
- <xsl:variable name="baselineShiftFor7ptFontIn13ptline" select="'-4.33pt'"/>
- <!-- lineHeight u tablici ocjena za ispis naziva "stranog" visokog učilišta -->
- <xsl:variable name="lineHeightTablicaOcjenaNazivStranogVU" select="'8.667pt'"/>
- <!-- debljina linije za potpis -->
- <xsl:variable name="signatureLineThicknes" select="'0.25pt'"/>
- <!-- zamjenski hyphenator za nepostojeci hr hyphenator -->
- <xsl:variable name="replacementHyphenator" select="'cs'"/>
- <!-- ispis u boji (za razvoj) -->
- <xsl:variable name="ispisBoja" select="'N'"/>
- <!-- vertikalni razmak izmedju grbova na desnoj strani -->
- <xsl:variable name="razmakMedjuGrbovimaNaDesnojStrani" select="'5mm'"/>
- <!-- broj znakova u tekstu u 4.1 nakon kojeg se prelazi na sitniji font -->
- <xsl:variable name="maxWithLargeFont" select="2500"/>
- <!-- fizicke dimenzije papira -->
- <xsl:attribute-set name="paper-dimension">
- <xsl:attribute name="page-height">297mm</xsl:attribute>
- <xsl:attribute name="page-width">210mm</xsl:attribute>
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
- <xsl:attribute name="margin-top">0mm</xsl:attribute>
- <xsl:attribute name="margin-bottom">0mm</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-vuLogo">
- <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
- <xsl:attribute name="content-height">scale-down-to-fit</xsl:attribute>
- <xsl:attribute name="width">89.5pt</xsl:attribute>
- <xsl:attribute name="height">120pt</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-uniLogo">
- <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
- <xsl:attribute name="content-height">scale-down-to-fit</xsl:attribute>
- <xsl:attribute name="width">89.5pt</xsl:attribute>
- <xsl:attribute name="height">120pt</xsl:attribute>
- </xsl:attribute-set>
- <!-- set svojstava za blokove -->
- <xsl:attribute-set name="attset-grbovi">
- <xsl:attribute name="text-align">center</xsl:attribute>
- <!-- <xsl:attribute name="background-color">lavenderblush</xsl:attribute> -->
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-zaglavljeBlok">
- <xsl:attribute name="font-size">14.2pt</xsl:attribute>
- <!-- bio <xsl:attribute name="font-size">12pt</xsl:attribute> -->
- <xsl:attribute name="font-family">DiplomaSupplementCaps</xsl:attribute>
- <xsl:attribute name="text-align">center</xsl:attribute>
- <xsl:attribute name="line-height">17pt</xsl:attribute>
- <xsl:attribute name="letter-spacing">0.95pt</xsl:attribute>
- <xsl:attribute name="background-color">yellow</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-fillerBlokCenter">
- <!-- prije izmjene padding top je bio 1pt, trazilo se spustanje za 0.7mm, 1mm=2.817pt -->
- <xsl:attribute name="padding-top">3pt</xsl:attribute>
- <xsl:attribute name="text-align">center</xsl:attribute>
- <xsl:attribute name="padding-bottom">1pt</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0pt</xsl:attribute>
- <xsl:attribute name="space-before.maximum">200pt</xsl:attribute>
- <xsl:attribute name="space-before.optimum">120pt</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0pt</xsl:attribute>
- <xsl:attribute name="space-after.maximum">200pt</xsl:attribute>
- <xsl:attribute name="space-after.optimum">120pt</xsl:attribute>
- <!-- <xsl:attribute name="background-color">pink</xsl:attribute>-->
- </xsl:attribute-set>
- <!-- KORISTI SE UMJESTO SLIKE -->
- <xsl:attribute-set name="attset-naslovBlok" use-attribute-sets="attset-fillerBlokCenter">
- <xsl:attribute name="font-size">22pt</xsl:attribute>
- <!-- bio <xsl:attribute name="font-size">19pt</xsl:attribute> -->
- <xsl:attribute name="font-family">TimesNewRoman</xsl:attribute>
- <!-- ORIGINAL <xsl:attribute name="font-family">DiplomaSupplementCaps</xsl:attribute> -->
- <xsl:attribute name="text-align">center</xsl:attribute>
- <xsl:attribute name="line-height">27pt</xsl:attribute>
- <xsl:attribute name="letter-spacing">2.2pt</xsl:attribute>
- <xsl:attribute name="color">rgb(180,0,20)</xsl:attribute>
- <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
- <!-- <xsl:attribute name="background-color">pink</xsl:attribute> -->
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-lijevoZaglavljeBlokContainer">
- <xsl:attribute name="position">absolute</xsl:attribute>
- <xsl:attribute name="top">42pt</xsl:attribute>
- <xsl:attribute name="left">35pt</xsl:attribute>
- <xsl:attribute name="height">196pt</xsl:attribute>
- <xsl:attribute name="width">87pt</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-zaglavljeBlokContainer">
- <xsl:attribute name="position">absolute</xsl:attribute>
- <xsl:attribute name="top">42pt</xsl:attribute>
- <!-- ORIGINAL: <xsl:attribute name="left">132pt</xsl:attribute> -->
- <xsl:attribute name="left">70pt</xsl:attribute>
- <!-- ORIGINAL: <xsl:attribute name="height">196pt</xsl:attribute> -->
- <xsl:attribute name="height">196pt</xsl:attribute>
- <xsl:attribute name="width">455pt</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-desnoZaglavljeBlokContainer">
- <xsl:attribute name="position">absolute</xsl:attribute>
- <xsl:attribute name="top">42pt</xsl:attribute>
- <xsl:attribute name="left">471pt</xsl:attribute>
- <!--ORIG<xsl:attribute name="height">196pt</xsl:attribute>-->
- <xsl:attribute name="height">240pt</xsl:attribute>
- <xsl:attribute name="width">89.5pt</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-normalTekst">
- <xsl:attribute name="font-size">6pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightForLeading87"/>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'limegreen' else 'black'"/>
- </xsl:attribute-set>
- <!-- ime i prezime na naslovnici -->
- <xsl:attribute-set name="attset-subtitle0Tekst" use-attribute-sets="attset-normalTekst">
- <xsl:attribute name="font-size">22pt</xsl:attribute>
- <!--<xsl:attribute name="font-family">TimesNewRoman</xsl:attribute> -->
- <xsl:attribute name="text-align">center</xsl:attribute>
- <xsl:attribute name="margin-left">10pt</xsl:attribute>
- <xsl:attribute name="margin-right">10pt</xsl:attribute>
- </xsl:attribute-set>
- <!-- ostali podaci na naslovnici -->
- <xsl:attribute-set name="attset-subtitle1Tekst" use-attribute-sets="attset-normalTekst">
- <xsl:attribute name="font-size">14pt</xsl:attribute>
- <!--<xsl:attribute name="font-family">TimesNewRoman</xsl:attribute>-->
- <xsl:attribute name="text-align">center</xsl:attribute>
- <xsl:attribute name="margin-left">10pt</xsl:attribute>
- <xsl:attribute name="margin-right">10pt</xsl:attribute>
- <xsl:attribute name="margin-top">10pt</xsl:attribute>
- <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-labele">
- <xsl:attribute name="font-size">6pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightForLeading13"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-labeleRazine1" use-attribute-sets="attset-labele">
- <xsl:attribute name="font-size">12pt</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <!--<xsl:attribute name="border-top">1,5pt solid black</xsl:attribute>
- <xsl:attribute name="border-bottom">1pt solid black</xsl:attribute>-->
- <xsl:attribute name="font-family">SupplementSC_Medium</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'darkblue' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-labeleRazine2" use-attribute-sets="attset-labele">
- <xsl:attribute name="font-size">10pt</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Medium</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'deepskyblue' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-podaciRazine2">
- <xsl:attribute name="font-size">8pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightForLeading13"/>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'red' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-cumLaude">
- <xsl:attribute name="font-size">9pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">SupplementSC_Normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightForLeading13"/>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'red' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-naslovGrupeZnanja" use-attribute-sets="attset-normalTekst">
- <xsl:attribute name="font-family">SupplementSC_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'darkgreen' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-inline-rbrOcjena">
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">SupplementSC_Normal</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-inline-datumIspit">
- <xsl:attribute name="font-size">6pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-podaciTabliceOcjena">
- <xsl:attribute name="font-size">
- <xsl:value-of select=" if (/supplements/konfiguracija/@predmeti_font = 'small') then '7pt' else '8pt'"/>
- </xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjena"/>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'red' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-zaglavljeTabliceOcjena">
- <xsl:attribute name="font-size">5.5pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'gold' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-brojeviShemeStudiranja" use-attribute-sets="attset-labeleRazine1">
- <xsl:attribute name="line-height" select="$lineHeightForLeading87"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-labeleShemeStudiranja" use-attribute-sets="attset-labeleRazine2">
- <xsl:attribute name="line-height" select="$lineHeightForLeading87"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-specEctsTablica">
- <xsl:attribute name="font-size">5.5pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">SupplementSC_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'saddlebrown' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-specEctsLabela">
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">SupplementSC_Medium</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'darkgreen' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-shemaStudijaSC">
- <xsl:attribute name="font-size">6pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">SupplementSC_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'darkgreen' else 'black'"/>
- <xsl:attribute name="line-height" select="$lineHeightForLeading87"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-shemaStudijaItalic">
- <xsl:attribute name="font-size">6pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal_Italic</xsl:attribute>
- <xsl:attribute name="font-style">italic</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'magenta' else 'black'"/>
- <xsl:attribute name="line-height" select="$lineHeightForLeading87"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-podaciTabliceStranoVuPredmeta">
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'blue' else 'black'"/>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjenaNazivStranogVU"/>
- </xsl:attribute-set>
- <!-- za fusnote sa zvjezdicama -->
- <xsl:attribute-set name="attset-inlineSuperscriptNazPred">
- <xsl:attribute name="padding-start">0.5pt</xsl:attribute>
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjena"/>
- <xsl:attribute name="baseline-shift">
- <xsl:value-of select=" if (/supplements/konfiguracija/@predmeti_font = 'small') then '0pt' else '1pt'"/>
- </xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-inlineSuperscriptNazDodEctsBod">
- <xsl:attribute name="padding-start">0.4pt</xsl:attribute>
- <xsl:attribute name="font-size">5.44pt</xsl:attribute>
- <xsl:attribute name="baseline-shift">
- <xsl:value-of select=" if (/supplements/konfiguracija/@predmeti_font = 'small') then '0pt' else '0.7pt'"/>
- </xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjena"/>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'blue' else 'black'"/>
- </xsl:attribute-set>
- <xsl:attribute-set name="attset-blockNazDodEctsBod">
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="baseline-shift">
- <xsl:value-of select=" if (/supplements/konfiguracija/@predmeti_font = 'small') then '0pt' else $baselineShiftFor7ptFontIn13ptline"/>
- </xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="color" select="if ($ispisBoja='D') then 'blue' else 'black'"/>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjena"/>
- </xsl:attribute-set>
- <xsl:template match="/supplements">
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="titlePage" xsl:use-attribute-sets="paper-dimension">
- <fo:region-body margin-top="400pt" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" />
- <fo:region-before extent="144pt"/>
- </fo:simple-page-master>
- <!-- marginBottom je 61 zato da se omoguci dodavanje tankog bloka na kraju opisa znanja -->
- <fo:simple-page-master master-name="firstPage" xsl:use-attribute-sets="paper-dimension">
- <!-- ORIGINAL: <fo:region-body margin-top="259pt" margin-bottom="61pt" margin-left="59pt" margin-right="67pt" column-count="2" column-gap="7pt"/>-->
- <fo:region-body margin-top="25mm" margin-bottom="25mm" margin-left="25mm" margin-right="25mm" />
- <!--<fo:region-before extent="144pt"/>-->
- </fo:simple-page-master>
- <fo:simple-page-master master-name="secondPage" xsl:use-attribute-sets="paper-dimension">
- <!-- ORIGINAL: <fo:region-body margin-top="38pt" margin-bottom="143pt" margin-left="67pt" margin-right="59pt" column-count="2" column-gap="7pt"/> -->
- <!--<fo:region-body margin-top="38pt" margin-bottom="143pt" margin-left="67pt" margin-right="59pt"/>-->
- <fo:region-body margin-top="25mm" margin-bottom="25mm" margin-left="25mm" margin-right="25mm"/>
- <!--<fo:region-after extent="156pt"/>-->
- </fo:simple-page-master>
- <fo:simple-page-master master-name="thirdPage" xsl:use-attribute-sets="paper-dimension">
- <fo:region-body margin-top="38pt" margin-bottom="156pt" margin-left="59pt" margin-right="67pt" column-count="2" column-gap="7pt"/>
- <fo:region-after extent="156pt"/>
- </fo:simple-page-master>
- <xsl:if test="$ispisZadnjeStrane='D'">
- <fo:simple-page-master master-name="fourthPage" xsl:use-attribute-sets="paper-dimension">
- <fo:region-body margin-top="38pt" margin-bottom="62pt" margin-left="53pt" margin-right="45pt" column-count="2" column-gap="7pt"/>
- <fo:region-after extent="142pt"/>
- </fo:simple-page-master>
- </xsl:if>
- <fo:page-sequence-master master-name="firstTwoPages">
- <fo:single-page-master-reference master-reference="firstPage"/>
- <fo:repeatable-page-master-reference master-reference="secondPage"/>
- </fo:page-sequence-master>
- <fo:page-sequence-master master-name="thirdPageOnly">
- <fo:single-page-master-reference master-reference="thirdPage"/>
- </fo:page-sequence-master>
- <!-- DEFAULTNA STRANICA -->
- <fo:page-sequence-master master-name="defaultPage">
- <fo:repeatable-page-master-reference master-reference="firstPage" />
- </fo:page-sequence-master>
- <!-- /DEFAULTNA STRANICA -->
- <xsl:if test="$ispisZadnjeStrane='D'">
- <fo:page-sequence-master master-name="fourthPageOnly">
- <fo:single-page-master-reference master-reference="fourthPage"/>
- </fo:page-sequence-master>
- </xsl:if>
- </fo:layout-master-set>
- <xsl:apply-templates select="supplement"/>
- </fo:root>
- </xsl:template>
- <xsl:template match="supplement">
- <xsl:variable name="lang">
- <xsl:value-of select="@lang"/>
- </xsl:variable>
- <xsl:variable name="brojStudija" select="count(kvalifikacija/studijskiProgram/smjerovi/smjer[rbrIspis=1])"/>
- <xsl:variable name="brojZavrsnihRadova" select="count(zavrsetakStudija/zavrsniRad)"/>
- <!-- starts actual layout -->
- <!-- naslovna stranica prvo -->
- <fo:page-sequence master-reference="titlePage" id="{concat('titlepage_', student/JMBAG, '_', student/imeStud, '_', student/prezStud )}">
- <fo:static-content flow-name="xsl-region-before">
- <xsl:call-template name="ispisNaslovnica">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="ispisPodatakaStudentNaslovnica">
- <xsl:with-param name="lang" select="$lang" />
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- <!-- ORIGNAL: <fo:page-sequence master-reference="firstTwoPages" id="{concat('page12_', student/JMBAG, '_', student/imeStud, '_', student/prezStud )}"> -->
- <fo:page-sequence master-reference="defaultPage" id="{concat('page12_', student/JMBAG, '_', student/imeStud, '_', student/prezStud )}">
- <!--<fo:static-content flow-name="xsl-region-before">
- <xsl:call-template name="ispisZaglavlja">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </fo:static-content>-->
- <!-- zavrsetak studija -->
- <!--<fo:static-content flow-name="xsl-region-after">
- <xsl:call-template name="ispisZavrsetkaStudija">
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="brojStudija" select="$brojStudija"/>
- <xsl:with-param name="brojZavrsnihRadova" select="$brojZavrsnihRadova"/>
- </xsl:call-template>
- </fo:static-content>-->
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="ispisPodatakaStudent">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- <xsl:call-template name="ispisPodatakaKvalifikacija">
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="brojStudija" select="$brojStudija"/>
- </xsl:call-template>
- <xsl:call-template name="ispisPodatakaUstanova">
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="brojStudija" select="$brojStudija"/>
- </xsl:call-template>
- <xsl:call-template name="ispisPodatakaRazinaKvalifikacije">
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="brojStudija" select="$brojStudija"/>
- </xsl:call-template>
- <xsl:variable name="fontSize">
- <xsl:choose>
- <xsl:when test="/supplements/konfiguracija/@poglavlje_4_2_font = 'small'">
- <xsl:text>7pt</xsl:text>
- </xsl:when>
- <xsl:when test="/supplements/konfiguracija/@poglavlje_4_2_font = 'large'">
- <xsl:text>9pt</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <!-- za defaultnu ocjenu duljine teksta zbrajam sve tekstove sa svih studija -->
- <xsl:variable name="countCharRezultati" select="string-length(zahtjeviRezultatiStudijaPoStudiju)"/>
- <xsl:value-of select="if ($countCharRezultati > $maxWithLargeFont) then '7pt' else '9pt'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="lineHeight" select="if ($fontSize = '7pt') then $lineHeightForLeading87 else $lineHeightForLeading13"/>
- <xsl:call-template name="ispisPodatakaProgram-stecenaZnanja">
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="fontSize" select="$fontSize"/>
- <xsl:with-param name="lineHeight" select="$lineHeight"/>
- </xsl:call-template>
- <!--
- <xsl:apply-templates select="stecenaZnanja">
- <xsl:with-param name="fontSize" select="$fontSize"/>
- <xsl:with-param name="lineHeight" select="$lineHeight"/>
- </xsl:apply-templates>
- -->
- <xsl:call-template name="ispisPodatakaPrijepisOcjena">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <!--
- <xsl:call-template name="ispisShemeOcjenjivanja">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisUkupneKlasifikacijeKvalifikacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisFunkcijeKvalifikacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisDodatneInformacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>-->
- <!-- <xsl:apply-templates select="prijepisDodEctsBodova" />-->
- </fo:flow>
- </fo:page-sequence>
- <!--<fo:page-sequence master-reference="defaultPage" id="{concat('page3_', student/JMBAG, '_', student/imeStud, '_', student/prezStud )}">
- <fo:static-content flow-name="xsl-region-after">
- <xsl:call-template name="ispisCertifikata">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="ispisShemeOcjenjivanja">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisUkupneKlasifikacijeKvalifikacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisFunkcijeKvalifikacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="ispisDodatneInformacije">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>-->
- <xsl:if test="$ispisZadnjeStrane='D'">
- <fo:page-sequence master-reference="fourthPageOnly" id="{concat('page4_', student/JMBAG, '_', student/imeStud, '_', student/prezStud )}">
- <fo:static-content flow-name="xsl-region-after">
- <xsl:call-template name="crtanjeShemeStudija">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <xsl:call-template name="ispisShemeSustava">
- <xsl:with-param name="lang">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:flow>
- </fo:page-sequence>
- </xsl:if>
- </xsl:template>
- <!-- procedura za ispis zaglavlja -->
- <xsl:template name="ispisZaglavlja">
- <xsl:param name="lang"/>
- <xsl:variable name="sifVU" select="ancestor-or-self::*[self::supplement][1]/@sifVU"/>
- <xsl:variable name="sifUni" select="ancestor-or-self::*[self::supplement][1]/@sifUni"/>
- <!-- slika glavnog naslova (crveni tekst) -->
- <xsl:variable name="glavniNaslov" select="concat($imagesBaseUrl, '/titleSupp_', $lang, '.svg')"/>
- <!-- slika grba RH -->
- <xsl:variable name="rhLogo" select="concat($imagesBaseUrl, '/rhLogo_', $lang, '.svg')"/>
- <!-- slika grba visokog učilišta
- <xsl:variable name="vuLogo"
- select="concat($imagesBaseUrl, '/vuLogo_', $lang, '_', $sifVU, '.svg')" />-->
- <xsl:variable name="vuLogo">
- <xsl:choose>
- <xsl:when test="$lang='hr'">
- <xsl:value-of select="concat('url(', $vuLogoUrlHr, ')')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat('url(', $vuLogoUrlEn, ')')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- slika grba sveučilišta
- <xsl:variable name="uniLogo"
- select="concat($imagesBaseUrl, '/uniLogo_', $lang, '_', $sifUni, '.svg')" />-->
- <xsl:variable name="uniLogo">
- <xsl:choose>
- <xsl:when test="$lang='hr'">
- <xsl:value-of select="concat('url(', $uniLogoUrlHr, ')')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat('url(', $uniLogoUrlEn, ')')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- lijevi stupac zaglavlja -->
- <fo:block-container xsl:use-attribute-sets="attset-lijevoZaglavljeBlokContainer">
- <fo:block xsl:use-attribute-sets="attset-grbovi">
- <fo:external-graphic>
- <xsl:attribute name="src">
- <xsl:value-of select="$rhLogo"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </fo:block-container>
- <!-- sredisnji dio zaglavlja -->
- <fo:block-container xsl:use-attribute-sets="attset-zaglavljeBlokContainer">
- <xsl:if test="$lang = 'en'">
- <xsl:attribute name="height">196pt</xsl:attribute>
- </xsl:if>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok" padding-top="2mm">
- <xsl:value-of select="lower-case(document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/republikaHrvatska)"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok">
- <xsl:value-of select="lower-case(institucijaZaNaslov/nazSveuciliste)"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok">
- <xsl:value-of select="lower-case(institucijaZaNaslov/nazVU)"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-naslovBlok">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title0"/>
- </fo:block>
- <!--
- <fo:block xsl:use-attribute-sets="attset-fillerBlokCenter">
- <fo:external-graphic>
- <xsl:attribute name="src" select="$glavniNaslov" />
- </fo:external-graphic>
- </fo:block>
- -->
- <fo:block xsl:use-attribute-sets="attset-subtitle0Tekst">
- <xsl:apply-templates select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/subtitle0"/>
- </fo:block>
- </fo:block-container>
- <!-- desni stupac zaglavlja -->
- <fo:block-container xsl:use-attribute-sets="attset-desnoZaglavljeBlokContainer">
- <fo:block xsl:use-attribute-sets="attset-grbovi">
- <fo:external-graphic xsl:use-attribute-sets="attset-uniLogo">
- <xsl:attribute name="src" select="$uniLogo"/>
- </fo:external-graphic>
- </fo:block>
- <fo:block padding-top="{$razmakMedjuGrbovimaNaDesnojStrani}"/>
- <fo:block xsl:use-attribute-sets="attset-grbovi">
- <fo:external-graphic xsl:use-attribute-sets="attset-vuLogo">
- <xsl:attribute name="src" select="$vuLogo"/>
- </fo:external-graphic>
- </fo:block>
- </fo:block-container>
- </xsl:template>
- <!-- procedura za ispis općih podataka na naslovnici -->
- <xsl:template name="ispisNaslovnica">
- <xsl:param name="lang"/>
- <!-- slika grba RH -->
- <xsl:variable name="rhLogo" select="concat($imagesBaseUrl, '/rhLogo_', $lang, '.svg')"/>
- <fo:block-container xsl:use-attribute-sets="attset-zaglavljeBlokContainer">
- <fo:block xsl:use-attribute-sets="attset-grbovi">
- <fo:external-graphic>
- <xsl:attribute name="src">
- <xsl:value-of select="$rhLogo"/>
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok">
- <xsl:value-of select="lower-case(institucijaZaNaslov/nazSveuciliste)"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok">
- <xsl:text>Podružnica</xsl:text>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-zaglavljeBlok">
- <xsl:value-of select="lower-case(institucijaZaNaslov/nazVU)"/>
- </fo:block>
- </fo:block-container>
- </xsl:template>
- <xsl:template name="ispisPodatakaStudentNaslovnica">
- <xsl:param name="lang"/>
- <!-- glavni naslov -->
- <fo:block xsl:use-attribute-sets="attset-naslovBlok">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title0"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-subtitle0Tekst">
- <xsl:value-of select="concat(student/imeStud, ' ', student/prezStud)" />
- </fo:block>
- <xsl:call-template name="emptyLine"/>
- <fo:block xsl:use-attribute-sets="attset-subtitle1Tekst">
- <xsl:text>rođen</xsl:text>
- <xsl:if test="student/spol = 'Ž'">
- <xsl:text>a</xsl:text>
- </xsl:if>
- <xsl:value-of select="concat(' ', student/datRodStud, ', ', student/mjestoRodStud, ',')" />
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-subtitle1Tekst">
- <xsl:value-of select="student/drzavaRodStud" />
- </fo:block>
- <xsl:call-template name="emptyLine"/>
- <fo:block xsl:use-attribute-sets="attset-subtitle1Tekst">
- <xsl:text>Matični broj: </xsl:text>
- <xsl:value-of select="student/JMBAG" />
- </fo:block>
- </xsl:template>
- <!-- procedura za ispis općih podataka o studentu -->
- <xsl:template name="ispisPodatakaStudent">
- <xsl:param name="lang"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title1"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelStudent">
- <xsl:with-param name="number" select="'1.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title1.1"/>
- <xsl:with-param name="value" select="upper-case(student/prezStud)"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelStudent">
- <xsl:with-param name="number" select="'1.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title1.2"/>
- <xsl:with-param name="value" select="upper-case(student/imeStud)"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelStudent">
- <xsl:with-param name="number" select="'1.3'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title1.3"/>
- <xsl:with-param name="value" select="concat(student/datRodStud , ', ' , student/mjestoRodStud , ', ' , student/drzavaRodStud)"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelStudent">
- <xsl:with-param name="number" select="'1.4'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title1.4"/>
- <xsl:with-param name="value" select="student/JMBAG"/>
- </xsl:call-template>
- </xsl:template>
- <!-- procedura za ispis općih podataka o kvalifikaciji -->
- <xsl:template name="ispisPodatakaKvalifikacija">
- <xsl:param name="lang"/>
- <xsl:param name="brojStudija"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelStudent">
- <xsl:with-param name="number" select="'2.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2.1"/>
- <xsl:with-param name="value">
- <xsl:variable name="kvalifikacijePoStudijima" select="kvalifikacija/kvalifikacijePoStudijima"/>
- <xsl:for-each select="for $i in 1 to $brojStudija return $i">
- <xsl:variable name="rbrProlaz" select="."/>
- <xsl:if test="$rbrProlaz > 1">
- <xsl:text> / </xsl:text>
- </xsl:if>
- <xsl:variable name="kvalifikacijaStudij" select="$kvalifikacijePoStudijima/kvalifikacijaStudij[@rbrStudij=$rbrProlaz]"/>
- <xsl:choose>
- <xsl:when test="string-length($kvalifikacijaStudij/nazivKvalifikacije) > 0">
- <xsl:value-of select="$kvalifikacijaStudij/nazivKvalifikacije"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="emDash"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="string-length($kvalifikacijaStudij/nazivTitule) > 0">
- <xsl:text>; </xsl:text>
- <xsl:value-of select="$kvalifikacijaStudij/nazivTitule"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- <!-- U starijoj verziji se ispisivao samo sadržaj elementa nazivStudijskogPrograma.
- U novijoj verziji komponiramo taj naziv iz kompleksnog elementa smjerovi.
- Pomoću ove varijable podržavam obje verzije, dok stara verzija ne odumre. -->
- <xsl:variable name="komponiraniNazivStudijskogPrograma">
- <xsl:choose>
- <xsl:when test="kvalifikacija/nazivStudijskogPrograma">
- <xsl:value-of select="kvalifikacija/nazivStudijskogPrograma"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="komponiranjeNazivaStudijskogPrograma"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'2.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2.2"/>
- <xsl:with-param name="value" select="$komponiraniNazivStudijskogPrograma"/>
- </xsl:call-template>
- </xsl:template>
- <!-- procedura za komponiranje naziva studijskog programa -->
- <xsl:template name="komponiranjeNazivaStudijskogPrograma">
- <xsl:for-each select="kvalifikacija/studijskiProgram/smjerovi/smjer">
- <xsl:if test="rbrIspis != '1'">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazTipSmjer"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:if test="rbrIspis = '1' and position() != 1">
- <xsl:text> / </xsl:text>
- </xsl:if>
- <xsl:value-of select="nazSmjer"/>
- </xsl:for-each>
- </xsl:template>
- <!-- procedura za ispis općih podataka o ustanovi -->
- <xsl:template name="ispisPodatakaUstanova">
- <xsl:param name="lang"/>
- <xsl:param name="brojStudija"/>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'2.3'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2.3"/>
- <xsl:with-param name="value">
- <xsl:value-of select="kvalifikacija/izdajeInstitucija/naziv"/>
- <xsl:text>
</xsl:text>
- <xsl:if test="string-length(kvalifikacija/izdajeInstitucija/pravniStatusInstitucija) != 0">
- <xsl:text> </xsl:text>
- <xsl:value-of select="kvalifikacija/izdajeInstitucija/pravniStatusInstitucija"/>
- </xsl:if>
- <xsl:for-each select="kvalifikacija/izdajeInstitucija/pravniStatusPoStudiju/pravniStatusStudij">
- <xsl:sort select="@rbrStudij"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'2.4'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2.4"/>
- <xsl:with-param name="value">
- <xsl:choose>
- <xsl:when test="kvalifikacija/izvodiInstitucija/naziv != '-'">
- <xsl:value-of select="kvalifikacija/izvodiInstitucija/naziv"/>
- <xsl:text>.</xsl:text>
- <xsl:if test="string-length(kvalifikacija/izvodiInstitucija/pravniStatusInstitucija) != 0">
- <xsl:text> </xsl:text>
- <xsl:value-of select="kvalifikacija/izvodiInstitucija/pravniStatusInstitucija"/>
- </xsl:if>
- <xsl:for-each select="kvalifikacija/izvodiInstitucija/pravniStatusPoStudiju/pravniStatusStudij">
- <xsl:sort select="@rbrStudij"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="textNotApplicable"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'2.5'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title2.5"/>
- <xsl:with-param name="value">
- <xsl:variable name="jeziciPoStudijima" select="kvalifikacija/jeziciPoStudijima"/>
- <xsl:for-each select="for $i in 1 to $brojStudija return $i">
- <xsl:variable name="rbrProlaz" select="."/>
- <xsl:if test="$rbrProlaz > 1">
- <xsl:text> / </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="string-length($jeziciPoStudijima/jeziciStudija[@rbrStudij=$rbrProlaz]/jezici) > 0">
- <xsl:value-of select="$jeziciPoStudijima/jeziciStudija[@rbrStudij=$rbrProlaz]/jezici"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="emDash"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <!-- procedura za ispis podataka o kvalifikaciji -->
- <xsl:template name="ispisPodatakaRazinaKvalifikacije">
- <xsl:param name="lang"/>
- <xsl:param name="brojStudija"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'3'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title3"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'3.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title3.1"/>
- <xsl:with-param name="value" select="kvalifikacija/razinaKvalifikacije"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'3.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title3.2"/>
- <xsl:with-param name="value">
- <!-- zato jer na FF-u mogu biti dva -->
- <xsl:variable name="predvidjenoTrajanjePoStudiju" select="kvalifikacija/predvidjenoTrajanjePoStudiju"/>
- <xsl:for-each select="for $i in 1 to $brojStudija return $i">
- <xsl:variable name="rbrProlaz" select="."/>
- <xsl:if test="$rbrProlaz > 1">
- <xsl:text> / </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="string-length($predvidjenoTrajanjePoStudiju/predvidjenoTrajanjeStudija[@rbrStudij=$rbrProlaz]/predvidjenoTrajanje) > 0">
- <xsl:value-of select="$predvidjenoTrajanjePoStudiju/predvidjenoTrajanjeStudija[@rbrStudij=$rbrProlaz]/predvidjenoTrajanje"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="emDash"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'3.3'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title3.3"/>
- <xsl:with-param name="value" select="kvalifikacija/potrebnaObrazovnaRazina"/>
- </xsl:call-template>
- </xsl:template>
- <xsl:template name="ispisPodatakaProgram-stecenaZnanja">
- <xsl:param name="lang"/>
- <xsl:param name="fontSize"/>
- <xsl:param name="lineHeight"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'4'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'4.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4.1"/>
- <xsl:with-param name="value" select="kvalifikacija/nacinIzvodjenjaStudija"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelNoData">
- <xsl:with-param name="number" select="'4.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4.2"/>
- </xsl:call-template>
- <xsl:for-each select="zahtjeviRezultatiStudijaPoStudiju/zahtjeviRezultatiStudija">
- <fo:block xsl:use-attribute-sets="attset-normalTekst" line-height="{$lineHeight}">
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- <xsl:variable name="brojStecenihZnanja" select="count(stecenaZnanja/grupaZnanja)"/>
- <xsl:for-each select="para[position() < last() or $brojStecenihZnanja = 0]">
- <fo:block>
- <xsl:value-of select="."/>
- <xsl:if test="position() != last()">
- <xsl:text> </xsl:text>
- </xsl:if>
- </fo:block>
- </xsl:for-each>
- </fo:block>
- <xsl:apply-templates select="stecenaZnanja">
- <xsl:with-param name="fontSize" select="$fontSize"/>
- <xsl:with-param name="lineHeight" select="$lineHeight"/>
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="stecenaZnanja">
- <xsl:param name="fontSize"/>
- <xsl:param name="lineHeight"/>
- <xsl:param name="lang"/>
- <xsl:variable name="lastParaZahtjevRezultatZaStudij" select="../para[position()=last()]"/>
- <xsl:for-each select="grupaZnanja">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <xsl:if test="position()=1">
- <fo:block xsl:use-attribute-sets="attset-normalTekst" font-size="{$fontSize}" line-height="{$lineHeight}">
- <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
- <!-- i zadnji paragraf zahtjeva-rezultata studija se ipak
- treba ispisivati justified -->
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- <!-- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> -->
- <xsl:value-of select="$lastParaZahtjevRezultatZaStudij"/>
- </fo:block>
- </xsl:if>
- <fo:block xsl:use-attribute-sets="attset-naslovGrupeZnanja" font-size="{$fontSize}" line-height="{$lineHeight}">
- <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
- <xsl:value-of select="lower-case(nazivGrupeZnanja)"/>
- </fo:block>
- <!-- start nested list -->
- <fo:list-block provisional-distance-between-starts="8pt" provisional-label-separation="0pt" xsl:use-attribute-sets="attset-normalTekst" font-size="{$fontSize}" line-height="{$lineHeight}" keep-together.within-page="auto">
- <xsl:for-each select="znanje">
- <fo:list-item start-indent="0pt" keep-together.within-page="auto">
- <!-- mislim da ovo ipak ne treba jer izgleda da sam vodi racuna o widow-orphan
- <xsl:if test = "position()=1">
- <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
- <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
- </xsl:if>
- -->
- <xsl:if test="position()=last()">
- <xsl:attribute name="keep-with-previous.within-page">always</xsl:attribute>
- <!--<xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>-->
- </xsl:if>
- <fo:list-item-label end-indent="label-end()">
- <fo:block line-stacking-strategy="font-height">
- <fo:inline>
- <xsl:call-template name="emDash"/>
- </fo:inline>
- </fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <xsl:value-of select="."/>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </xsl:for-each>
- </fo:list-block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:for-each>
- </xsl:template>
- <!-- procedura za ispis podataka o programu, ocjene i ECTS bodovi -->
- <xsl:template name="ispisPodatakaPrijepisOcjena">
- <xsl:param name="lang"/>
- <!-- zato jer u prelazu 2-cols na 1-cols ne radi dobro discard (to je mislim fop pljuga) -->
- <!-- ideja je da veryThinLine prebaci u 1col mod, i pri tome ostane na 1. stranici ako
- je na 1. stranici bilo 0.01pt mjesta, pa ce discard od softEmptyLineKeepWithNext
- propustiti dodati space-before (tako i treba)
- Ako mjesta nije bilo za tako tanku linijicu, onda se je osim linijice sigurno i neki tekst
- s 1. stranice prelio na drugu, pa ce softEmptyLineKeepWithNext dodati space-before (tako i treba)
- -->
- <xsl:call-template name="veryThinEmptyLine"/>
- <!--
- Ovaj soft-page-break ne mogu iskoristiti jer tada idući discard ne funkcionira.
- Ne funkcionira jer se dotični container i blok uvijek nađu na drugoj stranici, pa discard misli
- da ipak treba dodati softEmptyLine
- <fo:block-container width="100%" height="6cm">
- <fo:block/>
- </fo:block-container>
- <fo:block space-before="-6cm"/>
- -->
- <!-- prazan red -->
- <xsl:call-template name="softEmptyLineKeepWithNext"/>
- <xsl:call-template name="secondLevelNoData">
- <xsl:with-param name="number" select="'4.3'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4.3"/>
- <xsl:with-param name="alwaysKeepWithNext" select="'D'"/>
- </xsl:call-template>
- <!-- prazan red -->
- <xsl:call-template name="emptyLineKeepWithNext"/>
- <xsl:apply-templates select="prijepisOcjena">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:apply-templates>
- </xsl:template>
- <!-- procedura za ispis podataka o zavrsetku studija -->
- <xsl:template name="ispisZavrsetkaStudija">
- <xsl:param name="lang"/>
- <xsl:param name="brojStudija"/>
- <xsl:param name="brojZavrsnihRadova"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:if test="$brojZavrsnihRadova < 2">
- <!-- još jedan prazan red -->
- <xsl:call-template name="emptyLine"/>
- </xsl:if>
- <xsl:call-template name="secondLevelFooterSecondPage">
- <xsl:with-param name="number"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textTotalEctsCredits"/>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="value" select="ukupnoEcts"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevelFooterSecondPage">
- <xsl:with-param name="number"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textStudyContinuance"/>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="value">
- <xsl:value-of select="zavrsetakStudija/datumPocetkaStudija"/>
- <xsl:call-template name="enDash"/>
- <xsl:value-of select="zavrsetakStudija/datumDovrsetkaStudija"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="secondLevelFooterSecondPage">
- <xsl:with-param name="number"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textOfficialDocumentId"/>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="value">
- <xsl:value-of select="zavrsetakStudija/brojIspraveZavrsetkaStudija"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:if test="count(zavrsetakStudija/zavrsniRadovi/zavrsniRad) > 0">
- <xsl:call-template name="secondLevelFooterSecondPage">
- <xsl:with-param name="number"/>
- <xsl:with-param name="label">
- <xsl:variable name="postojiDiplZavIspit" select="kvalifikacija/studijskiProgram/postojiDiplZavIspit"/>
- <xsl:if test="$postojiDiplZavIspit = 'Z'">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textThesisZ"/>
- </xsl:if>
- <xsl:if test="$postojiDiplZavIspit = 'D'">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textThesisD"/>
- </xsl:if>
- </xsl:with-param>
- <xsl:with-param name="lang" select="$lang"/>
- <xsl:with-param name="value">
- <xsl:variable name="zavrsniRadovi" select="zavrsetakStudija/zavrsniRadovi"/>
- <xsl:for-each select="for $i in 1 to $brojStudija return $i">
- <xsl:variable name="rbrProlaz" select="."/>
- <xsl:if test="$rbrProlaz > 1">
- <xsl:text> / </xsl:text>
- </xsl:if>
- <xsl:variable name="zavrsniRad" select="$zavrsniRadovi/zavrsniRad[@rbrStudij=$rbrProlaz]"/>
- <xsl:choose>
- <xsl:when test="string-length($zavrsniRad/naslov) > 0">
- <xsl:value-of select="$zavrsniRad/naslov"/>
- <xsl:text>; </xsl:text>
- <xsl:value-of select="$zavrsniRad/mentor"/>
- <xsl:if test="$zavrsniRad/mentor2 != ''">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$zavrsniRad/mentor2"/>
- </xsl:if>
- <xsl:text>; </xsl:text>
- <xsl:value-of select="$zavrsniRad/datumObrane"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="emDash"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
- <!-- kraj ispisa podataka o zavrstku studija -->
- <!-- procedure za ispis sheme ocjenjivanja -->
- <xsl:template name="ispisShemeOcjenjivanja">
- <xsl:param name="lang"/>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'4.4'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4.4"/>
- <xsl:with-param name="value">
- <xsl:for-each select="sustavOcjenjivanja/para">
- <xsl:apply-templates select="."/>
- <xsl:if test="position() != last()">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:with-param>
- <xsl:with-param name="hyphenated" select="$lang"/>
- </xsl:call-template>
- </xsl:template>
- <!-- procedure za ispis ukupne klasifikacije kvalifikacije -->
- <xsl:template name="ispisUkupneKlasifikacijeKvalifikacije">
- <xsl:param name="lang"/>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'4.5'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title4.5"/>
- <xsl:with-param name="value">
- <xsl:value-of select="prosjOcj/nazProsjOcj"/>
- <xsl:text>: </xsl:text>
- <fo:inline font-weight="normal">
- <xsl:value-of select="prosjOcj/prosjOcj"/>
- </fo:inline>
- </xsl:with-param>
- <!-- ako bi cum laude trebao biti u istom redu s ocjenom
- <xsl:with-param name="smallcapsAppendedText">
- <xsl:if test="string-length(zavrsetakStudija/latNazCumLaude) != 0">
- <xsl:value-of select="lower-case(zavrsetakStudija/latNazCumLaude)" />
- <xsl:text> (</xsl:text>
- <xsl:value-of select="lower-case(zavrsetakStudija/nazCumLaude)" />
- <xsl:text>)</xsl:text>
- </xsl:if>
- </xsl:with-param>
- -->
- </xsl:call-template>
- <xsl:if test="string-length(zavrsetakStudija/latNazCumLaude) != 0">
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="''"/>
- <xsl:with-param name="label" select="''"/>
- <xsl:with-param name="value" select="''"/>
- <xsl:with-param name="smallcapsAppendedText">
- <xsl:value-of select="lower-case(zavrsetakStudija/latNazCumLaude)"/>
- <xsl:text> (</xsl:text>
- <xsl:value-of select="lower-case(zavrsetakStudija/nazCumLaude)"/>
- <xsl:text>)</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
- <!-- kraj procedure za ispis ukupne klasifikacije kvalifikacije -->
- <!-- procedura za ispis funkcije kvalifikacije -->
- <xsl:template name="ispisFunkcijeKvalifikacije">
- <xsl:param name="lang"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'5'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title5"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'5.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title5.1"/>
- <xsl:with-param name="value">
- <xsl:for-each select="pristupDaljnjemStudijuPoStudiju/pristupDaljnjemStudiju/para">
- <xsl:apply-templates select="."/>
- <xsl:if test="position() != last()">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:with-param>
- <xsl:with-param name="hyphenated" select="$lang"/>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'5.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title5.2"/>
- <xsl:with-param name="value">
- <xsl:for-each select="profesionalniStatusPoStudiju/profesionalniStatus/para">
- <xsl:apply-templates select="."/>
- <xsl:if test="position() != last()">
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:with-param>
- <xsl:with-param name="hyphenated" select="$lang"/>
- </xsl:call-template>
- </xsl:template>
- <!-- kraj procedure za ispis funkcije kvalifikacije -->
- <!-- procedura za ispis dodatne informacije -->
- <xsl:template name="ispisDodatneInformacije">
- <xsl:param name="lang"/>
- <xsl:variable name="dodInfoNagrade">
- <xsl:for-each select="nagrade/nagrada">
- <dodInfoNagrada>
- <xsl:value-of select="godina"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazVrNagrada"/>
- <xsl:if test="string-length(naslovRada) > 0">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="naslovRada"/>
- </xsl:if>
- </dodInfoNagrada>
- </xsl:for-each>
- <xsl:for-each select="dodatneInformacije/dodInfo">
- <dodInfoNagrada>
- <xsl:value-of select="dodinf"/>
- </dodInfoNagrada>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="brojDodInfoNagrade" select="count($dodInfoNagrade/dodInfoNagrada)"/>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <xsl:call-template name="firstLevel">
- <xsl:with-param name="number" select="'6'"/>
- <xsl:with-param name="label">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title6"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'6.1'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title6.1"/>
- <xsl:with-param name="value">
- <xsl:choose>
- <xsl:when test="$brojDodInfoNagrade = 0">
- <xsl:call-template name="textNotApplicable"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="$dodInfoNagrade/dodInfoNagrada[position() = 1]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="hyphenated" select="$lang"/>
- </xsl:call-template>
- <xsl:for-each select="$dodInfoNagrade/dodInfoNagrada[position() > 1]">
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number"/>
- <xsl:with-param name="label"/>
- <xsl:with-param name="value">
- <xsl:apply-templates select="."/>
- </xsl:with-param>
- <xsl:with-param name="hyphenated">
- <xsl:value-of select="$lang"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- <xsl:call-template name="secondLevel">
- <xsl:with-param name="number" select="'6.2'"/>
- <xsl:with-param name="label" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title6.2"/>
- <xsl:with-param name="value">
- <xsl:for-each select="ostaliIzvori/izvor">
- <xsl:sort select="@rbr"/>
- <xsl:value-of select="."/>
- <xsl:if test="position() != last()">
- <xsl:text>; </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <xsl:template match="nagrada">
- <xsl:value-of select="godina"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazVrNagrada"/>
- <xsl:if test="string-length(naslovRada) > 0">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="naslovRada"/>
- </xsl:if>
- </xsl:template>
- <!-- kraj procedure za ispis dodatne informacije -->
- <!-- procedura za certificiranje dokumenta -->
- <xsl:template name="ispisCertifikata">
- <xsl:param name="lang"/>
- <xsl:call-template name="firstLevelFooterThirdPage">
- <xsl:with-param name="number" select="'7'"/>
- <xsl:with-param name="label">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title7"/>
- </xsl:with-param>
- </xsl:call-template>
- <!-- prazan red -->
- <xsl:call-template name="emptyLine"/>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="45pt"/>
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="105pt"/>
- <fo:table-column column-width="7.2pt"/>
- <fo:table-column column-width="6.8pt"/>
- <fo:table-column column-width="105pt"/>
- <fo:table-column column-width="7.2pt"/>
- <fo:table-column column-width="6.8pt"/>
- <fo:table-column column-width="105pt"/>
- <fo:table-column column-width="7.2pt"/>
- <fo:table-column column-width="6.8pt"/>
- <fo:table-column column-width="105pt"/>
- <fo:table-body>
- <fo:table-row keep-together="always">
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:text>7.1</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title7.1"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:text>7.2</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title7.2"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:text>7.3</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title7.3"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:text>7.4</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title7.4"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-together.within-column="always">
- <fo:table-cell number-columns-spanned="2">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="3">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="ovjeraIsprave/mjestoIzdavanja"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="ovjeraIsprave/datumIzdavanja"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="3">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="ovjeraIsprave/imePotpisnika"/>
- </fo:block>
- <fo:block padding-top="35pt" margin-right="25pt" border-after-width="{$signatureLineThicknes}" border-after-style="solid">
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="3">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="ovjeraIsprave/funkcijaPotpisnika"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <!-- kraj procedure za certificiranje dokumenta -->
- <xsl:template name="textNotApplicable">
- <xsl:call-template name="emDash"/>
- </xsl:template>
- <xsl:template name="enDash">
- <xsl:text>–</xsl:text>
- </xsl:template>
- <xsl:template name="emDash">
- <xsl:text>—</xsl:text>
- </xsl:template>
- <xsl:template name="emptyLine">
- <fo:block span="all" padding-top="{$lineHeightForLeading13}"/>
- <!-- <xsl:attribute name="background-color">yellow</xsl:attribute> -->
- </xsl:template>
- <xsl:template name="firstLevel">
- <xsl:param name="number"/>
- <xsl:param name="label"/>
- <!--<fo:block span="all">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="455pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block start-indent="-14pt" xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$number"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block text-align="center" xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$label"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>-->
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$number" />
- <xsl:text>. </xsl:text>
- <xsl:value-of select="upper-case($label)" />
- </fo:block>
- </xsl:template>
- <xsl:template name="firstLevelFooterThirdPage">
- <xsl:param name="number"/>
- <xsl:param name="label"/>
- <fo:block span="all">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="59pt"/>
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="455pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block start-indent="-14pt" xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$number"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block text-align="center" xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$label"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
- <xsl:template name="secondLevel">
- <xsl:param name="number" select="''"/>
- <xsl:param name="label" select="''"/>
- <xsl:param name="value"/>
- <xsl:param name="hyphenated" select="''"/>
- <xsl:param name="smallcapsAppendedText" select="''"/>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="$number"/>
- <xsl:text>. </xsl:text>
- <xsl:call-template name="annotateSpecECTSlabela">
- <xsl:with-param name="ectsNaslovLabele" select="$label"/>
- </xsl:call-template>
- <xsl:text>:</xsl:text>
- </fo:block>
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2" linefeed-treatment="preserve">
- <xsl:value-of select="$value"/>
- <xsl:if test="string-length($smallcapsAppendedText) != 0">
- <xsl:text> </xsl:text>
- <fo:inline xsl:use-attribute-sets="attset-cumLaude">
- <xsl:value-of select="$smallcapsAppendedText"/>
- </fo:inline>
- </xsl:if>
- </fo:block>
- <!--<fo:block span="all">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18pt"/>
- <fo:table-column column-width="217pt"/>
- <fo:table-column column-width="7pt"/>
- <fo:table-column column-width="223pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="$number"/>
- <xsl:text>.</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2" text-align="left">
- <xsl:call-template name="annotateSpecECTSlabela">
- <xsl:with-param name="ectsNaslovLabele" select="$label"/>
- </xsl:call-template>
- <xsl:text>:</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <xsl:choose>
- <xsl:when test="string-length($hyphenated) != 0">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang" select="$hyphenated"/>
- </xsl:call-template>
- <xsl:value-of select="$value"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="$value"/>
- <xsl:if test="string-length($smallcapsAppendedText) != 0">
- <xsl:text> </xsl:text>
- <fo:inline xsl:use-attribute-sets="attset-cumLaude">
- <xsl:value-of select="$smallcapsAppendedText"/>
- </fo:inline>
- </xsl:if>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>-->
- </xsl:template>
- <xsl:template name="secondLevelStudent">
- <xsl:param name="number" select="''"/>
- <xsl:param name="label" select="''"/>
- <xsl:param name="value"/>
- <xsl:param name="hyphenated" select="''"/>
- <xsl:param name="smallcapsAppendedText" select="''"/>
- <fo:block span="all">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18pt"/>
- <fo:table-column column-width="217pt"/>
- <fo:table-column column-width="7pt"/>
- <fo:table-column column-width="223pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="$number"/>
- <xsl:text>.</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2" text-align="left">
- <xsl:call-template name="annotateSpecECTSlabela">
- <xsl:with-param name="ectsNaslovLabele" select="$label"/>
- </xsl:call-template>
- <xsl:text>:</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <xsl:choose>
- <xsl:when test="string-length($hyphenated) != 0">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang" select="$hyphenated"/>
- </xsl:call-template>
- <xsl:value-of select="$value"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="$value"/>
- <xsl:if test="string-length($smallcapsAppendedText) != 0">
- <xsl:text> </xsl:text>
- <fo:inline xsl:use-attribute-sets="attset-cumLaude">
- <xsl:value-of select="$smallcapsAppendedText"/>
- </fo:inline>
- </xsl:if>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
- <xsl:template name="secondLevelFooterSecondPage">
- <xsl:param name="number" select="''"/>
- <xsl:param name="label" select="''"/>
- <xsl:param name="lang"/>
- <xsl:param name="value"/>
- <fo:block span="all">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="53pt"/>
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="231pt"/>
- <fo:table-column column-width="7pt"/>
- <fo:table-column column-width="231pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">
- <xsl:value-of select="$number"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2" text-align="right">
- <xsl:call-template name="annotateSpecECTSlabela">
- <xsl:with-param name="ectsNaslovLabele">
- <xsl:value-of select="$label"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <fo:block xsl:use-attribute-sets="attset-podaciRazine2">
- <xsl:value-of select="$value"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
- <xsl:template name="secondLevelNoData">
- <xsl:param name="number"/>
- <xsl:param name="label"/>
- <xsl:param name="alwaysKeepWithNext">N</xsl:param>
- <fo:block span="all">
- <xsl:if test="$alwaysKeepWithNext = 'D'">
- <xsl:attribute name="keep-with-next.within-page" select="'always'"/>
- </xsl:if>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="18pt"/>
- <fo:table-column column-width="451pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <!--<fo:block start-indent="-14pt" xsl:use-attribute-sets="attset-labeleRazine1">-->
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2">
- <xsl:value-of select="$number"/>
- <xsl:text>.</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine2" text-align="left">
- <xsl:call-template name="annotateSpecECTSlabela">
- <xsl:with-param name="ectsNaslovLabele">
- <xsl:value-of select="$label"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
- <xsl:template match="prijepisOcjena">
- <xsl:param name="lang"/>
- <!-- ORIGINAL: <fo:table table-layout="fixed" width="100%" keep-together="auto">-->
- <!--<fo:table table-layout="fixed" width="100%" keep-together.within-column="1">-->
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="9pt"/>
- <fo:table-column column-width="30pt"/>
- <fo:table-column column-width="150pt"/>
- <fo:table-column column-width="40pt"/>
- <fo:table-column column-width="20pt"/>
- <fo:table-column column-width="50pt"/>
- <fo:table-column column-width="20pt"/>
- <fo:table-header xsl:use-attribute-sets="attset-zaglavljeTabliceOcjena">
- <fo:table-row>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <fo:block text-align="center">
- <!--<xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textTotalHours"/>-->
- <xsl:text>Sifra predmeta</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <fo:block text-align="left">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textSubject"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <fo:block text-align="center">
- <!-- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textDateOfExamination"/> -->
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textTotalHours"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <fo:block text-align="center">
- <!--<xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textGrade"/>-->
- <xsl:text>Status predmeta</xsl:text>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block text-align="center">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textGrade"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell display-align="after">
- <!--<fo:block text-align="left">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textSubject"/>
- </fo:block>-->
- <fo:block text-align="center">
- <xsl:call-template name="annotateSpecECTStablica">
- <xsl:with-param name="ectsNaslovTablice" select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textEctsCredits"/>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body xsl:use-attribute-sets="attset-podaciRazine2">
- <!-- naslov poglavlja koji se prikazuje ili ne -->
- <xsl:if test="count(../prijepisOcjenaNeUlazeUStjecanjeNaziva/ocjena) > 0">
- <fo:table-row keep-with-previous.within-column="always" keep-with-next.within-column="always">
- <fo:table-cell number-columns-spanned="11">
- <fo:block xsl:use-attribute-sets="attset-zaglavljeTabliceOcjena" text-align="left">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textGradeInQualification"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:if>
- <!-- kad se run svede, mose ostati samo ocjene/ocjena, onaj ostatak je radi stare verzije -->
- <xsl:apply-templates select="ocjene/ocjena|ocjena"/>
- <!--<xsl:if test="count(../prijepisOcjenaNeUlazeUStjecanjeNaziva/ocjena) > 0">
- <xsl:call-template name="ispisOcjenaNeUlaziUStjecanjeNaziva">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:call-template name="ispisDodEctsBodova">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- <xsl:if test="count(../boravci/boravak) > 0">
- <xsl:call-template name="ispisStudijskihBoravaka">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </xsl:if>-->
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <xsl:template match="ocjena">
- <fo:table-row keep-together="auto">
- <xsl:if test="position() = last()">
- <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="rbrOcjena"/>
- <xsl:apply-templates select="sifPred"/>
- <xsl:apply-templates select="nazPred"/>
- <xsl:apply-templates select="satiUkupno"/>
- <xsl:apply-templates select="satiUkupno"/>
- <xsl:apply-templates select="kratOcjena"/>
- <xsl:apply-templates select="ectsBod"/>
- <!--<xsl:apply-templates select="datumIspit"/>-->
- </fo:table-row>
- </xsl:template>
- <xsl:template match="sifPred">
- <fo:table-cell>
- <fo:block text-align="center" xsl:use-attribute-sets="attset-podaciTabliceOcjena">
- <xsl:value-of select="."/>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="kratOcjena">
- <fo:table-cell>
- <fo:block text-align="center" xsl:use-attribute-sets="attset-podaciTabliceOcjena">
- <xsl:choose>
- <xsl:when test=". = '-'">
- <fo:block>
- <xsl:call-template name="textNotApplicable"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="datumIspit">
- <fo:table-cell>
- <fo:block text-align="center" line-height="{$lineHeightTablicaOcjena}">
- <fo:inline xsl:use-attribute-sets="attset-inline-datumIspit">
- <xsl:value-of select="."/>
- </fo:inline>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="rbrOcjena|rbrEcts">
- <fo:table-cell>
- <fo:block text-align="left" line-height="{$lineHeightTablicaOcjena}">
- <fo:inline xsl:use-attribute-sets="attset-inline-rbrOcjena">
- <xsl:value-of select="."/>
- </fo:inline>
- <xsl:text>.</xsl:text>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="rbrOrgJedIzv">
- <xsl:param name="maxBrojZvjezdica" select="0"/>
- <fo:table-cell>
- <fo:block text-align="left" line-height="{$lineHeightTablicaOcjena}">
- <fo:inline>
- <xsl:call-template name="atributiZaZvjezdiceStudijskihBoravaka">
- <xsl:with-param name="maxBrojZvjezdica" select="$maxBrojZvjezdica"/>
- </xsl:call-template>
- <xsl:call-template name="formirajZvjezdice">
- <xsl:with-param name="brojZvjezdica" select="."/>
- </xsl:call-template>
- </fo:inline>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template name="atributiZaZvjezdiceStudijskihBoravaka">
- <xsl:param name="maxBrojZvjezdica"/>
- <xsl:attribute name="font-family">Supplement_Normal</xsl:attribute>
- <xsl:attribute name="font-weight">normal</xsl:attribute>
- <xsl:attribute name="line-height" select="$lineHeightTablicaOcjena"/>
- <xsl:choose>
- <xsl:when test="$maxBrojZvjezdica < 3">
- <xsl:attribute name="font-size">7pt</xsl:attribute>
- <xsl:attribute name="baseline-shift">1pt</xsl:attribute>
- </xsl:when>
- <xsl:when test="$maxBrojZvjezdica = 3">
- <xsl:attribute name="font-size">6.3pt</xsl:attribute>
- <xsl:attribute name="baseline-shift">1.3pt</xsl:attribute>
- </xsl:when>
- <xsl:when test="$maxBrojZvjezdica >= 4">
- <xsl:attribute name="font-size">5.25pt</xsl:attribute>
- <xsl:attribute name="baseline-shift">1.9pt</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="satiUkupno|ectsBod">
- <fo:table-cell>
- <fo:block text-align="center" xsl:use-attribute-sets="attset-podaciTabliceOcjena">
- <xsl:choose>
- <xsl:when test=". = '-'">
- <fo:block>
- <xsl:call-template name="textNotApplicable"/>
- </fo:block>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="naziv">
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-blockNazDodEctsBod">
- <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
- <xsl:value-of select="."/>
- <xsl:variable name="brojZvjezdica" select="../rbrOrgJedIzv"/>
- <xsl:if test="$brojZvjezdica > 0">
- <!-- ispisati onoliko zvjezdica koliko piše u $brojfusnota -->
- <fo:inline xsl:use-attribute-sets="attset-inlineSuperscriptNazDodEctsBod">
- <xsl:call-template name="formirajZvjezdice">
- <xsl:with-param name="brojZvjezdica" select="$brojZvjezdica"/>
- </xsl:call-template>
- </fo:inline>
- </xsl:if>
- </fo:block>
- </fo:table-cell>
- </xsl:template>
- <xsl:template match="nazPred">
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-podaciTabliceOcjena">
- <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
- <xsl:value-of select="supplement:sprijeciLomKratkogKrajaTeksta(.)"/>
- <xsl:variable name="brojZvjezdica" select="../rbrOrgJedIzv"/>
- <xsl:if test="$brojZvjezdica > 0">
- <!-- ispisati onoliko zvjezdica koliko piše u $brojfusnota -->
- <fo:inline xsl:use-attribute-sets="attset-inlineSuperscriptNazPred">
- <xsl:call-template name="formirajZvjezdice">
- <xsl:with-param name="brojZvjezdica" select="$brojZvjezdica"/>
- </xsl:call-template>
- </fo:inline>
- </xsl:if>
- </fo:block>
- <xsl:if test="string-length(../komentarPred) != 0">
- <fo:block xsl:use-attribute-sets="attset-podaciTabliceStranoVuPredmeta">
- <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
- <xsl:value-of select="../komentarPred"/>
- </fo:block>
- </xsl:if>
- </fo:table-cell>
- </xsl:template>
- <xsl:template name="ispisOcjenaNeUlaziUStjecanjeNaziva">
- <xsl:param name="lang"/>
- <fo:table-row number-rows-spanned="2" keep-with-previous.within-column="always">
- <fo:table-cell number-columns-spanned="11">
- <fo:block>
- <xsl:text> </xsl:text>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-with-previous.within-column="always" keep-with-next.within-column="always">
- <fo:table-cell number-columns-spanned="11">
- <fo:block xsl:use-attribute-sets="attset-zaglavljeTabliceOcjena" text-align="left">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textGradeNotInQualification"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <xsl:apply-templates select="../prijepisOcjenaNeUlazeUStjecanjeNaziva/ocjena"/>
- </xsl:template>
- <xsl:template match="prijepisOcjenaNeUlazeUStjecanjeNaziva/ocjena">
- <fo:table-row keep-together="always">
- <xsl:if test="position() = last()">
- <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="rbrOcjena"/>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="satiUkupno"/>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="ectsBod"/>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="datumIspit"/>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="kratOcjena"/>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="nazPred"/>
- </fo:table-row>
- </xsl:template>
- <xsl:template name="ispisDodEctsBodova">
- <xsl:param name="lang"/>
- <fo:table-row number-rows-spanned="2" keep-with-previous.within-column="always">
- <fo:table-cell number-columns-spanned="11">
- <fo:block>
- <xsl:text> </xsl:text>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-with-previous.within-column="always" keep-with-next.within-column="always">
- <fo:table-cell number-columns-spanned="7">
- <fo:block xsl:use-attribute-sets="attset-zaglavljeTabliceOcjena" text-align="center">
- <xsl:call-template name="annotateSpecECTStablica">
- <xsl:with-param name="ectsNaslovTablice">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textAdditionalEctsCredits"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="4">
- <fo:block/>
- </fo:table-cell>
- </fo:table-row>
- <xsl:choose>
- <xsl:when test="count(../prijepisDodEctsBodova/dodBod) > 0">
- <xsl:for-each select="../prijepisDodEctsBodova/dodBod">
- <fo:table-row>
- <xsl:if test="position() = last()">
- <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="rbrEcts"/>
- <fo:table-cell number-columns-spanned="3">
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="ectsBod"/>
- <fo:table-cell number-columns-spanned="5">
- <fo:block/>
- </fo:table-cell>
- <xsl:apply-templates select="naziv"/>
- </fo:table-row>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="7">
- <fo:block xsl:use-attribute-sets="attset-podaciTabliceOcjena" text-align="center">
- <xsl:call-template name="textNotApplicable"/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="4">
- <fo:block/>
- </fo:table-cell>
- </fo:table-row>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="ispisStudijskihBoravaka">
- <xsl:param name="lang"/>
- <fo:table-row number-rows-spanned="2" keep-with-previous.within-column="always">
- <fo:table-cell number-columns-spanned="11">
- <fo:block>
- <xsl:text> </xsl:text>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-with-previous.within-column="always" keep-with-next.within-column="always">
- <fo:table-cell number-columns-spanned="1">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="10">
- <fo:block xsl:use-attribute-sets="attset-zaglavljeTabliceOcjena" text-align="left">
- <xsl:call-template name="annotateSpecECTStablica">
- <xsl:with-param name="ectsNaslovTablice">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/textStudentExchangeTitle"/>
- </xsl:with-param>
- </xsl:call-template>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <xsl:variable name="maxBrojZvjezdica" select="max(../boravci/boravak/rbrOrgJedIzv)"/>
- <xsl:for-each select="../boravci/boravak">
- <xsl:variable name="tekstZaIspis">
- <xsl:value-of select="nazOrgJedIzv"/>
- <xsl:if test="string-length(nazMjesto) != 0">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazMjesto"/>
- </xsl:if>
- <xsl:if test="string-length(nazDrzava) != 0">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazDrzava"/>
- </xsl:if>
- <xsl:text>, </xsl:text>
- <xsl:choose>
- <xsl:when test="count(periodi/period) = 2 and count(periodi/period[izvanSemestra='N']) = 2 and count(distinct-values(periodi/period/akGodina)) = 1">
- <!-- ako su dva perioda koja su izvan semestra i oba su unutar iste akademske godine -->
- <xsl:variable name="semestri" select="periodi/period/rbrElUstNast"/>
- <xsl:value-of select="supplement:nazivSemestra($semestri, $lang)"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="supplement:kompletAkGod((periodi/period/akGodina)[1])"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- u svim ostalim kombinacijama -->
- <xsl:for-each select="periodi/period">
- <xsl:sort select="izvanSemestra" order="descending"/>
- <xsl:if test="position() > 1">
- <!-- poveznica prema sljedećem periodu ili semestru -->
- <!-- ako se promijenila vrsta boravka (u semestru/izvan semestra) tada
- treba staviti "te", a ako se nije promijenila, staviti zarez -->
- <xsl:choose>
- <!--
- <xsl:when test="(preceding-sibling::period/izvanSemestra)[position()=last()] = izvanSemestra">
- <xsl:text>, </xsl:text>
- </xsl:when>
- -->
- <xsl:when test="izvanSemestra='N'">
- <xsl:text>, </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text> </xsl:text>
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/andAlso"/>
- <xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="izvanSemestra = 'N'">
- <xsl:value-of select="supplement:nazivSemestra(rbrElUstNast, $lang)"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="supplement:kompletAkGod(akGodina)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="datumOd"/>
- <xsl:text>-</xsl:text>
- <xsl:value-of select="datumDo"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="nazProgramLL"/>
- </xsl:variable>
- <fo:table-row>
- <xsl:if test="position() = last()">
- <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
- </xsl:if>
- <xsl:apply-templates select="rbrOrgJedIzv">
- <xsl:with-param name="maxBrojZvjezdica" select="$maxBrojZvjezdica"/>
- </xsl:apply-templates>
- <fo:table-cell number-columns-spanned="1">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="9">
- <fo:block>
- <xsl:value-of select="$tekstZaIspis"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:for-each>
- </xsl:template>
- <!-- tablica za ispis zadnje stranice -->
- <xsl:template name="ispisShemeSustava">
- <xsl:param name="lang"/>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="231pt"/>
- <fo:table-column column-width="7pt"/>
- <fo:table-column column-width="231pt"/>
- <fo:table-column column-width="14pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1">8</fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="3">
- <fo:block xsl:use-attribute-sets="attset-labeleRazine1" text-align="center">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/title8"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="2">
- <fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="14pt"/>
- <fo:table-column column-width="231pt"/>
- <fo:table-body>
- <xsl:call-template name="lijevaStranaOpisaShemeSustava">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2">
- <fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="231pt"/>
- <fo:table-column column-width="14pt"/>
- <fo:table-body>
- <xsl:call-template name="desnaStranaOpisaShemeSustava">
- <xsl:with-param name="lang" select="$lang"/>
- </xsl:call-template>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <xsl:template name="lijevaStranaOpisaShemeSustava">
- <xsl:param name="lang"/>
- <xsl:apply-templates select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/opisShemeStudija/lijevaTablica"/>
- </xsl:template>
- <xsl:template name="desnaStranaOpisaShemeSustava">
- <xsl:param name="lang"/>
- <xsl:apply-templates select="document(concat('file:///', $konTekstSupplement))/konTekst/jezik[lang($lang)]/opisShemeStudija/desnaTablica"/>
- </xsl:template>
- <xsl:template match="lijevaTablica/poglavlje">
- <xsl:call-template name="naslovLijeveStraneSheme">
- <xsl:with-param name="number" select="@number"/>
- <xsl:with-param name="label" select="@label"/>
- </xsl:call-template>
- <!-- ovdje choose ako je prazan,onda prazan red -->
- <xsl:apply-templates select="para"/>
- </xsl:template>
- <xsl:template match="lijevaTablica/poglavlje/para">
- <fo:table-row>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-normalTekst">
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang">
- <xsl:value-of select="ancestor::jezik[@xml:lang][1]/@xml:lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:template>
- <xsl:template match="shemaStudijaSC">
- <fo:inline xsl:use-attribute-sets="attset-shemaStudijaSC">
- <xsl:value-of select="."/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="shemaStudijaItalic">
- <fo:inline xsl:use-attribute-sets="attset-shemaStudijaItalic">
- <xsl:value-of select="."/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="desnaTablica/poglavlje/para">
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-normalTekst">
- <xsl:call-template name="attributes-hyphenated">
- <xsl:with-param name="lang">
- <xsl:value-of select="ancestor::jezik[@xml:lang][1]/@xml:lang"/>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- </fo:table-row>
- </xsl:template>
- <xsl:template match="desnaTablica/poglavlje">
- <xsl:call-template name="naslovDesneStraneSheme">
- <xsl:with-param name="number" select="@number"/>
- <xsl:with-param name="label" select="@label"/>
- </xsl:call-template>
- <xsl:apply-templates select="para"/>
- </xsl:template>
- <xsl:template name="naslovLijeveStraneSheme">
- <xsl:param name="number"/>
- <xsl:param name="label"/>
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-brojeviShemeStudiranja">
- <xsl:choose>
- <xsl:when test="string-length($number) = 0">
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$number"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleShemeStudiranja">
- <xsl:choose>
- <xsl:when test="string-length($label) = 0">
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$label"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:template>
- <xsl:template name="naslovDesneStraneSheme">
- <xsl:param name="number"/>
- <xsl:param name="label"/>
- <fo:table-row>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-labeleShemeStudiranja">
- <xsl:choose>
- <xsl:when test="string-length($label) = 0">
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$label"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block xsl:use-attribute-sets="attset-brojeviShemeStudiranja" text-align="right">
- <xsl:choose>
- <xsl:when test="string-length($number) = 0">
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$number"/>
- </xsl:otherwise>
- </xsl:choose>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </xsl:template>
- <xsl:template name="annotateSpecECTStablica">
- <xsl:param name="ectsNaslovTablice"/>
- <xsl:choose>
- <xsl:when test="contains($ectsNaslovTablice, 'ects')">
- <xsl:value-of select="substring-before($ectsNaslovTablice,'ects')"/>
- <fo:inline xsl:use-attribute-sets="attset-specEctsTablica">
- <xsl:text>ects</xsl:text>
- </fo:inline>
- <xsl:value-of select="substring-after($ectsNaslovTablice,'ects')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$ectsNaslovTablice"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="annotateSpecECTSlabela">
- <xsl:param name="ectsNaslovLabele"/>
- <xsl:choose>
- <xsl:when test="contains($ectsNaslovLabele, 'ects')">
- <xsl:value-of select="substring-before($ectsNaslovLabele,'ects')"/>
- <fo:inline xsl:use-attribute-sets="attset-specEctsLabela">
- <xsl:text>ects</xsl:text>
- </fo:inline>
- <xsl:value-of select="substring-after($ectsNaslovLabele,'ects')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$ectsNaslovLabele"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- procedura za crtanje sheme studija -->
- <xsl:template name="crtanjeShemeStudija">
- <xsl:param name="lang"/>
- <!-- slika dijagrama studiranja -->
- <xsl:variable name="dijagramStudiranja" select="concat($imagesBaseUrl, '/dijagramStudiranja_', $lang, '.svg')"/>
- <fo:table table-layout="fixed" width="100%">
- <!-- <fo:table-column column-width="44.5pt" />-->
- <fo:table-column column-width="67pt"/>
- <fo:table-column column-width="500pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <fo:external-graphic src="{$dijagramStudiranja}"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <xsl:template name="attributes-hyphenated">
- <xsl:param name="lang"/>
- <xsl:attribute name="text-align">justify</xsl:attribute>
- <xsl:attribute name="hyphenate">true</xsl:attribute>
- <xsl:attribute name="language">
- <xsl:choose>
- <xsl:when test="$lang='hr'">
- <xsl:value-of select="$replacementHyphenator"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$lang"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:template>
- <xsl:template name="formirajZvjezdice">
- <xsl:param name="brojZvjezdica"/>
- <xsl:variable name="zvjezdiceSequence" select="for $i in 1 to $brojZvjezdica return '*'"/>
- <xsl:value-of select="string-join($zvjezdiceSequence, '')"/>
- </xsl:template>
- <xsl:template name="veryThinEmptyLine">
- <fo:block span="all" padding-top="0.01pt" keep-with-previous.within-page="always">
- <!-- <xsl:attribute name="background-color">magenta</xsl:attribute>-->
- </fo:block>
- </xsl:template>
- <xsl:template name="softEmptyLineKeepWithNext">
- <fo:block span="all" space-before.conditionality="discard" keep-with-next.within-page="always">
- <xsl:attribute name="space-before">
- <xsl:value-of select="$lineHeightForLeading13"/>
- </xsl:attribute>
- </fo:block>
- </xsl:template>
- <xsl:template name="emptyLineKeepWithNext">
- <fo:block span="all" keep-with-next.within-page="always">
- <xsl:attribute name="padding-top">
- <xsl:value-of select="$lineHeightForLeading13"/>
- </xsl:attribute>
- <!-- <xsl:attribute name="background-color">blue</xsl:attribute> -->
- </fo:block>
- </xsl:template>
- <xsl:function name="supplement:nazivSemestra">
- <xsl:param name="semestri"/>
- <xsl:param name="lang"/>
- <xsl:choose>
- <!--
- <xsl:when test="contains($semestri, '1') and contains($semestri, '2')">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))
- /konTekst/jezik[lang($lang)]/textWinterAndSummer" />
- </xsl:when>
- <xsl:when test="contains($semestri, '1') ">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))
- /konTekst/jezik[lang($lang)]/textWinter" />
- </xsl:when>
- <xsl:when test="contains($semestri, '2') ">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement))
- /konTekst/jezik[lang($lang)]/textSummer" />
- </xsl:when>
- -->
- <xsl:when test="$semestri = '1' and $semestri = '2'">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/textWinterAndSummer"/>
- </xsl:when>
- <xsl:when test="$semestri = '1'">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/textWinter"/>
- </xsl:when>
- <xsl:when test="$semestri = '2' ">
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/textSummer"/>
- </xsl:when>
- </xsl:choose>
- <xsl:text> </xsl:text>
- <xsl:value-of select="document(concat('file:///', $konTekstSupplement)) /konTekst/jezik[lang($lang)]/textSemester"/>
- </xsl:function>
- <xsl:function name="supplement:kompletAkGod">
- <xsl:param name="akGodina"/>
- <xsl:value-of select="$akGodina"/>
- <xsl:text>/</xsl:text>
- <xsl:value-of select="$akGodina + 1"/>
- <xsl:text>.</xsl:text>
- </xsl:function>
- <!--
- Ako se sljedeća funkcija ne koristi, dešavaju se nezgodni lomovi naziva predmeta, npr.
- Laboratory of Electrical Power Engineering 2
- se prelama ovako
- Laboratory of Electrical Power Engineering
- 2
- -->
- <!--
- Funkcija u zadanom tekstu (nazivu predmeta) mijenja zadnji space znak u
- non-breaking space znak, ali samo onda kada se iza zadnjeg space znaka
- nalazi vrlo-vrlo kratki tekst.
- Za sada (a može se podesiti po potrebi) mijenja zadnji space znak u slučajevima
- kada tekst zadovoljava sljedeće uzorke:
- .*\s\S{1}$ na kraju niza, iza zadnjeg space-a ima jedan non-white-space znak
- .*\s\S{2}$ na kraju niza, iza zadnjeg space-a ima dva non-white-space znaka
- .*\sIII$ na kraju niza, iza zadnjeg space-a ima kombinacija III (rimski 3)
- To je korisno npr. u nazivima predmeta poput:
- Laboratory of Electrical Engineering Systems and Technology 2
- Osnove općenarodne obrane i društvene samozaštite I :)
- Automata, Formal Languages, and Compiler Design II
- Electrical Machines IV
- Matematika 3E
- Metode predstavljanja znanja u inteligentnim IS
- Automatsko upravljanje sistemima III
- -->
- <xsl:function name="supplement:sprijeciLomKratkogKrajaTeksta">
- <xsl:param name="text"/>
- <xsl:analyze-string select="$text" regex="(.*)(\s)(\S{{1}}|\S{{2}}|I{{3}})$">
- <xsl:matching-substring>
- <!--
- <xsl:message>POČETAK:<xsl:value-of select="regex-group(1)"/></xsl:message>
- <xsl:message>DOČETAK:<xsl:value-of select="regex-group(3)"/></xsl:message>
- -->
- <xsl:value-of select="regex-group(1)"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="regex-group(3)"/>
- </xsl:matching-substring>
- <xsl:non-matching-substring>
- <xsl:value-of select="$text"/>
- </xsl:non-matching-substring>
- </xsl:analyze-string>
- </xsl:function>
- <!-- simulacija need 130pt
- <xsl:template name="simulateNeed130">
- <fo:block-container keep-with-previous.within-page="always" width="100%" height="130pt">
- <fo:block/>
- </fo:block-container>
- <fo:block span="all" space-before="-130pt" keep-with-previous.within-page="always" space-after="13pt"
- padding-top="1pt" background-color="blue">
- </fo:block>
- </xsl:template>
- -->
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment