Skip to content
Browse files

Added default object image. Fixed some overlapping text issues. Incre…

…ased the size of the content panel.
  • Loading branch information...
1 parent b81c8b5 commit 7ab319c6481cb3f02983a6107c43d4acb8b4e79f @nigelgbanks nigelgbanks committed May 16, 2011
View
7 Collection.inc
@@ -353,7 +353,12 @@ class Collection {
$result['description'] = $dc_description != '' ? $dc_description : $description;
}
$result['url'] = "$base_url/fedora/repository/$pid";
- $result['img_url'] = "$base_url/fedora/repository/$pid/TN";
+ if (isset($item->datastreams['TN'])) {
+ $result['img_url'] = "$base_url/fedora/repository/$pid/TN";
+ }
+ else {
+ $result['img_url'] = "$base_url/" . drupal_get_path('module', 'adr_collection_viewer') . '/images/object.png';
+ }
if ($parent_model == 'islandora:collectionCModel') {
$result['img_url'] = "$base_url/" . drupal_get_path('module', 'adr_collection_viewer') . '/images/collection.png';
}
View
BIN images/object.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 js/ADRCollection.xds
@@ -321,7 +321,7 @@
"snapToGrid": 10,
"userConfig": {
"title": "Content",
- "height": 900,
+ "height": 1000,
"frame": "-ext-undefined-",
"defaults": "-ext-undefined-",
"hideBorders": "-ext-undefined-",
@@ -559,7 +559,7 @@
"userConfig": {
"itemSelector": "div",
"store": "CollectionMembers",
- "tpl": "<tpl for=\".\">\n <div class=\"adr-content-item\">\n <table>\n <tr>\n <th class=\"adr-content-item-icon-block\" rowspan=\"2\">\n <a href='{url}'>\n <img src=\"{img_url}\" class=\"adr-content-item-icon\"></img>\n </a>\n </th>\n <th>\n <a href='{url}' title=\"{title}\">\n <h2 class=\"adr-content-item-title\">{[fm.ellipsis(values.title, 71, false)]} </h2>\n </a>\n </th>\n </tr>\n <tr>\n <td class=\"adr-content-item-description\">{[fm.ellipsis(values.description, 350, true)]} <a href='{url}#adr-collection-title' class=\"adr-content-item-link\"> [Click for more]</a></td>\n </tr>\n </table>\n </div>\n</tpl>",
+ "tpl": "<tpl for=\".\">\n <div class=\"adr-content-item\">\n <table>\n <tr>\n <th class=\"adr-content-item-icon-block\" rowspan=\"2\">\n <a href='{url}'>\n <img src=\"{img_url}\" class=\"adr-content-item-icon\"></img>\n </a>\n </th>\n <th>\n <a href='{url}' title=\"{title}\">\n <h2 class=\"adr-content-item-title\">{[fm.ellipsis(values.title, 61, false)]} </h2>\n </a>\n </th>\n </tr>\n <tr>\n <td class=\"adr-content-item-description\">{[fm.ellipsis(values.description, 350, true)]} <a href='{url}#adr-collection-title' class=\"adr-content-item-link\"> [Click for more]</a></td>\n </tr>\n </table>\n </div>\n</tpl>",
"loadingText": "Loading Please Wait...",
"emptyText": "<div>There are no sub-collections or objects within this collection.</div>",
"deferEmptyText": "-ext-undefined-"
View
2 js/ADRCollectionViewer.ui.js
@@ -1,6 +1,6 @@
/*
* File: ADRCollectionViewer.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/AddDatastream.ui.js
@@ -1,6 +1,6 @@
/*
* File: AddDatastream.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/CollectionMembers.js
@@ -1,6 +1,6 @@
/*
* File: CollectionMembers.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/CollectionProperties.js
@@ -1,6 +1,6 @@
/*
* File: CollectionProperties.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
6 js/Content.ui.js
@@ -1,6 +1,6 @@
/*
* File: Content.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
@@ -12,7 +12,7 @@
ContentUi = Ext.extend(Ext.Panel, {
title: 'Content',
- height: 900,
+ height: 1000,
layout: 'fit',
initComponent: function() {
this.tbar = {
@@ -136,7 +136,7 @@ ContentUi = Ext.extend(Ext.Panel, {
' </th>',
' <th>',
' <a href=\'{url}\' title="{title}">',
- ' <h2 class="adr-content-item-title">{[fm.ellipsis(values.title, 71, false)]} </h2>',
+ ' <h2 class="adr-content-item-title">{[fm.ellipsis(values.title, 61, false)]} </h2>',
' </a>',
' </th>',
' </tr>',
View
2 js/ControlGroups.js
@@ -1,6 +1,6 @@
/*
* File: ControlGroups.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/Datastreams.js
@@ -1,6 +1,6 @@
/*
* File: Datastreams.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/EditObjectWindow.ui.js
@@ -1,6 +1,6 @@
/*
* File: EditObjectWindow.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/FileUploadField.ui.js
@@ -1,6 +1,6 @@
/*
* File: FileUploadField.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/MIMETypes.js
@@ -1,6 +1,6 @@
/*
* File: MIMETypes.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/Manage.ui.js
@@ -1,6 +1,6 @@
/*
* File: Manage.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/Overview.ui.js
@@ -1,6 +1,6 @@
/*
* File: Overview.ui.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/State.js
@@ -1,6 +1,6 @@
/*
* File: State.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/
View
2 js/xds_index.js
@@ -1,6 +1,6 @@
/*
* File: xds_index.js
- * Date: Fri May 13 2011 17:45:36 GMT-0300 (ADT)
+ * Date: Mon May 16 2011 12:09:56 GMT-0300 (ADT)
*
* This file was generated by Ext Designer version 1.1.2.
* http://www.sencha.com/products/designer/

0 comments on commit 7ab319c

Please sign in to comment.
Something went wrong with that request. Please try again.