Skip to content

Added back 'copyme' theme, set object thumbnails to 'iconLarge' #150

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
2 changes: 2 additions & 0 deletions themes/copyme/assets/pawtucket/graphics/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all graphics will fall back to those in the "default" theme.
#To override graphics, copy it from the default theme into this folder in your custom theme.
7 changes: 7 additions & 0 deletions themes/copyme/conf/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#To begin configuring your theme, you will to copy some configuration files from the default theme, including, but not
#limited to:

#detail.conf
#search.conf
#browse.conf

7 changes: 7 additions & 0 deletions themes/copyme/templates/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#To begin configuring your theme, you will to copy some configuration files from the default theme, including, but not
#limited to:

#detail.conf
#search.conf
#browse.conf

2 changes: 2 additions & 0 deletions themes/copyme/views/About/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Browse/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Contact/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Contribute/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Details/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Form/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Front/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Gallery/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Lightbox/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Listing/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/LoginReg/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/Search/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
2 changes: 2 additions & 0 deletions themes/copyme/views/pageFormat/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#This directory is intentionally left blank, as all views will fall back to those in the "default" theme.
#To override a view, copy it from the default theme into the appropriate folder in your custom theme.
70 changes: 70 additions & 0 deletions themes/copyme/views/system/configuration_error_html.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php
/** ---------------------------------------------------------------------
* themes/default/views/system/configuration_error_html.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2011-2014 Whirl-i-Gig
*
* For more information visit http://www.CollectiveAccess.org
*
* This program is free software; you may redistribute it and/or modify it under
* the terms of the provided license as published by Whirl-i-Gig
*
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* @package CollectiveAccess
* @subpackage Configuration
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License version 3
*
* ----------------------------------------------------------------------
*/
$va_tmp = explode("/", str_replace("\\", "/", $_SERVER['SCRIPT_NAME']));
array_pop($va_tmp);
$vs_path = join("/", $va_tmp);

