Skip to content

Commit

Permalink
Merge branch 'dev' into combined-no-results-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Dec 5, 2023
2 parents 637897d + 62b3cd2 commit 1b1034a
Show file tree
Hide file tree
Showing 91 changed files with 1,468 additions and 1,644 deletions.
21 changes: 11 additions & 10 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<property name="vufinddbpass" value="vufindtestpass" />
<property name="dbtype" value="mysql" /><!-- use pgsql for PostgreSQL -->
<property name="mysqlhost" value="localhost" />
<property name="mysqlport" value="3306" />
<property name="mysqlrootuser" value="root" />
<property name="mysqlrootpass" value="password" />
<property name="pgsqlhost" value="localhost" />
Expand Down Expand Up @@ -498,7 +499,7 @@
<property name="db_connection_string" value="pgsql://${vufinddbuser}:${vufinddbpass}@${pgsqlhost}/${vufinddb}" />
</then>
<else>
<property name="db_connection_string" value="mysql://${vufinddbuser}:${vufinddbpass}@${mysqlhost}/${vufinddb}" />
<property name="db_connection_string" value="mysql://${vufinddbuser}:${vufinddbpass}@${mysqlhost}:${mysqlport}/${vufinddb}" />
</else>
</if>

Expand Down Expand Up @@ -562,13 +563,13 @@
</then>
<else>
<!-- build database -->
<exec command="mysqladmin -f -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} drop ${vufinddb}" />
<exec command="mysqladmin -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} create ${vufinddb}" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;DROP USER '${vufinddbuser}'@'${mysqlhost}'&quot;" />
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;CREATE USER '${vufinddbuser}'@'${mysqlhost}' IDENTIFIED BY '${vufinddbpass}'&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;GRANT SELECT,INSERT,UPDATE,DELETE ON ${vufinddb}.* TO '${vufinddbuser}'@'${mysqlhost}' WITH GRANT OPTION&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;FLUSH PRIVILEGES&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -D ${vufinddb} &lt; ${srcdir}/module/VuFind/sql/mysql.sql" checkreturn="true" />
<exec command="mysqladmin -f -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} drop ${vufinddb}" />
<exec command="mysqladmin -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} create ${vufinddb}" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;DROP USER '${vufinddbuser}'@'%'&quot;" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;CREATE USER '${vufinddbuser}'@'%' IDENTIFIED BY '${vufinddbpass}'&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;GRANT SELECT,INSERT,UPDATE,DELETE ON ${vufinddb}.* TO '${vufinddbuser}'@'%' WITH GRANT OPTION&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;FLUSH PRIVILEGES&quot;" checkreturn="true" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -D ${vufinddb} &lt; ${srcdir}/module/VuFind/sql/mysql.sql" checkreturn="true" />
</else>
</if>
</target>
Expand Down Expand Up @@ -654,8 +655,8 @@ ${git_status}
<exec command="sudo su -c &quot;psql -c \&quot;DROP USER ${vufinddbuser};\&quot;&quot; ${pgsqlrootuser}" checkreturn="true" />
</then>
<else>
<exec command="mysql -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;DROP USER '${vufinddbuser}'@'${mysqlhost}'&quot;" />
<exec command="mysqladmin -f -h ${mysqlhost} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} drop ${vufinddb}" />
<exec command="mysql -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} -e &quot;DROP USER '${vufinddbuser}'@'%'&quot;" />
<exec command="mysqladmin -f -h ${mysqlhost} -P ${mysqlport} -u ${mysqlrootuser} ${mysqlpwswitch}${mysqlrootpass} drop ${vufinddb}" />
</else>
</if>

Expand Down
3 changes: 3 additions & 0 deletions config/vufind/Blender.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ relevance = sort_relevance
year = sort_year
year asc = "sort_year asc"

[HiddenSorting]
;pattern[] = .*

; ---------- facets.ini settings ----------

; The order of display is as shown below
Expand Down
4 changes: 4 additions & 0 deletions config/vufind/Demo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ ILLRequests = true
; more holdings to display. (Default = no limit)
;itemLimit = "10"

; Probability percentage that an item displayed in the holdings tab will include
; "bound-with" information. (Default = 25% chance)
;boundWithProbability = 25

; Configuration for retrieving sample records
[Records]
; Search backend to pull records from
Expand Down
11 changes: 11 additions & 0 deletions config/vufind/EDS.ini
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ SU = Subject
; be dynamically loaded from the API.
[Sorting]

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; This section controls the behavior of the EDSRecord module.
[Record]
; Set this to true in order to enable "next" and "previous" links to navigate
Expand Down Expand Up @@ -368,6 +375,10 @@ AU = None
; Requires configuration in LibGuidesAPI.ini.
;useLibGuides = true

