Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search
Commits
ae92a191
Commit
ae92a191
authored
Sep 24, 2021
by
Gradl, Tobias
Browse files
Item view improved
parent
b0c088d7
Pipeline
#27035
passed with stage
in 54 seconds
Changes
9
Pipelines
1
Show whitespace changes
Inline
Side-by-side
build.gradle
View file @
ae92a191
...
@@ -9,7 +9,7 @@ allprojects {
...
@@ -9,7 +9,7 @@ allprojects {
apply
plugin:
'eclipse'
apply
plugin:
'eclipse'
group
=
'eu.dariah.de.minfba'
group
=
'eu.dariah.de.minfba'
version
=
'4.3.1
5
-SNAPSHOT'
version
=
'4.3.1
7
-SNAPSHOT'
repositories
{
repositories
{
mavenLocal
()
mavenLocal
()
...
@@ -19,8 +19,8 @@ allprojects {
...
@@ -19,8 +19,8 @@ allprojects {
}
}
ext
{
ext
{
coreVersion
=
"6.5.4-SNAPSHOT"
coreVersion
=
"6.5.4-SNAPSHOT"
gtfVersion
=
"2.3.
4
-SNAPSHOT"
gtfVersion
=
"2.3.
6
-SNAPSHOT"
processingVersion
=
"4.3.
6
-SNAPSHOT"
processingVersion
=
"4.3.
9
-SNAPSHOT"
colregModelVersion
=
"4.5.10-SNAPSHOT"
colregModelVersion
=
"4.5.10-SNAPSHOT"
dariahSpVersion
=
"2.1.7-RELEASE"
dariahSpVersion
=
"2.1.7-RELEASE"
...
...
search-core/src/main/java/eu/dariah/de/search/controller/CollectionEditorController.java
View file @
ae92a191
...
@@ -195,9 +195,13 @@ public class CollectionEditorController extends BaseController {
...
@@ -195,9 +195,13 @@ public class CollectionEditorController extends BaseController {
List
<
String
>
clearCrawlIds
=
new
ArrayList
<>();
List
<
String
>
clearCrawlIds
=
new
ArrayList
<>();
crawls
=
crawlService
.
findCrawls
(
epId
,
dmId
,
CrawlOnlineFlag
.
Offline
,
CrawlCompleteFlag
.
Both
,
CrawlErrorFlag
.
Both
,
0
);
crawls
=
crawlService
.
findCrawls
(
epId
,
dmId
,
CrawlOnlineFlag
.
Offline
,
CrawlCompleteFlag
.
Both
,
CrawlErrorFlag
.
Both
,
0
);
Crawl
lastOfflineCrawl
=
null
;
for
(
Crawl
c
:
crawls
)
{
for
(
Crawl
c
:
crawls
)
{
if
(
lastOnlineCrawl
==
null
||
c
.
getModified
().
isBefore
(
lastOnlineCrawl
.
getModified
()))
{
if
(
lastOnlineCrawl
==
null
||
c
.
getModified
().
isBefore
(
lastOnlineCrawl
.
getModified
())
||
lastOfflineCrawl
!=
null
)
{
clearCrawlIds
.
add
(
c
.
getId
());
clearCrawlIds
.
add
(
c
.
getId
());
}
else
if
(
lastOfflineCrawl
==
null
)
{
lastOfflineCrawl
=
c
;
}
}
}
}
this
.
addCrawlId
(
clearCrawlIds
,
crawlService
.
findCrawls
(
epId
,
dmId
,
CrawlOnlineFlag
.
Both
,
CrawlCompleteFlag
.
Incomplete
,
CrawlErrorFlag
.
Both
,
0
));
this
.
addCrawlId
(
clearCrawlIds
,
crawlService
.
findCrawls
(
epId
,
dmId
,
CrawlOnlineFlag
.
Both
,
CrawlCompleteFlag
.
Incomplete
,
CrawlErrorFlag
.
Both
,
0
));
...
...
search-core/src/main/java/eu/dariah/de/search/controller/search/ItemController.java
View file @
ae92a191
...
@@ -131,19 +131,40 @@ public class ItemController extends BaseController {
...
@@ -131,19 +131,40 @@ public class ItemController extends BaseController {
}
}
List
<
Resource
>
video
=
ResourceHelper
.
findRecursive
(
res
,
"MultimediaContent.Video"
);
List
<
Resource
>
video
=
ResourceHelper
.
findRecursive
(
res
,
"MultimediaContent.Video"
);
if
(!
audi
o
.
isEmpty
())
{
if
(!
vide
o
.
isEmpty
())
{
contentElements
.
put
(
"Video"
,
video
);
contentElements
.
put
(
"Video"
,
video
);
}
}
List
<
Resource
>
info
=
ResourceHelper
.
findRecursive
(
res
,
"PrimaryInfo"
);
List
<
Resource
>
infos
=
ResourceHelper
.
findRecursive
(
res
,
"PrimaryInfo"
);
if
(!
audio
.
isEmpty
())
{
if
(!
infos
.
isEmpty
())
{
contentElements
.
put
(
"Info"
,
info
);
String
queryMessageCode
;
String
label
;
for
(
Resource
info
:
infos
)
{
if
(
info
.
getChildResources
()!=
null
)
{
// Check for available translations
for
(
Resource
c
:
info
.
getChildResources
())
{
if
(
c
.
getKey
().
equals
(
"Type"
)
&&
c
.
getValue
()!=
null
)
{
queryMessageCode
=
"~eu.dariah.de.minfba.search.view.item.presentation_metadata.primary_info_types."
+
c
.
getValue
().
toString
().
toLowerCase
();
label
=
messageSource
.
getMessage
(
queryMessageCode
,
null
,
locale
);
if
(!
label
.
equals
(
queryMessageCode
))
{
c
.
setValue
(
label
);
}
}
}
}
}
contentElements
.
put
(
"Info"
,
infos
);
}
}
List
<
Resource
>
frames
=
ResourceHelper
.
findRecursive
(
res
,
"EmbeddedFrame"
);
List
<
Resource
>
frames
=
ResourceHelper
.
findRecursive
(
res
,
"EmbeddedFrame"
);
if
(!
frames
.
isEmpty
())
{
if
(!
frames
.
isEmpty
())
{
contentElements
.
put
(
"Frame"
,
frames
);
contentElements
.
put
(
"Frame"
,
frames
);
}
}
List
<
Resource
>
keywords
=
ResourceHelper
.
findRecursive
(
res
,
"Keyword"
);
if
(!
keywords
.
isEmpty
())
{
model
.
addAttribute
(
"keywords"
,
keywords
);
}
model
.
addAttribute
(
"titles"
,
titles
);
model
.
addAttribute
(
"titles"
,
titles
);
model
.
addAttribute
(
"links"
,
links
);
model
.
addAttribute
(
"links"
,
links
);
model
.
addAttribute
(
"images"
,
images
);
model
.
addAttribute
(
"images"
,
images
);
...
...
search-core/src/main/java/eu/dariah/de/search/controller/search/base/BaseSearchController.java
View file @
ae92a191
...
@@ -79,7 +79,9 @@ public abstract class BaseSearchController extends BaseController {
...
@@ -79,7 +79,9 @@ public abstract class BaseSearchController extends BaseController {
strSourceId
.
append
(
","
);
strSourceId
.
append
(
","
);
}
}
if
(
collectionIdMap
.
containsKey
(
sourceIds
.
get
(
i
)))
{
if
(
collectionIdMap
.
containsValue
(
sourceIds
.
get
(
i
)))
{
strSourceId
.
append
(
"\""
).
append
(
sourceIds
.
get
(
i
)).
append
(
"\""
);
}
else
if
(
collectionIdMap
.
containsKey
(
sourceIds
.
get
(
i
)))
{
strSourceId
.
append
(
"\""
).
append
(
collectionIdMap
.
get
(
sourceIds
.
get
(
i
))).
append
(
"\""
);
strSourceId
.
append
(
"\""
).
append
(
collectionIdMap
.
get
(
sourceIds
.
get
(
i
))).
append
(
"\""
);
}
else
{
}
else
{
strSourceId
.
append
(
"\""
).
append
(
"cid:"
+
sourceIds
.
get
(
i
)).
append
(
"\""
);
strSourceId
.
append
(
"\""
).
append
(
"cid:"
+
sourceIds
.
get
(
i
)).
append
(
"\""
);
...
...
search-ui/src/main/java/eu/dariah/de/search/config/ProcessingConfig.java
View file @
ae92a191
...
@@ -29,6 +29,7 @@ import de.unibamberg.minf.gtf.extensions.file.dispatcher.FileCommandsDispatcher;
...
@@ -29,6 +29,7 @@ import de.unibamberg.minf.gtf.extensions.file.dispatcher.FileCommandsDispatcher;
import
de.unibamberg.minf.gtf.extensions.geo.commands.GeoCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.geo.commands.GeoCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.geo.commands.SimpleGeoCommands
;
import
de.unibamberg.minf.gtf.extensions.geo.commands.SimpleGeoCommands
;
import
de.unibamberg.minf.gtf.extensions.person.commands.PersonCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.person.commands.PersonCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.tika.commands.PdfCommands
;
import
de.unibamberg.minf.gtf.extensions.vocabulary.commands.SimpleVocabularyCommands
;
import
de.unibamberg.minf.gtf.extensions.vocabulary.commands.SimpleVocabularyCommands
;
import
de.unibamberg.minf.gtf.extensions.vocabulary.commands.VocabularyCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.vocabulary.commands.VocabularyCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.wiki.commands.WikiCommandsDispatcher
;
import
de.unibamberg.minf.gtf.extensions.wiki.commands.WikiCommandsDispatcher
;
...
@@ -111,7 +112,9 @@ public class ProcessingConfig extends ProcessingConfigProperties {
...
@@ -111,7 +112,9 @@ public class ProcessingConfig extends ProcessingConfigProperties {
OnlineFileCommands
onlineFileCommands
=
new
OnlineFileCommands
();
OnlineFileCommands
onlineFileCommands
=
new
OnlineFileCommands
();
onlineFileCommands
.
setBaseDownloadDirectory
(
mainConfig
.
getPaths
().
getDownloads
());
onlineFileCommands
.
setBaseDownloadDirectory
(
mainConfig
.
getPaths
().
getDownloads
());
onlineFileCommands
.
setDisabled
(
this
.
getFile
().
isDownloadsDisabled
());
onlineFileCommands
.
setDisabled
(
this
.
getFile
().
isDownloadsDisabled
());
fileCommandsDispatcher
.
setCommands
(
onlineFileCommands
);
fileCommandsDispatcher
.
setCommands
(
onlineFileCommands
);
fileCommandsDispatcher
.
setPdfCommands
(
new
PdfCommands
());
return
fileCommandsDispatcher
;
return
fileCommandsDispatcher
;
}
}
...
...
i18n
@
19f2b3cf
Compare
cab8358d
...
19f2b3cf
Subproject commit
cab8358d7ef4525e5d79ce56a58b2ffc4e3aac8e
Subproject commit
19f2b3cfa0b844dff45eb23e4fa0ebb8e4858617
_search-commons
@
48b394b5
Compare
70bf0de9
...
48b394b5
Subproject commit
70bf0de987331734a4d17199655e4f8658a5a25c
Subproject commit
48b394b5c9577e324192bdf751a123ff486c1ee8
search-ui/src/main/webapp/WEB-INF/view/views.xml
View file @
ae92a191
...
@@ -36,12 +36,14 @@
...
@@ -36,12 +36,14 @@
<put-attribute
name=
"content"
value=
"/WEB-INF/view/jsp/_search-commons/item/view.jsp"
/>
<put-attribute
name=
"content"
value=
"/WEB-INF/view/jsp/_search-commons/item/view.jsp"
/>
<put-attribute
name=
"smallLogo"
cascade=
"true"
value=
"true"
/>
<put-attribute
name=
"smallLogo"
cascade=
"true"
value=
"true"
/>
<put-list-attribute
name=
"genericStyles"
inherit=
"true"
>
<put-list-attribute
name=
"genericStyles"
inherit=
"true"
>
<add-attribute
type=
"string"
value=
"videojs/video-js.min.css"
/>
<add-attribute
type=
"string"
value=
"venobox/venobox.css"
/>
<add-attribute
type=
"string"
value=
"venobox/venobox.css"
/>
</put-list-attribute>
</put-list-attribute>
<put-list-attribute
name=
"genericScripts"
inherit=
"true"
>
<put-list-attribute
name=
"genericScripts"
inherit=
"true"
>
<add-attribute
type=
"string"
value=
"_lib/venobox/venobox.js"
/>
<add-attribute
type=
"string"
value=
"_lib/venobox/venobox.js"
/>
<add-attribute
type=
"string"
value=
"_lib/blob/blob.js"
/>
<add-attribute
type=
"string"
value=
"_lib/blob/blob.js"
/>
<add-attribute
type=
"string"
value=
"_lib/fileSaver/fileSaver.js"
/>
<add-attribute
type=
"string"
value=
"_lib/fileSaver/fileSaver.js"
/>
<add-attribute
type=
"string"
value=
"_lib/videojs/video.min.js"
/>
<add-attribute
type=
"string"
value=
"item/item.js"
/>
<add-attribute
type=
"string"
value=
"item/item.js"
/>
</put-list-attribute>
</put-list-attribute>
</definition>
</definition>
...
...
resources
@
a86cb5d2
Compare
a761a623
...
a86cb5d2
Subproject commit a
761a6234188333500aecf32bb0dabe946e2705c
Subproject commit a
86cb5d2f3e86747d08a27cf8a83bdb452e80dd2
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment