fix edit sort
This commit is contained in:
parent
abed0f463b
commit
b6aee5e0f1
2 changed files with 16 additions and 3 deletions
|
@ -829,7 +829,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
displayed at the top of the screen. This title can be customized by adding
|
displayed at the top of the screen. This title can be customized by adding
|
||||||
"/static/js/getItemTitle.SITENAME.js".
|
"/static/js/getItemTitle.SITENAME.js".
|
||||||
*/
|
*/
|
||||||
"itemTitleKeys": ["title", "director", "year"],
|
"itemTitleKeys": ["title", "director", "date"],
|
||||||
/*
|
/*
|
||||||
"itemViews" is an ordered list of available item views. Implemented views
|
"itemViews" is an ordered list of available item views. Implemented views
|
||||||
are "info", "documents", "player", "editor", "timeline", "clips", "map",
|
are "info", "documents", "player", "editor", "timeline", "clips", "map",
|
||||||
|
@ -1128,7 +1128,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"editSelection": [],
|
"editSelection": [],
|
||||||
"editSort": [
|
"editSort": [
|
||||||
{"key": "index", "operator": "+"},
|
{"key": "index", "operator": "+"},
|
||||||
{"key": "year", "operator": "+"},
|
{"key": "date", "operator": "+"},
|
||||||
{"key": "director", "operator": "+"},
|
{"key": "director", "operator": "+"},
|
||||||
{"key": "title", "operator": "+"},
|
{"key": "title", "operator": "+"},
|
||||||
{"key": "position", "operator": "+"},
|
{"key": "position", "operator": "+"},
|
||||||
|
@ -1156,7 +1156,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"itemFind": "",
|
"itemFind": "",
|
||||||
"itemSort": [{"key": "position", "operator": "+"}],
|
"itemSort": [{"key": "position", "operator": "+"}],
|
||||||
"itemView": "info",
|
"itemView": "info",
|
||||||
"listColumns": ["title", "director", "year", "language", "duration"],
|
"listColumns": ["title", "director", "date", "language", "duration"],
|
||||||
"listColumnWidth": {},
|
"listColumnWidth": {},
|
||||||
"listSelection": [],
|
"listSelection": [],
|
||||||
"listSort": [{"key": "title", "operator": "+"}],
|
"listSort": [{"key": "title", "operator": "+"}],
|
||||||
|
|
13
static/js/getItemTitle.collectivecinema.js
Normal file
13
static/js/getItemTitle.collectivecinema.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
pandora.getItemTitle = function(itemData, includeDate) {
|
||||||
|
return (itemData.title || Ox._('Untitled')) + (
|
||||||
|
Ox.len(itemData.director) || (includeDate && itemData.date)
|
||||||
|
? ' (' + (
|
||||||
|
Ox.len(itemData.director)
|
||||||
|
? itemData.director
|
||||||
|
: []
|
||||||
|
).join(', ') + ')'
|
||||||
|
: ''
|
||||||
|
) + (includeDate && itemData.date ? ' ' + itemData.date : '')
|
||||||
|
};
|
Loading…
Reference in a new issue