if (!is_array($opa_error_messages)) {
$opa_error_messages = self::$opa_error_messages;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CollectiveAccess configuration error display</title>
<link href="<?php print $vs_path; ?>/themes/default/assets/pawtucket/css/error.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id='box'>
<div id="logo"><img src="<?php print $vs_path ?>/themes/default/assets/pawtucket/graphics/logos/logo.svg"/></div><!-- end logo -->
<div id="content">
<?php print "<div class='error'>An error in your system configuration has been detected</div>
General installation instructions can be found
<a href='http://wiki.collectiveaccess.org/index.php?title=Installation_(Pawtucket)' target='_blank'>here</a>.
For more specific hints on the existing issues please have a look at the messages below."; ?>
<br/><br/>
<?php
foreach ($opa_error_messages as $vs_message):
?>
<div class="permissionError">
<img src='<?php print $vs_path; ?>/themes/default/assets/pawtucket/graphics/glyphicons_078_warning_sign.png' class="permissionErrorIcon"/>
<?php print $vs_message; ?>
<div style='clear:both; height:1px;'><!-- empty --></div>
</div>
<br/>
<?php
endforeach;
?>

</div><!-- end content --></div><!-- end box -->
</body>
</html>
52 changes: 52 additions & 0 deletions themes/copyme/views/system/configuration_error_install_html.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/** ---------------------------------------------------------------------
* themes/default/views/system/configuration_error_intstall_html.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2011 Whirl-i-Gig
*
* For more information visit http://www.CollectiveAccess.org
*
* This program is free software; you may redistribute it and/or modify it under
* the terms of the provided license as published by Whirl-i-Gig
*
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* @package CollectiveAccess
* @subpackage Configuration
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License version 3
*
* ----------------------------------------------------------------------
*/
$va_tmp = explode("/", str_replace("\\", "/", $_SERVER['SCRIPT_NAME']));
array_pop($va_tmp);
$vs_path = join("/", $va_tmp);
?>
<?php print _t("<div class='error'>An error in your system configuration has been detected</div>
General installation instructions can be found
<a href='http://wiki.collectiveaccess.org/index.php?title=Installation_(Pawtucket)' target='_blank'>here</a>.
For more specific hints on the existing issues please have a look at the messages below."); ?>
<br/><br/>
<?php
foreach (self::$opa_error_messages as $vs_message):
?>
<div class="permissionError">
<img src='<?php print $vs_path; ?>/graphics/vorsicht.gif' class="permissionErrorIcon"/>
<?php print $vs_message; ?>
<div style='clear:both; height:1px;'><!-- empty --></div>
</div>
<br/>
<?php
endforeach;
?>
15 changes: 15 additions & 0 deletions themes/copyme/views/system/error_html.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class='alert alert-danger text-center'>
<p><b>An error occurred when trying to access the page <code><?php print $this->request->config->get("site_host").$this->getVar('referrer'); ?></code>:</b></p>
<hr/>
<p>
<ul>
<?php
foreach($this->getVar("error_messages") as $vs_error) {
print "<li>{$vs_error}</li>\n";
}
?>
</ul>
</p>
<hr/>
<p>Please check you entered the correct URL and contact the system administrator if you continue to experience issues.</p>
</div>
73 changes: 73 additions & 0 deletions themes/copyme/views/system/fatal_error_html.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php
/* ----------------------------------------------------------------------
* views/system/fatal_error_html.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2015 Whirl-i-Gig
*
* For more information visit http://www.CollectiveAccess.org
*
* This program is free software; you may redistribute it and/or modify it under
* the terms of the provided license as published by Whirl-i-Gig
*
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/

$va_tmp = explode("/", str_replace("\\", "/", $_SERVER['SCRIPT_NAME']));
array_pop($va_tmp);
$vs_path = join("/", $va_tmp);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CollectiveAccess error</title>
<link href="<?php print $vs_path; ?>/themes/default/assets/pawtucket/css/error.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id='errorDetails'>
<div id="logo"><img src="<?php print $vs_path ?>/themes/default/assets/pawtucket/graphics/ca_nav_logo300.png"/></div><!-- end logo -->
<div id="content">
<div class='error'>Something went wrong</div>

<div id="errorLocation" class="errorPanel">
<img src='<?php print $vs_path; ?>/themes/default/assets/pawtucket/graphics/glyphicons_078_warning_sign.png' class="permissionErrorIcon"/>
<div class="errorDescription"><span class="errorMessage"><?php print $ps_errstr; ?></span> in <?php print $ps_errfile; ?> line <?php print $pn_errline; ?>:</div>
</div>
<div id="stacktace">
<ol class="tracelist">
<?php
foreach($pa_errcontext as $vn_i => $va_trace) {
print "<li>".(($vn_i == 0) ? "In " : "At ").$va_trace['class'].$va_trace['type'].$va_trace['function']."(".join(', ', $pa_errcontext_args[$vn_i]).") in <a class='tracelistEntry' title='".$va_trace['file']."' ondblclick='var f=this.innerHTML;this.innerHTML=this.title;this.title=f;'>".pathinfo($va_trace['file'], PATHINFO_FILENAME)."</a> line ".$va_trace['line']."</li>\n";
}
?>
</ol>

<div id="requestParameters" class="errorPanel">
<img src='<?php print $vs_path; ?>/themes/default/assets/pawtucket/graphics/glyphicons_195_circle_info.png' class="permissionErrorIcon"/>
<div class="errorDescription">
<span class="errorMessage"></span>Request parameters:</span>
<ol class="paramList">
<?php
foreach($pa_request_params as $vs_k => $vs_v) {
print "<li>{$vs_k} =&gt; {$vs_v}</li>";
}
?>
</ol>
</div>
</div>
</div><!-- end content -->
</div><!-- end box -->
</body>
</html>
2 changes: 1 addition & 1 deletion themes/default/views/Details/ca_objects_default_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<div id="detailAnnotations"></div>

<?= caObjectRepresentationThumbnails($this->request, $this->getVar("representation_id"), $t_object, array("returnAs" => "bsCols", "linkTo" => "basic", "bsColClasses" => "smallpadding col-sm-3 col-md-3 col-xs-4", "primaryOnly" => $this->getVar('representationViewerPrimaryOnly') ? 1 : 0)); ?>
<?= caObjectRepresentationThumbnails($this->request, $this->getVar("representation_id"), $t_object, array("returnAs" => "bsCols", "linkTo" => "basic", "bsColClasses" => "smallpadding col-sm-3 col-md-3 col-xs-3", "primaryOnly" => $this->getVar('representationViewerPrimaryOnly') ? 1 : 0,"version" => "iconlarge")); ?>

<?php
# Comment and Share Tools
Expand Down