Comments (6)
I have wondered about this for files that naturally come in pairs, such as fastq forward + reverse reads, or vcf + index file.
With minimal changes we could add a "File Name" column to the download field.
For example
from tripal_file.
I really want this, but others may not, so I implemented this additional column as an optional setting, default is off.
That required building the whole administration page interface, so while I was in there I threw in a help page too!
See pull request #20
from tripal_file.
My Nov. 4 commit to pull request #20 resolves this by adding a way to enter a display_name value, which is the name displayed to the user. Comments welcomed!
from tripal_file.
To-do notes for a possible problem to fix. Under php 8 this becomes worse, but the new filename
column in the chado.fileloc
table seems to be missing its schema
Error observed is Warning: array_key_exists() expects parameter 2 to be array, null given in chado_insert_record() (line 609 of /var/www/2020-02-18/drupal-7.69/sites/all/modules/tripal/tripal_chado/api/tripal_chado.query.api.inc).
To test:
$x = chado_get_schema('fileloc');
var_dump($x['fields']);
... part of output omitted ...
["size"]=>
array(3) {
["type"]=>
string(7) "varchar"
["length"]=>
int(1024)
["not null"]=>
bool(false)
}
["filename"]=>
NULL
}
Found the bug in tripal_file.install
line 808,
$schema['fields']['filename'] = $filename_schema;
forgot to define this variable!
from tripal_file.
Related Issues (16)
- URI tripal field on license page is not clickable by default HOT 1
- Warnings from schema__itemlocation.inc and schema__license_formatter.inc HOT 1
- sio__references_file warnings and display problems HOT 1
- Feature request: for sio__file field to allow removal of a reference to a file
- sio__references field does not work for publications
- File Naming Checks
- AJAX error caused by this module HOT 1
- Notice from sio__file_widget when adding new tripal content HOT 1
- overzealous tripal_file_bundle_instances_info_alter() HOT 1
- File Format Checks
- Directory Structure Hierarchy
- Uploads via the itemLocation field HOT 1
- Default Properties
- Stray <php inserted HOT 2
- Load EDAM Vocabulary - incorrect response from EBI HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tripal_file.