-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make all properties available in Tabulator records list, show record type with icon #233
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fc6b974
Don't forward the postgres service port to the host
jgonggrijp e1bbf54
Outfactor Tabulator column definitions logic to utils module (#229)
jgonggrijp dedb056
Add our own backbone-collection-transformers as a dependency
jgonggrijp fa76d3f
Define our own ready-to-use MappedCollection class with clone feature
jgonggrijp 5121bc4
Always include all possible fields in the column choice menu (#229)
jgonggrijp b27fb1d
Change the title column filter into a regular <input>
jgonggrijp b16fe27
Add a template for displaying a record type as icon (#228)
jgonggrijp 477bab4
Fix typo in edpop-record-ontology.json (#228)
jgonggrijp 59cce7a
Include record type in tabular data (#228)
jgonggrijp 098d173
Show the record type in tabulator with an icon (#228)
jgonggrijp 083842f
Add documentation for tabulator utils additions (#228 #229)
jgonggrijp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{#isBibliographical}} | ||
<span class="glyphicon glyphicon-book" aria-hidden=true></span> | ||
<span class="sr-only">Bibliographical</span> | ||
{{/isBibliographical}} | ||
{{#isBiographical}} | ||
<span class="glyphicon glyphicon-user" aria-hidden=true></span> | ||
<span class="sr-only">Biographical</span> | ||
{{/isBiographical}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Collection } from 'backbone'; | ||
import { deriveMapped } from '@uu-cdh/backbone-collection-transformers'; | ||
|
||
/** | ||
* @class | ||
* @extends Collection | ||
*/ | ||
export var MappedCollection = deriveMapped(); | ||
|
||
function clone(model) { | ||
return model.clone(); | ||
} | ||
|
||
// MappedCollection is not clonable by default. In our case, it is useful to | ||
// have a deep copy feature available. | ||
/** | ||
* Create a deep copy of the models in the collection. | ||
* @returns {Collection} A plain (i.e., non-mapped, non-proxy) collection that | ||
* has no ties to the original mapped or collection or its underlying | ||
* collection. | ||
*/ | ||
MappedCollection.prototype.clone = function() { | ||
var clonedModels = this.map(clone); | ||
return new Collection(clonedModels); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I had no idea that this was possible!