First full release

This commit is contained in:
Luka Romih
2023-03-10 12:50:23 +01:00
parent 257f3c354f
commit 9867875ef2
285 changed files with 10980 additions and 4692 deletions
+17 -17
View File
@@ -11,7 +11,7 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '.', h2: 'Luščenje iz lastnih besedil | dodaj opravilo ', h1: 'Uporabnikovi dokumenti', description: 'Uporabnik na tem mestu izdela specializirani korpus iz besedil, ki jih je zbral in shranil sam. Besedila naj bodo izbrana po načelih tvorjenja specializiranih korpusov. Za uspešno luščenje priporočamo najmanj 10 besedil. Vsa besedila naj bodo shranjena v besedilnem formatu (.txt). Luščenje podpira tudi formate .docx in .pdf, vendar so rezultati slabši.', buttons: [{ type: 'cancel', content: 'Nazaj', classAtr: 'btn btn-secondary header-btn-secondary link-back' }] }
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje iz lastnih besedil | dodaj opravilo '), h1: t('Uporabnikovi dokumenti'), description: t('Uporabnik na tem mestu izdela specializirani korpus iz besedil, ki jih je zbral in shranil sam. Besedila naj bodo izbrana po načelih tvorjenja specializiranih korpusov. Za uspešno luščenje priporočamo najmanj 10 besedil. Vsa besedila naj bodo shranjena v besedilnem formatu (.txt). Luščenje podpira tudi formate .docx in .pdf, vendar so rezultati slabši.'), buttons: [{ type: 'cancel', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary link-back' }] }
+mainHeader(c)
.content-hold-prerequisites.mt-2
#offset-main
@@ -19,24 +19,24 @@ block body
.table-responsive
table.styled-table
thead
tr
tr#thead
th= 'ID'
th= 'IME DATOTEKE'
th= 'VELIKOST'
th= 'DATUM'
th= t('IME DATOTEKE')
th= t('VELIKOST')
th= t('DATUM')
th= ''
tbody#files-list
each document, index in extractionDocuments
tr
td= index + 1
td.filename= document.filename
td= document.size
td= new Date(document.timeModified).toLocaleDateString('sl-SL')
td
button.p-0.delete-file.delete-btn-table(type="button")
img(src="/images/red-trash-icon.svg" alt="Izbriši")
span.ms-2 Briši
.row.ms-2.me-2.align-items-center.mt-4
td.file-index= index + 1
td.file-name= document.filename
td.file-size= document.size
td.file-date-modified= new Date(document.timeModified).toLocaleDateString('sl-SL')
td.file-last-cell
button.p-0.delete-file.delete-btn-table
img(src="/images/red-trash-icon.svg" alt="")
span.ms-2= t('Briši')
#upload-files-container.row.ms-2.me-2.align-items-center.mt-4
form#upload-files.col-sm-5.upload-a-file-field.p-2.align-items-center.d-flex(
method="post"
enctype="multipart/form-data"
@@ -44,7 +44,7 @@ block body
input(type="hidden" name="extractionId" value=id)
.col-sm-5.upload-inner-border.w-100.justify-content-center.d-sm-flex.p-3.drag-area
div
button.btn.btn-primary(type="button") Dodaj datoteko
button.btn.btn-primary(type="button")= t('Dodaj datoteko')
input#upload(
type="file"
name="extractionFile"
@@ -53,7 +53,7 @@ block body
hidden
)
.col.d-flex.align-items-center.ms-md-3
span.gray-info Dodaj besedilo za luščenje terminoloških kandidatov iz lastnega specializiranega korpusa. Ko boste dodali vsa besedila, ki ste jih izbrali, morate izbiro shraniti.
include /utilities/modal-spinner
span.gray-info= t('Dodaj besedilo za luščenje terminoloških kandidatov iz lastnega specializiranega korpusa. Ko boste dodali vsa besedila, ki ste jih izbrali, morate izbiro shraniti.')
//- include /utilities/modal-spinner
include /utilities/modal-alert
include /common/footer
+18 -17
View File
@@ -11,14 +11,14 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: 'Luščenje iz korpusa besedil OSS', h1: 'Korpus OSS', description: 'Luščenje terminoloških kandidatov iz besedil, ki so že predhodno oblikoslovno označena, nudi dobre rezultate, vendar je treba nabor besedil omejiti. Svetujemo vam, da zoožite področje in dodatno omejite izbiro s tipi besedil in časovnim razponom, v katerih so nastala. Ko vnesete podatke, morate vse spremembe shraniti. Po vnosu podatkov, s katerimi boste omejili nabor izbranih besedil, morate pritisniti gumb Najdi. Izbiro boste shranili lahko le v primeru, da ne bo število najdenih dokumentov preveliko.', buttons: [{ type: 'cancel', url: '/luscenje', content: 'Nazaj', classAtr: 'btn btn-secondary header-btn-secondary' }] }
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: t('Luščenje iz korpusa besedil OSS'), h1: t('Korpus OSS'), description: t('Luščenje terminoloških kandidatov iz besedil, ki so že predhodno oblikoslovno označena, nudi dobre rezultate, vendar je treba nabor besedil omejiti. Svetujemo vam, da zoožite področje in dodatno omejite izbiro s tipi besedil in časovnim razponom, v katerih so nastala. Ko vnesete podatke, morate vse spremembe shraniti. Po vnosu podatkov, s katerimi boste omejili nabor izbranih besedil, morate pritisniti gumb Najdi. Izbiro boste shranili lahko le v primeru, da ne bo število najdenih dokumentov preveliko.'), buttons: [{ type: 'cancel', url: '/luscenje', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary' }] }
+mainHeader(c)
.content-hold-prerequisites
#offset-main.mt-2
form#form-edit-oss(method="post")
.title
.subject-name
label.smaller-black-uppercase(for="name") IME
label.smaller-black-uppercase(for="name")= t('IME')
.row
.col-sm-6
input.name-input.form-control.d-inline(
@@ -27,11 +27,11 @@ block body
value=extraction.name
)
.col-sm.d-flex.align-items-center
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3= t('Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.')
.cerif.mt-4
.subject-name
label.smaller-black-uppercase PODROČJE
label.smaller-black-uppercase= t('PODROČJE')
.row
.col-sm-6
select.name-input.form-control.d-inline(name="domain")
@@ -42,17 +42,18 @@ block body
selected=domain.id === extraction.domainId
)= domain.nameSl
.col-sm.d-flex.align-items-center
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 Izberite področje iz seznama področij, da zmanjšate obseg besedil, iz katerih bo potekalo luščenje.
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3= t('Izberite področje iz seznama področij, da zmanjšate obseg besedil, iz katerih bo potekalo luščenje.')
.cerif.mt-4
.subject-name
label.smaller-black-uppercase VRSTA DOKUMENTA
label.smaller-black-uppercase= t('VRSTA DOKUMENTA')
.row
.col-sm-6
select.pick-multiple.name-input.form-control.d-inline(
name="documentType"
multiple
)
//- TODO i18n - Angleški šifrant, baza, itd.?
option
option(
value=101
@@ -295,11 +296,11 @@ block body
selected=extraction.documentType.includes(325)
) Druga izvedena dela
.col-sm.d-flex.align-items-center
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 Izberite vrsto dokumenta iz seznama, npr. članek, diplomsko delo.
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3= t('Izberite vrsto dokumenta iz seznama, npr. članek, diplomsko delo.')
.year.mt-4
.subject-name
label.smaller-black-uppercase LETO
label.smaller-black-uppercase= t('LETO')
.row
.col-sm-6
select.enter-multiple.name-input.form-control.d-inline(
@@ -309,11 +310,11 @@ block body
each year in extraction.year
option(value=year selected)= year
.col-sm.d-flex.align-items-center
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 Dodajte leto izida besedil, ki jih želite luščiti. Lahko dodate več posameznih let. Če boste polje pustili prazno, bodo vključena vsa leta. Če bo besedil preveč, boste morali omejiti izbiro.
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3= t('Dodajte leto izida besedil, ki jih želite luščiti. Lahko dodate več posameznih let. Če boste polje pustili prazno, bodo vključena vsa leta. Če bo besedil preveč, boste morali omejiti izbiro.')
.words.mt-4
.subject-name
label.smaller-black-uppercase KLJUČNE BESEDE
label.smaller-black-uppercase= t('KLJUČNE BESEDE')
.row
.col-sm-6
select.enter-multiple.name-input.form-control.d-inline(
@@ -323,15 +324,15 @@ block body
each keyword in extraction.keywords
option(value=keyword selected)= keyword
.col-sm.d-flex.align-items-center
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 S ključnimi besedami, ki so vključene v večino znanstvenih in strokovnih, lahko bolj natančno izberete besedila, ki jih želite uporabiti za luščenje terminoloških kandidatov.
span.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3= t('S ključnimi besedami, ki so vključene v večino znanstvenih in strokovnih, lahko bolj natančno izberete besedila, ki jih želite uporabiti za luščenje terminoloških kandidatov.')
.table-kas.mt-5.d-sm-flex
.d-flex.flex-column.col-sm-6
.personal-documents.justify-content-between.d-flex.align-items-center
span.smaller-black-uppercase (STOP) Termini
span.smaller-black-uppercase= t('(STOP) Termini')
a#edit-stop-terms.btn.btn-primary.button-edit.align-items-center.d-flex.justify-content-center.me-2(
type="link"
href=`${id}/stop-termini`
) Uredi
)= t('Uredi')
div
table.table.mt-2
tbody
@@ -341,23 +342,23 @@ block body
td.text-sm-start.normal-gray= file.filename
td.text-sm-end.normal-gray= file.size
.col.d-flex.ms-2
.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3 Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Vse spremembe morate shraniti. #[a.smaller-gray-info(href="/pomoc#help-stop-lists") Več...]
.d-md-inline.d-block.smaller-gray-info.ms-xxl-3.ms-md-3!= t('Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Vse spremembe morate shraniti. <a class="smaller-gray-info" href="/pomoc#help-stop-lists">Več...</a>')
.col-sm-4.mt-5
button#search-btn.btn.btn-primary(type="button") Najdi
button#search-btn.btn.btn-primary(type="button")= t('Najdi')
#search-result
.task.task-completed.p-3.mb-3.mt-4.d-none
.d-sm-flex.justify-content-between
.d-sm-grid
span.normal-gray Število dokumentov
span.normal-gray= t('Število dokumentov')
span#results-count.bold-weight-black
.d-sm-flex.align-items-center
button#save-params.btn.btn-primary.align-items-center.d-flex(
disabled
)
img(src="/images/external-link-white.svg")
span.ms-1 Shrani
span.ms-1= t('Shrani')
include /utilities/modal-spinner
include /utilities/modal-alert
+10 -9
View File
@@ -2,6 +2,7 @@ extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/extraction.js")
script(nonce=cspNonce src="/javascripts/extraction-edit-own.js")
block body
section#fixed-top-section
@@ -10,14 +11,14 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: 'Luščenje iz lastnih besedil', h1: 'Dodaj opravilo', description: 'Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik namensko izbere, je najučinkovitejše. Primerno izbrano ime opravila, vam omogoča, da lahko sledite, katera luščenja ste že opravili. Ko vnesete podatke, morate vse spremembe shraniti. Zaradi omejenega prostora za shranjevanje lahko shranite največ pet zadnjih luščenj. ', buttons: [{ type: 'cancel', url:'/luscenje', content: 'Prekliči', classAtr:"btn btn-secondary header-btn-secondary" }, { type: 'button', content: 'Shrani', form: 'extraction-name' }] }
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: t('Luščenje iz lastnih besedil'), h1: t('Dodaj opravilo'), description: t('Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik namensko izbere, je najučinkovitejše. Primerno izbrano ime opravila, vam omogoča, da lahko sledite, katera luščenja ste že opravili. Ko vnesete podatke, morate vse spremembe shraniti. Zaradi omejenega prostora za shranjevanje lahko shranite največ pet zadnjih luščenj. '), buttons: [{ type: 'cancel', url:'/luscenje', content: t('Naprej'), classAtr:"btn border-header header-btn-secondary" }, { type: 'button', content: t('Shrani'), classAtr:'btn btn-primary disabled header-btn', form: 'extraction-name' }] }
+mainHeader(c)
.root-container
.content-hold-prerequisites.mt-2
#offset-main
form#extraction-name(method="post")
.subject-name
label.smaller-black-uppercase(for="name") IME
label.smaller-black-uppercase(for="name")= t('IME')
.row.pe-0
.col-sm-6.pe-0
input#name.name-input.form-control.d-inline(
@@ -26,16 +27,16 @@ block body
value=extraction.name
)
.col-sm.d-flex.align-items-center.ms-sm-4.ps-sm-0.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.
span.d-md-inline.d-block.smaller-gray-info= t('Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.')
.table-documents.mt-4.d-sm-flex
.col-sm-6.d-flex.flex-column
.personal-documents.justify-content-between.d-flex.align-items-center
span.smaller-black-uppercase Lastni dokumenti
span.smaller-black-uppercase= t('Lastni dokumenti')
a.btn.btn-primary.button-edit.align-items-center.d-flex.justify-content-center(
type="link"
href=`/luscenje/${id}/besedila`
) Uredi
)= t('Uredi')
div
table.table.mt-2
tbody
@@ -45,16 +46,16 @@ block body
td.text-sm-start.normal-gray= document.filename
td.text-sm-end.normal-gray= document.size
.col-sm.d-flex.ms-sm-4.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info Preden naložite besedila, jih shranite v besedilni obliki (končnica .txt).
span.d-md-inline.d-block.smaller-gray-info= t('Preden naložite besedila, jih shranite v besedilni obliki (končnica .txt).')
.table-kas.mt-4.d-sm-flex
.col-sm-6.d-flex.flex-column
.personal-documents.justify-content-between.d-flex.align-items-center
span.smaller-black-uppercase (STOP) Termini
span.smaller-black-uppercase= t('(STOP) Termini')
a.btn.btn-primary.button-edit.align-items-center.d-flex.justify-content-center(
type="link"
href=`/luscenje/${id}/stop-termini`
) Uredi
)= t('Uredi')
div
table.table.mt-2
tbody
@@ -64,6 +65,6 @@ block body
td.text-sm-start.normal-gray= file.filename
td.text-sm-end.normal-gray= file.size
.col-sm.d-flex.ms-sm-4.mt-1.mt-sm-0
.d-md-inline.d-block.smaller-gray-info Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. #[a.smaller-gray-info(href="/pomoc#help-stop-lists") Več...]
.d-md-inline.d-block.smaller-gray-info!= t('Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Vse spremembe morate shraniti. <a class="smaller-gray-info" href="/pomoc#help-stop-lists">Več...</a>')
include /common/footer
+74 -70
View File
@@ -12,7 +12,7 @@ block body
+sideNavigationFake
if user
include /utilities/dictionaries-main-panel-header
- const c = { sideMenu: false, h2: 'Luščenje', h1: 'Seznam luščenj', description: 'Nabor vseh luščenj, s katerimi lahko uporabnik iz izbranih besedil pridobi sezname terminoloških kandidatov. Posamezne terminološke kandidate lahko preveri tudi v konkordančniku.' }
- const c = { sideMenu: false, h2: t('Luščenje'), h1: t('Seznam luščenj'), description: t('Nabor vseh luščenj, s katerimi lahko uporabnik iz izbranih besedil pridobi sezname terminoloških kandidatov. Posamezne terminološke kandidate lahko preveri tudi v konkordančniku.') }
+mainHeader(c)
-
const localeDayOptions = {
@@ -28,26 +28,30 @@ block body
}
.content-hold-prerequisites
#offset-main.mt-2
form(method="post")
input(type="hidden" name="extractionType" value="own")
.row.align-items-center
.col-xl-6.white-border-background.p-4.d-flex.ms-lg-3
span.smaller-blue-subheading.me-auto.mt-3 Luščenje iz lastnih besedil
button.btn.btn-primary.ps-5.pe-5 DODAJ
.col-sm.mt-2.mt-xl-0.ms-2
span.span.d-md-inline.d-block.gray-info Luščenje terminoloških kandidatov iz besedil, ki jih ima uporabnik shranjena pri sebi. Za boljšo učinkovitost svetujemo format .txt.
form(method="post")
input(type="hidden" name="extractionType" value="oss")
.row.mt-4.align-items-center
.col-xl-6.white-border-background.p-4.d-flex.ms-lg-3
span.smaller-blue-subheading.me-auto.mt-3 Luščenje iz korpusa besedil OSS
button.btn.btn-primary.ps-5.pe-5 DODAJ
.col-md.mt-2.mt-xl-0.ms-2
span.span.d-md-inline.d-block.gray-info Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik izbere med vsemi besedili, vključenimi v #[a.gray-info(href="https://openscience.si/") Nacionalni portal odprte znanosti].
if extractions.length >= 5
.d-flex.justify-content-center.mt-3
p= t('Če želite dodati novo luščenje, morate najprej pobrisati vsaj eno od obstoječih, saj je na posameznega uporabnika dovoljenih največ 5 luščenj.')
else
form(method="post")
input(type="hidden" name="extractionType" value="own")
.row.align-items-center
.col-xl-6.white-border-background.px-0.py-4.d-flex.ms-xl-3
span.smaller-blue-subheading.ms-3.me-auto.mt-3= t('Luščenje iz lastnih besedil')
button.btn.btn-primary.ps-5.pe-5.me-3= t('DODAJ')
.col-sm.mt-2.mt-xl-0.ps-1.ms-lg-3
span.span.d-md-inline.d-block.gray-info= t('Luščenje terminoloških kandidatov iz besedil, ki jih ima uporabnik shranjena pri sebi. Za boljšo učinkovitost svetujemo format .txt.')
form(method="post")
input(type="hidden" name="extractionType" value="oss")
.row.mt-4.align-items-center
.col-xl-6.white-border-background.px-0.py-4.d-flex.ms-xl-3
span.smaller-blue-subheading.ms-3.me-auto.mt-3= t('Luščenje iz korpusa besedil OSS')
button.btn.btn-primary.ps-5.pe-5.me-3= t('DODAJ')
.col-md.mt-2.mt-xl-0.ps-1.ms-lg-3
span.span.d-md-inline.d-block.gray-info!= t('Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik izbere med vsemi besedili, vključenimi v <a class="gray-info" href="https://openscience.si/" target="_blank">Nacionalni portal odprte znanosti</a>.')
#extraction-list.all-tasks.mt-5.ms-2.ps-0
#extraction-list.all-tasks.mt-4.ps-0
if !extractions.length
p Nimate luščenj za urejanje.
p= t('Nimate luščenj za urejanje.')
else
each el in extractions
if el.status === 'new'
@@ -56,26 +60,26 @@ block body
.d-grid.task-name
span.bold-weight-black= el.name
.d-flex.align-items-center
button.btn.btn-secondary.extraction-btn.btn-begin.align-items-center.d-flex(
button.btn.border-header.extraction-btn.btn-begin.align-items-center.d-flex(
disabled=!el.canBegin ? true : false
)
img(src="/images/fi_arrow-right-circle.svg")
span.ms-1 ZAČNI
span.ms-1= t('ZAČNI')
hr.mt-2.mb-3
.d-flex.justify-content-sm-between
.d-flex.justify-content-sm-between.align-items-center
.d-sm-flex.align-items-center.mb-0
img(src="/images/alert-circle.svg")
span.normal-gray.ms-1.me-2.me-sm-0 Nov
.d-flex.align-items-center
span.normal-gray.ms-1.me-2.me-sm-0= t('Nov')
.d-flex.align-items-center.ms-auto
a.btn.p-0.align-items-center.me-lg-3.edit-task(
href=`luscenje/${el.id}`
)
img(src="/images/u_edit-alt.svg" alt="Edit")
span.ms-1.normal-gray Uredi
span.ms-1.normal-gray= t('Uredi')
.ms-3
button.p-0.btn.delete-task.btn-delete(type="button")
img(src="/images/red-trash-icon.svg" alt="")
span.normal-gray.ms-2 Briši
span.normal-gray.ms-2= t('Briši')
if el.status === 'in progress'
.task.task-in-progress.p-3.mb-3(data-id=el.id)
@@ -87,7 +91,7 @@ block body
.d-grid.ms-1.align-items-center
.d-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center Začetek
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
@@ -95,20 +99,20 @@ block body
.d-flex.justify-content-between
.d-sm-flex.align-items-center.mb-0.flex-grow-1
img(src="/images/clock.svg")
span.normal-gray.ms-1 V obdelavi
span.normal-gray.ms-1= t('V obdelavi')
if el.status === 'failed'
.task.task-cancelled.p-3.mb-3(data-id=el.id)
.d-lg-flex.justify-content-between
.d-flex.flex-column
.d-lg-flex
.d-flex.flex-column.task-name
span.bold-weight-black= el.name
.d-sm-flex
.d-sm-flex.dates-div
.d-flex
.d-sm-flex.start-date
.d-sm-grid.ms-1.align-items-center.mt-2.mt-md-0
.d-sm-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center Začetek
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-2.ms-sm-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
@@ -116,24 +120,22 @@ block body
.d-md-grid.ms-md-1.align-items-center
.d-md-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center Konec
span.smaller-gray-uppercase.align-items-center= t('Konec')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeFinished.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeFinished.toLocaleString('sl-SI', localeHourOptions)
//- TODO: Once duplication is implemented remove "disabled" attribute from btn
.d-flex.align-items-center.justify-content-lg-end.mt-2.mt-sm-0.ms-2.ms-md-0
button.btn.btn-secondary.double-task.align-items-center.d-flex(
disabled
)
//- TODO: Once duplication is implemented remove ".invisible" class
.d-flex.align-items-center.justify-content-lg-end.mt-2.mt-sm-0.ms-2.ms-md-0.invisible
button.btn.border-header.double-task.align-items-center.d-flex
img(src="/images/fi_copy_border.svg")
span.ms-1 PODVOJI
span.ms-1= t('PODVOJI')
hr.mt-2.mb-3
.d-flex.justify-content-sm-between
.d-sm-flex.align-items-center.mb-sm-0.me-3.me-sm-0
img(src="/images/alert-triangle.svg")
span.normal-gray.ms-sm-1.ms-0 Prekinjen
.d-flex.align-items-center.mb-sm-0.me-3.mt-0
span.normal-gray.ms-sm-1.ms-0= t('Prekinjen')
.d-flex.mb-sm-0.mt-0
//- a.edit-task.btn.p-0(href=`luscenje/${el.id}`)
//- img(src="/images/u_edit-alt.svg" alt="Edit")
//- span.normal-gray.ms-sm-1.ms-0 Uredi
@@ -143,19 +145,19 @@ block body
.ms-3
button.p-0.btn.delete-task.btn-delete(type="button")
img(src="/images/red-trash-icon.svg" alt="")
span.normal-gray.ms-2 Briši
span.normal-gray.ms-2= t('Briši')
if el.status === 'finished'
.task.task-completed.p-3.mb-3(data-id=el.id)
.d-lg-flex.justify-content-between
.d-sm-flex
.d-flex.flex-column.task-name
span.bold-weight-black= el.name
.d-sm-flex
.d-sm-flex.dates-div
.d-flex
.d-sm-flex.start-date
.d-sm-grid.ms-1.align-items-center.mt-2.mt-md-0
.d-sm-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center Začetek
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-2.ms-sm-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
@@ -163,58 +165,60 @@ block body
.d-md-grid.ms-md-1.align-items-center
.d-md-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center Konec
span.smaller-gray-uppercase.align-items-center= t('Konec')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeFinished.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeFinished.toLocaleString('sl-SI', localeHourOptions)
.d-sm-flex.align-items-center.ms-sm-5.mt-2.mt-md-0
img(src="/images/fi_check-circle.svg")
span.ms-2 Končan
.d-sm-flex.align-items-center.mt-2.mt-md-0.ms-auto.me-3
a.edit-task.btn.p-0(href=`luscenje/${el.id}`)
img(src="/images/u_edit-alt.svg")
span.ms-1 UREDI
.d-flex.align-items-center.ms-2.ms-sm-auto.mt-2.mt-md-0
img(src="/images/fi_check-circle.svg")
span.ms-2= t('Končan')
//- .d-sm-flex.align-items-center.mt-2.mt-md-0.ms-auto.me-3
//- a.edit-task.btn.p-0.ms-auto(href=`luscenje/${el.id}`)
//- img(src="/images/u_edit-alt.svg")
//- span.ms-1 UREDI
hr.mt-2.mb-3
.d-lg-flex.justify-content-between
.d-lg-flex.align-content-center.mb-0.flex-grow-1
a#terminology-candidates.btn.btn-primary.align-items-center(
.d-lg-flex.align-items-center.mb-0.flex-grow-1
a.terminology-candidates.btn.btn-primary.align-items-center(
href=`luscenje/${el.id}/kandidati`
)
img(src="/images/book-white.svg")
span.ms-1 Terminološki kandidati [#{ el.termCandidatesCount }]
//- TODO I18n - Možna kakšna napaka, trenutno ne morem testirati luščenja
span.ms-1 #{ t('Terminološki kandidati') } [#{ el.termCandidatesCount }]
if el.status === 'finished' && el.corpusId
a.btn.btn-secondary.ps-2.pe-2.mt-2.mt-lg-0.ms-md-1(
a.btn.border-header.ext-secondary-btn.mt-2.mt-lg-0.ms-md-1(
href=`/korpus/${el.corpusId}`
target="_blank"
)
img(src="/images/list.svg")
span.normal-gray.ms-1 Uporabniški korpus
span.normal-gray.ms-1= t('Uporabniški korpus')
if el.status === 'finished' && el.ossParams
a.btn.btn-secondary.ps-2.pe-2.mt-2.mt-lg-0.ms-md-1(
href="https://www.clarin.si/noske/run.cgi/corp_info?corpname=oss&struct_attr_stats=1"
a.btn.border-header.ext-secondary-btn.mt-2.mt-lg-0.ms-md-1(
href="https://www.clarin.si/ske/#dashboard?corpname=oss"
target="_blank"
)
img(src="/images/list.svg")
span.normal-gray.ms-1 Korpus KAS+
.d-flex.align-items-center.mb-0.me-3.mt-2.mt-lg-0
.align-items-center.double-task
img(src="/images/fi_copy_border.svg" alt="Copy")
span.normal-gray.ms-1 Podvoji
span.normal-gray.ms-1= t('Korpus OSS')
.d-flex.align-items-center.mb-0.mt-2.mt-lg-0.justify-content-end
//- .align-items-center.double-task
//- img(src="/images/fi_copy_border.svg" alt="Copy")
//- span.normal-gray.ms-1 Podvoji
.ms-3
button.p-0.btn.delete-task.btn-delete(type="button")
img(src="/images/red-trash-icon.svg" alt="")
span.normal-gray.ms-2 Briši
span.normal-gray.ms-2= t('Briši')
include /utilities/modal-alert
include /utilities/modal-alert-mixin
+alertModal("max-extractions", "Razumem", "Prekliči", "ok-btn-modal", "cancel-btn", 'TODO text več kot 5 luščenj!')
+alertModal("max-extractions", t("Razumem"), t("Prekliči"), "ok-btn-modal", "cancel-btn", t('Ne morete imeti več kot 5 luščenj!'))
include /utilities/modal-response
+responseModal("begin-response", "Razumem", "understand-btn", "Luščenje je bilo dano v fazo obdelave.")
+responseModal("begin-response", t("Razumem"), "understand-btn", t("Luščenje je bilo dano v fazo obdelave."), t("Ko bo luščenje uspešno zaključeno, boste na svoj elektronski naslov, ki ste ga navedli ob registraciji, prejeli obvestilo."))
else
include /utilities/dictionaries-main-panel-header
- const c = { sideMenu: false, h2: 'Luščenje', h1: 'Seznam luščenj', description: 'Nabor vseh luščenj, s pomočjo katerih uporabnik iz vhodnih besedil pridobi sezname terminoloških kandidatov in dostop do konkordančnika po teh besedilih.' }
- const c = { sideMenu: false, h2: t('Luščenje'), h1: t('Seznam luščenj'), description: t('Nabor vseh luščenj, s pomočjo katerih uporabnik iz vhodnih besedil pridobi sezname terminoloških kandidatov in dostop do konkordančnika po teh besedilih.') }
+mainHeader(c)
.content-hold-prerequisites
#offset-main
.d-flex.justify-content-center.mt-5
p Za luščenje terminoloških kandidatov morate biti prijavljeni.
p= t('Za luščenje terminoloških kandidatov morate biti prijavljeni.')
include /common/footer
@@ -11,7 +11,7 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '.', h2: 'Luščenje | dodaj opravilo', h1: 'Seznam neželenih terminov', description: 'Seznam terminoloških kandidatov bo natančnejši, če boste dodali tudi seznam neželenih besed, ki naj jih luščilnik izloči iz seznama. Seznam lahko vsebuje splošne termine, npr. tabela, kazalnik, ali pogoste slovnične besede, zlasti veznike, pomožne glagole.', buttons: [{ type: 'cancel', content: 'Nazaj', classAtr: 'btn btn-secondary header-btn-secondary link-back' }] }
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje | dodaj opravilo'), h1: t('Seznam neželenih terminov'), description: t('Seznam terminoloških kandidatov bo natančnejši, če boste dodali tudi seznam neželenih besed, ki naj jih luščilnik izloči iz seznama. Seznam lahko vsebuje splošne termine, npr. tabela, kazalnik, ali pogoste slovnične besede, zlasti veznike, pomožne glagole.'), buttons: [{ type: 'cancel', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary link-back' }] }
+mainHeader(c)
.content-hold-prerequisites.mt-2
#offset-main
@@ -19,24 +19,24 @@ block body
.table-responsive
table.styled-table
thead
tr
tr#thead
th= 'ID'
th= 'IME DATOTEKE'
th= 'VELIKOST'
th= 'DATUM'
th= t('IME DATOTEKE')
th= t('VELIKOST')
th= t('DATUM')
th= ''
tbody#files-list
each document, index in stopTermsFiles
tr
td= index + 1
td.filename= document.filename
td= document.size
td= new Date(document.timeModified).toLocaleDateString('sl-SL')
td
button.p-0.delete-file.delete-btn-table(type="button")
img(src="/images/red-trash-icon.svg" alt="Izbriši")
span.ms-2 Briši
.row.ms-2.me-2.align-items-center.mt-4
td.file-index= index + 1
td.file-name= document.filename
td.file-size= document.size
td.file-date-modified= new Date(document.timeModified).toLocaleDateString('sl-SL')
td.file-last-cell
button.p-0.delete-file.delete-btn-table
img(src="/images/red-trash-icon.svg" alt="")
span.ms-2= t('Briši')
#upload-files-container.row.ms-2.me-2.align-items-center.mt-4
form#upload-files.col-sm-5.upload-a-file-field.p-2.align-items-center.d-flex(
method="post"
enctype="multipart/form-data"
@@ -44,7 +44,7 @@ block body
input(type="hidden" name="extractionId" value=id)
.col-sm-5.upload-inner-border.w-100.justify-content-center.d-sm-flex.p-3.drag-area
div
button.btn.btn-primary(type="button") Dodaj datoteko
button.btn.btn-primary(type="button")= t('Dodaj datoteko')
input#upload(
type="file"
name="extractionFile"
@@ -53,7 +53,7 @@ block body
hidden
)
.col.d-flex.align-items-center.ms-md-3
span.gray-info Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Na koncu morate spremembe shraniti. #[a.smaller-gray-info(href="/pomoc#help-stop-lists") Več...]
include /utilities/modal-spinner
span.gray-info!= t('Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Na koncu morate spremembe shraniti. <a class="smaller-gray-info" href="/pomoc#help-stop-lists" target="_blank">Več ...</a>')
//- include /utilities/modal-spinner
include /utilities/modal-alert
include /common/footer
@@ -12,13 +12,11 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '.', h2: 'Luščenje', h1: 'Terminološki kandidati', description: 'Seznam terminoloških kandidatov, ki so rezultat izbranega luščenja.', buttons: [{ type: 'cancel', url: '/luscenje', content: 'Nazaj', classAtr: 'btn btn-secondary header-btn-secondary' }] }
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje'), h1: t('Terminološki kandidati'), description: t('Seznam terminoloških kandidatov, ki so rezultat izbranega luščenja.'), buttons: [{ type: 'cancel', url: '/luscenje', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary' }] }
+mainHeader(c)
.content-hold-prerequisites.me-2
#offset-main.mt-3
.d-flex.w-100.justify-content-between.mb-4
.d-flex
include /components/search-and-filter/inline-search
.d-flex.w-100.justify-content-end.mb-4
.d-flex
include /utilities/pager
+pager
@@ -26,30 +24,30 @@ block body
.table-responsive
table.styled-table
thead
tr
th= '#'
th= 'KANONIČNA OBLIKA'
th= 'RANKING'
th= 'POGOSTOST OBJAVLJANJA'
tr#thead
th.td-index= '#'
th.td-cannon= t('KANONIČNA OBLIKA')
th= t('UTEŽ')
th= t('POJAVITVE')
tbody#page-results
each termCandidate, index in firstPageOfTermCandidates
tr
td= index + 1
td= termCandidate.kanonicnaoblika
td= termCandidate.ranking
td= termCandidate.pogostostpojavljanja
td= termCandidate.pogostostpojavljanja[0]
form(action=`/api/v1/extraction/${extractionId}/term-candidates-export`)
.row.mt-4
.me-0.pe-0.d-flex.align-items-center
span.radio-button-labels Izvozi termine od številke
span.radio-button-labels= t('Izvozi termine od številke')
input.without-arrows.form-control.terminology-input.ms-1(
type="number"
name="from"
maxlength="5"
min="0"
)
span.radio-button-labels.ms-1 do številke
span.radio-button-labels.ms-1= t('do številke')
input.without-arrows.form-control.terminology-input.ms-1(
type="number"
name="to"
@@ -99,7 +97,7 @@ block body
//- span.name-info-txt.ms-5 Navodilo k posamičnemu polju. Anim duis ullamco Lorem reprehenderit.
.d-sm-flex.mt-4
button.btn.btn-primary.me-2
| Izvozi
= t('Izvozi')
include /common/footer