; Find database URLs by the LibGuides alternate names field in addition
; to the primary name. Default is true. Requires useLibGuides = true.
;useLibGuidesAlternateNames = false

; Map of database name (matching EDS API 'DbLabel' value) to website URL.
; These databases are added to any retrieved from LibGuides, and override
; the LibGuides URLs if the same name is present here.
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/EIT.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ relevance = sort_relevance
date = sort_year
date2 = "sort_year asc"

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

[Record]
; Set this to true in order to enable "next" and "previous" links to navigate
; through the current result set from within the record view.
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/Pazpar2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ max_query_time = 60
[Sorting]
relevance = sort_relevance

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; This section controls the behavior of the Pazpar2Record module. See the
; [Record] section of the main config.ini for more detailed documentation.
[Record]
7 changes: 7 additions & 0 deletions config/vufind/Primo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ scdate = sort_year
screator = sort_author
stitle = sort_title

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; This section specifies permission rules which may be used to determine the
; institution code and access level for the current user when retrieving Primo
; results. institutionCode is evaluated first, then onCampusRule, with
Expand Down
3 changes: 3 additions & 0 deletions config/vufind/Search2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ callnumber-sort = sort_callnumber
author = sort_author
title = sort_title

[HiddenSorting]
;pattern[] = .*

[DefaultSortingByType]
CallNumber = callnumber-sort
WorkKeys = year
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/Summon.ini
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ relevance = sort_relevance
PublicationDate:desc = sort_year
PublicationDate:asc = "sort_year asc"

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; This section controls spell checking -- it can be disabled if desired.
[Spelling]
enabled = true
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/WorldCat.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ Date = "sort_year asc"
Author = sort_author
Title = sort_title

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; This section controls the behavior of the WorldCatRecord module. See the
; [Record] section of the main config.ini for more detailed documentation.
[Record]
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/authority.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ Heading = "Any Heading"
relevance = sort_relevance
heading = "Heading"

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

[Facets]
source = "Authority File"
record_type = "Record Type"
Expand Down
3 changes: 3 additions & 0 deletions config/vufind/reserves.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ department_str = "Department"
instructor_str = "Instructor"
course_str = "Course"

[HiddenSorting]
;pattern[] = .*

[Facets]
department_str = "Department"
instructor_str = "Instructor"
Expand Down
7 changes: 7 additions & 0 deletions config/vufind/searches.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ title = sort_title
CallNumber = callnumber-sort
WorkKeys = year

; This section allows you to specify hidden sorting options. They can be used to create a
; whitelist of sort values using regular expressions. If you want to do this add regexes to
; the pattern[] array. All sort values that match at least one of these pattern are allowed
; in searches. But they will not be shown in the sort selection in the result list.
[HiddenSorting]
;pattern[] = .* ; E.g. uncomment this line to allow any value

; Each search type defined in searchspecs.yaml can have one or more "recommendations
; modules" associated with it in the following sections. These plug-ins will cause
; boxes of suggestions to appear beside (in [SideRecommendations]) or above (in
Expand Down
3 changes: 3 additions & 0 deletions config/vufind/website.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ AllFields = "All Fields"
relevance = sort_relevance
title = sort_title

[HiddenSorting]
;pattern[] = .*

[Facets]
category = "Category"
linktype = "Link Type"
Expand Down
4 changes: 2 additions & 2 deletions harvest/batch-import-marc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ Options:
EOF
}

while getopts ":dhmpx:z" OPT
while getopts ":dhmp:x:z" OPT
do
case $OPT in
d) BASEPATH_UNDER_HARVEST=false;;
h) usage;
h) usage;
exit 0;;
m) MOVE_DATA=false;;
p) PROPERTIES_FILE="$OPTARG"; export PROPERTIES_FILE;;
Expand Down
3 changes: 3 additions & 0 deletions languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ Bookmark = "Bookmark"
bookplate_label = "%%title%% bookplate"
Books = "Books"
Borrowing Location = "Borrowing Location"
bound_with_heading_multiple_callnumbers = "Contents of [%%callnumber%%]"
bound_with_heading_one_callnumber = "Contents"
bound_with_intro = "The following works are all found in the book indicated by the call number above."
Braille = "Braille"
Breadcrumbs = "Breadcrumbs"
Brief View = "Brief View"
Expand Down
139 changes: 0 additions & 139 deletions module/VuFind/src/VuFind/AjaxHandler/GetFacetData.php

This file was deleted.

Loading

0 comments on commit 1b1034a

Please sign in to comment.