Commit Graph

8 Commits

Author SHA1 Message Date
Sebastian Meyer 2c97b9c2c6
Use correct bibliographic terms 2021-03-10 10:31:00 +01:00
Alexander Bigga 64005ad42a Change language label 2021-03-07 11:51:54 +01:00
Alexander Bigga d312b1d8ee Fix search in documents for hierarchical documents like newspaper.
== Current Situation

The search plugin has the option to restrict the search in current
document and/or in current collection. This can be used to place the
plugin on a separate page to search only in one collection. Or you place
the plugin on the workview page and trigger a search in document.

Of course, the SearchInDocument plugin is better suited for the workview as the results are reported by via AJAX and the visitor will stay on the current page.

On the opposite, using the search plugin makes it possible to search
in all issues of a newspaper year or even a full newspaper title. At
least, this should be possible. The current implementation does not work
as expected.

=== Example

==== Search plugin on workview (issue)

For example, you can place the plugin on level of a newspaper issue. If
you launch a search, the current implementation will search not only in
current issue but in all issues of the current year. This is a
frequently demanded feature but works only by hasard.

newspaper title (anchor)
   |
   |-> year
        |
        |-> Issue

The current search plugin does two mistakes:

1. Instead of the current document uid, the parent uid is set.
2. The search is done in given uid and all children.

==== Search plugin on workview (year/anchor)

If you place the search plugin on the workview with calendar view, the
search fails.

Same procedure as above. The search will be done in the anchor and it's
children (years). All these files have no fulltexts. So the result is
always empty.

== Proposed Implementation

The proposed implementation does change the searchIn document limitation
of the search plugin to search in current document _and_ all it's children.

This is done on using Solr join feature. To make this possible, the
partof field must use the docValues feature as "uid" does it already.
2020-11-20 16:16:48 +01:00
Sebastian Meyer 301df55c5d
Consistent naming 2020-05-13 16:20:32 +02:00
Erik Konrad 24a9d6deb1 Content Element Wizard Support for Kitodo Presentation 2020-05-13 13:41:01 +02:00
Christopher Timm 8a1d520089 add translation and perform single mysql select instead of one select for each collection 2019-06-25 20:06:15 +02:00
Sebastian Meyer da5d8ff337 Switch tabs for whitespaces 2019-03-16 12:03:25 +01:00
Sebastian Meyer 919ee33f82 Move plugins to Classes/Plugins and add namespaces 2019-03-14 15:42:34 +01:00