VTUL / vtechworks

DSpace at Virginia Tech
http://vtechworks.lib.vt.edu
Other
6 stars 8 forks source link

Extend advanced search filters and correct committee chair facet label #758

Open alawvt opened 2 years ago

alawvt commented 2 years ago

Modify dspace/config/spring/api/discovery.xml

Add

current default list

<property name="searchFilters">
            <list>
                <ref bean="searchFilterTitle" />
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterIssued" />
                <ref bean="searchFilterType" />          
                <ref bean="searchFilterAbstract" />
                <ref bean="searchFilterSeries" />
                <ref bean="searchFilterIdentifier" />
                <ref bean="searchFilterSponsor" />
                <ref bean="searchFilterLanguage" />
                <ref bean="searchFilterTrnumber" />
                <ref bean="searchFilterDepartment" />
                <ref bean="searchFilterAdvisor" />
                <ref bean="searchFilterCommitteemember" />
                <ref bean="searchFilterEtdlevel" />
        <ref bean="searchFilterContentInOriginalBundle"/>
                <ref bean="searchFilterFileNameInOriginalBundle" />
                <ref bean="searchFilterFileDescriptionInOriginalBundle" />
            </list>
        </property>

final default list

<property name="searchFilters">
            <list>
                <ref bean="searchFilterTitle" />
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterIssued" />
                <ref bean="searchFilterType" />          
                <ref bean="searchFilterAbstract" />
                <ref bean="searchFilterCallnumber" />
                <ref bean="searchFilterIdentifier" />
                <ref bean="searchFilterJournalTitle" />
                <ref bean="searchFilterLanguage" />
                <ref bean="searchFilterPublisher" />
                <ref bean="searchFilterRights" />
                <ref bean="searchFilterSponsor" />
                <ref bean="searchFilterSeries" />
                <ref bean="searchFilterVersion" />
                <ref bean="searchFilterTrnumber" />
                <ref bean="searchFilterDepartment" />
                <ref bean="searchFilterAdvisor" />
                <ref bean="searchFilterCommitteemember" />
                <ref bean="searchFilterEtdlevel" />
        <ref bean="searchFilterContentInOriginalBundle"/>
                <ref bean="searchFilterFileNameInOriginalBundle" />
                <ref bean="searchFilterFileDescriptionInOriginalBundle" />
            </list>
        </property>

You might reference PR #50, which customized search filters and facets for several collections.

To test, the advanced search filters and facets should match for:

Also change facet label from Advisor to Committee Chair

<bean id="searchFilterAdvisor" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
        <property name="indexFieldName" value="advisor"/>

should be

<bean id="searchFilterAdvisor" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
        <property name="indexFieldName" value="committee chair"/>
alawvt commented 2 years ago

@pyc1, if there is anything you would like added to the Advanced Search or other Facets, please let me know.

pyc1 commented 2 years ago

Rights should be useful for sure. Maybe dc.description.version so we can document accepted manuscripts and preprints.

alawvt commented 2 years ago

Thanks, @pyc1. I added version to the list above and implement them now.

alawvt commented 2 years ago

Shown below are the new default advanced search filters, which seem to work as expected.

AdvancedSearchFilters_default_2021-08-11
alawvt commented 2 years ago

Resolved with PR #760

alawvt commented 2 years ago

Did not change Advisor facet label.

alawvt commented 2 years ago
diff --git a/dspace/config/spring/api/discovery.xml b/dspace/config/spring/api/discovery.xml
index 64456be33..e604e3e18 100644
--- a/dspace/config/spring/api/discovery.xml
+++ b/dspace/config/spring/api/discovery.xml
@@ -51,9 +51,11 @@
                <entry key="10919/5534" value-ref="etdConfiguration"/>
                <entry key="10919/11041" value-ref="etdConfiguration"/>
                <entry key="10919/9291" value-ref="etdConfiguration"/>
+               <entry key="10919/83923" value-ref="etdConfiguration"/>
                <entry key="10919/51287" value-ref="etdConfiguration"/>
                <entry key="10919/18725" value-ref="etdConfiguration"/>
                <entry key="10919/18726" value-ref="etdConfiguration"/>
+               <entry key="10919/86632" value-ref="etdConfiguration"/>
                <entry key="10919/72294" value-ref="patentConfiguration"/>
                <entry key="10919/72295" value-ref="patentConfiguration"/>
             </map>
alawvt commented 2 years ago

Please add sort by Accession Date ascending and descending. This will be especially useful for checking recent Elements submissions.