Date: Thu, 28 Mar 2024 17:26:15 -0400 (EDT) Message-ID: <468483236.28974.1711661175388@lyrasis1-roc-mp1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_28973_643066753.1711661175388" ------=_Part_28973_643066753.1711661175388 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The location of the files you'll want to edit depend on which version of= DSpace you are using, as the location of the primary JSP folder has change= d in DSpace over the years.
[dspace]/config/dspace.cfg
[dspace-source]/dspace-api/src/main/resources/Mess=
ages.properties
[dspace-source]/dspace-jspui/src/main/webapp=
/search/advanced.jsp
[dspace]/config/dspace.cfg
[dspace-source]/dspace-api/src/main/resources/Mess=
ages.properties
[dspace-source]/dspace-jspui/dspace-jspui-w=
ebapp/src/main/webapp/
search/advanced.jsp
[dspace]/config/dspace.cfg
[dspace-source]/config/language-packs/Messages.pro=
perties
[dspace-source]/jsp/search/advanced.jsp
Beneath it you will see several lines like this:
search.= index.1 =3D author:dc.contributor.* search.index.2 =3D author:dc.creator.* search.index.3 =3D title:dc.title.* search.index.4 =3D keyword:dc.subject.*=20 search.index.5 =3D abstract:dc.description.abstract
dc
) field to one of the existing "nam=
ed indices", use the models above as a guide. If you wish to specify a diff=
erent metadata schema, replace dc
with the other metadata schem=
a's name.=20
dc
) contributor
and c=
reator
fields. Whereas, a search on "abstract" only searches the If you want to add an entirely new search field, you will also have =
to modify Messages.properties (see Change page text (JSP) ) to add a user-friendly label for =
it, and the advanced-search JSP (advanced.jsp) to add an appropriate =
<option>
element, as below:
<opt= ion value=3D"author" <%=3D field1.equals("author") ? "selected=3D\"selec= ted\"" : "" %>><fmt:message key=3D"jsp.search.advanced.type.author= "/></option>
<option>
element shoul=
d correspond to the name of one of your search indices (e.g. author, title,=
keyword, etc.)sea=
rch.index.#
fields in dspace.cfg), or the full text of the document =
(if it is full-text indexable). These search boxes perform what most refer =
to as a keyword or keyterm search.search.index.4 =3D keyword:dc.subject=
.
This (rather inappropriately named) index is actually use=
d during subject specific searches (hence the subject.
). It does not have any control over a normal keyword search that is run =
from the basic search box in DSpace.