Commit f51032efa5f09bc26a1b66571e9292c7aaaca53c

Authored by Fernando Ribeiro
1 parent f3abf16312

Added new Type to search to discovery.xml. Must be run the index-discovery -f

dspace-api/src/main/resources/Messages.properties
... ... @@ -57,7 +57,7 @@ browse.menu.title = Title
57 57 browse.menu.dateissued = Issue Date
58 58 browse.menu.dateaccessioned = Submit Date
59 59 browse.menu.rights = Access Type
60   -browse.menu.author = Advisor
  60 +browse.menu.advisor = Advisor
61 61  
62 62 browse.sort-by.title = title
63 63 browse.sort-by.dateissued = issue date
... ... @@ -893,6 +893,8 @@ jsp.search.filter.add = Add
893 893 jsp.search.filter.applied = Current filters:
894 894 jsp.search.filter.any = Any fields
895 895 jsp.search.filter.title = Title
  896 +jsp.search.filter.type = Document type
  897 +jsp.search.filter.rights = Access type
896 898 jsp.search.filter.author = Author
897 899 jsp.search.filter.subject = Subject
898 900 jsp.search.filter.dateIssued = Date Issued
... ...
dspace-api/src/main/resources/Messages_pt_PT.properties
... ... @@ -173,6 +173,8 @@ jsp.tools.edit-item-form.note3 = Note que, se o
173 173  
174 174 #Search Filters
175 175 jsp.search.filter.any = Qualquer campo
  176 +jsp.search.filter.type = Tipo de Documento
  177 +jsp.search.filter.rights = Tipo de Acesso
176 178 jsp.tools.itemmap-main.info1 = Existem {0} itens pretencentes a esta coleção e {1} itens mapeados a partir de outras coleções.
177 179 jsp.tools.itemmap-main.info4 = Importar por correspondência com...
178 180 jsp.tools.itemmap-main.info5 = Escolha o campo pelo qual pretende encontrar uma correspondência.
... ...
dspace-jspui/src/main/resources/Messages.properties
... ... @@ -893,6 +893,8 @@ jsp.search.filter.add = Add
893 893 jsp.search.filter.applied = Current filters:
894 894 jsp.search.filter.any = Any fields
895 895 jsp.search.filter.title = Title
  896 +jsp.search.filter.type = Document type
  897 +jsp.search.filter.rights = Access type
896 898 jsp.search.filter.author = Author
897 899 jsp.search.filter.subject = Subject
898 900 jsp.search.filter.dateIssued = Date Issued
... ...
dspace-jspui/src/main/resources/Messages_pt_PT.properties
... ... @@ -173,6 +173,8 @@ jsp.tools.edit-item-form.note3 = Note que, se o
173 173  
174 174 #Search Filters
175 175 jsp.search.filter.any = Qualquer campo
  176 +jsp.search.filter.type = Tipo de Documento
  177 +jsp.search.filter.rights = Tipo de Acesso
176 178 jsp.tools.itemmap-main.info1 = Existem {0} itens pretencentes a esta coleção e {1} itens mapeados a partir de outras coleções.
177 179 jsp.tools.itemmap-main.info4 = Importar por correspondência com...
178 180 jsp.tools.itemmap-main.info5 = Escolha o campo pelo qual pretende encontrar uma correspondência.
... ...
dspace/config/spring/api/discovery.xml
... ... @@ -109,6 +109,8 @@
109 109 <ref bean="searchFilterAuthor" />
110 110 <ref bean="searchFilterSubject" />
111 111 <ref bean="searchFilterIssued" />
  112 + <ref bean="searchFilterType" />
  113 + <ref bean="searchFilterAccess" />
112 114 </list>
113 115 </property>
114 116 <!--The sort filters for the discovery search-->
... ... @@ -214,6 +216,8 @@
214 216 <ref bean="searchFilterAuthor" />
215 217 <ref bean="searchFilterSubject" />
216 218 <ref bean="searchFilterIssued" />
  219 + <ref bean="searchFilterType" />
  220 + <ref bean="searchFilterAccess" />
217 221 </list>
218 222 </property>
219 223 <!--The sort filters for the discovery search (same as defaultConfiguration above)-->
... ... @@ -405,6 +409,28 @@
405 409 <property name="sortOrder" value="VALUE"/>
406 410 </bean>
407 411  
  412 +<!-- newly added filters -->
  413 + <bean id="searchFilterType" class="org.dspace.discovery.configuration.DiscoverySearchFilter">
  414 + <property name="indexFieldName" value="type"/>
  415 + <property name="metadataFields">
  416 + <list>
  417 + <value>dc.type</value>
  418 + </list>
  419 + </property>
  420 + </bean>
  421 +
  422 + <!--Search filter configuration beans-->
  423 + <bean id="searchFilterRights" class="org.dspace.discovery.configuration.DiscoverySearchFilter">
  424 + <property name="indexFieldName" value="rights"/>
  425 + <property name="metadataFields">
  426 + <list>
  427 + <value>dc.rights</value>
  428 + </list>
  429 + </property>
  430 + </bean>
  431 +
  432 +
  433 +
408 434 <!--Sort properties-->
409 435 <bean id="sortTitle" class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
410 436 <property name="metadataField" value="dc.title"/>
... ...