|
@@ -11,6 +11,10 @@ function unescapeName(name) { |
|
|
(_, $1) => ($1 === '\\\\' ? '\\' : String.fromCharCode(parseInt($1.substr(1), 8))));
|
|
|
(_, $1) => ($1 === '\\\\' ? '\\' : String.fromCharCode(parseInt($1.substr(1), 8))));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function encodeURIComponentIncludingDots(s) {
|
|
|
|
|
|
return encodeURIComponent(s).replace('.', '%2E');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
class WBCollectionContent extends Component {
|
|
|
class WBCollectionContent extends Component {
|
|
|
constructor(...args) {
|
|
|
constructor(...args) {
|
|
|
super(...args);
|
|
|
super(...args);
|
|
@@ -26,7 +30,7 @@ class WBCollectionContent extends Component { |
|
|
getUrl(params) {
|
|
|
getUrl(params) {
|
|
|
let res = '/collection-browse/' +
|
|
|
let res = '/collection-browse/' +
|
|
|
('uuid' in params ? params.uuid : this.props.uuid) + '/' +
|
|
|
('uuid' in params ? params.uuid : this.props.uuid) + '/' +
|
|
|
encodeURIComponent('collectionPath' in params ? params.collectionPath : this.props.collectionPath) + '/' +
|
|
|
|
|
|
|
|
|
encodeURIComponentIncludingDots('collectionPath' in params ? params.collectionPath : this.props.collectionPath) + '/' +
|
|
|
('page' in params ? params.page : this.props.page);
|
|
|
('page' in params ? params.page : this.props.page);
|
|
|
return res;
|
|
|
return res;
|
|
|
}
|
|
|
}
|
|
|