Skip to content

Commit

Permalink
Index and display differentiae_database
Browse files Browse the repository at this point in the history
Add differentia and differentiae_database search fields

Add differentia and differentiae_database to full text search
  • Loading branch information
dchiller committed Jan 25, 2024
1 parent 2e088aa commit 7d0f314
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/public/cantusdata/views/chant_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"position",
"mode",
"differentia",
"differentiae_database",
"finalis",
"incipit",
"full_text",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<% if (differentia) { %>
<p><b>Differentia: </b> <%= differentia.replace('w', 'ω') %></p>
<% } %>
<% if (differentiae_database) { %>
<p><b>Differentiae Database: </b> <%= differentiae_database %></p>
<% } %>
<% if (finalis) { %>
<p><b>Finalis: </b> <%= finalis %></p>
<% } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ var KNOWN_FIELDS = [
{type: "mode", "name": "Mode"},
{type: "feast", "name": "Feast"},
{type: "genre", "name": "Genre"},
{type: "office", "name": "Office"}
{type: "office", "name": "Office"},
{type: "differentia", "name": "Differentia"},
{type: "differentiae_database", "name": "Differentiae Database"}
];

var INITIAL_LOAD_CUTOFF = 100;
Expand Down Expand Up @@ -53,7 +55,8 @@ export default Marionette.Object.extend({
"incipit",
"differentia",
"finalis",
"folio"
"folio",
"differentiae_database"
],

/**
Expand Down

0 comments on commit 7d0f314

Please sign in to comment.