Closed craigsapp closed 4 months ago
Add search fields to this.VARS.SEARCH_URL for other field besides composer, siglum and title:
doBrowseSearch.js: this.updateBrowseUrl(this.VARS.SEARCH_URL);
filterByComposer.js: this.VARS.SEARCH_URL.c = target;
filterBySiglum.js: this.VARS.SEARCH_URL.s = target;
filterByTitle.js: this.VARS.SEARCH_URL.t = target;
CGI parameters for search fields (from getCgiParameters.js
):
param | name |
---|---|
c |
composer |
g |
genre |
l |
lyrics |
p |
pitch |
s |
siglum |
t |
title |
y |
century |
New ones to add:
param | name |
---|---|
i |
instrument |
k |
tonic (key) |
m |
mode (e.g.: major, minor, lydian) |
Commit https://github.com/craigsapp/website-polish-scores/commit/07983ddefd69505cdb096ad27a261cc4b1743ec1 adds search to URL for all browse search fields.
Still need to implement i
, k
, and m
parsing from incoming URL.
Example covering all but lyrics:
Added parameters: | search field | parameter |
---|---|---|
composer | c=Paderewski%2C%20Ignacy%20Jan |
|
century | y=18xx |
|
siglum | s=PL-Wumfc |
|
genre | g=Etude |
|
text | t=exercise |
|
instrument | i=piano |
|
pitch | p=cde |
|
tonic (key) | k=C |
|
mode | m=maj |
Commit https://github.com/craigsapp/website-polish-scores/commit/5e38ceef928dfa0ce686e796e3157e87d6a67364 add i
(instrument), k
(tonic or key) and m
(mode) input search parameters from the URL. keyscape display options for work pages changed to ks
.
Example of new search parameters in URL:
polishscores.org/?i=flt&k=C&m=maj
(C major works containing flute)
The composer search field is copied to the URL:
https://polishscores.org/?c=Asola%2C%20Giovanni%20Matteo
But the century select menu does not do this:
The genre selection also needs copying to the URL:
Genre (and probably most other search fields are read from the URL):
https://polishscores.org/?g=Christmas
Library is copied to URL:
Instrument selection needs to copy to the URL:
Title search field copies to the URL, but not lyrics:
Also pitch searches need it:
As well as tonic:
And mode: